clk.c (08a41d1206bb342c2f0a0aae25ca836658866268) | clk.c (042df4fa28a459ac425cea9bc81764532c267ba4) |
---|---|
1/* 2 * This file is subject to the terms and conditions of the GNU General Public 3 * License. See the file "COPYING" in the main directory of this archive 4 * for more details. 5 * 6 * Copyright (C) 2008 Maxime Bizon <mbizon@freebox.fr> 7 */ 8 9#include <linux/module.h> 10#include <linux/mutex.h> 11#include <linux/err.h> 12#include <linux/clk.h> 13#include <linux/delay.h> 14#include <bcm63xx_cpu.h> 15#include <bcm63xx_io.h> 16#include <bcm63xx_regs.h> 17#include <bcm63xx_reset.h> | 1/* 2 * This file is subject to the terms and conditions of the GNU General Public 3 * License. See the file "COPYING" in the main directory of this archive 4 * for more details. 5 * 6 * Copyright (C) 2008 Maxime Bizon <mbizon@freebox.fr> 7 */ 8 9#include <linux/module.h> 10#include <linux/mutex.h> 11#include <linux/err.h> 12#include <linux/clk.h> 13#include <linux/delay.h> 14#include <bcm63xx_cpu.h> 15#include <bcm63xx_io.h> 16#include <bcm63xx_regs.h> 17#include <bcm63xx_reset.h> |
18#include <bcm63xx_clk.h> | |
19 | 18 |
19struct clk { 20 void (*set)(struct clk *, int); 21 unsigned int rate; 22 unsigned int usage; 23 int id; 24}; 25 |
|
20static DEFINE_MUTEX(clocks_mutex); 21 22 23static void clk_enable_unlocked(struct clk *clk) 24{ 25 if (clk->set && (clk->usage++) == 0) 26 clk->set(clk, 1); 27} --- 306 unchanged lines hidden --- | 26static DEFINE_MUTEX(clocks_mutex); 27 28 29static void clk_enable_unlocked(struct clk *clk) 30{ 31 if (clk->set && (clk->usage++) == 0) 32 clk->set(clk, 1); 33} --- 306 unchanged lines hidden --- |