diff options
Diffstat (limited to 'arch/arm/mach-w90x900/clock.h')
-rw-r--r-- | arch/arm/mach-w90x900/clock.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/arch/arm/mach-w90x900/clock.h b/arch/arm/mach-w90x900/clock.h index 4f27bda76d56..f5816a06eed6 100644 --- a/arch/arm/mach-w90x900/clock.h +++ b/arch/arm/mach-w90x900/clock.h | |||
@@ -12,7 +12,8 @@ | |||
12 | 12 | ||
13 | #include <asm/clkdev.h> | 13 | #include <asm/clkdev.h> |
14 | 14 | ||
15 | void w90x900_clk_enable(struct clk *clk, int enable); | 15 | void nuc900_clk_enable(struct clk *clk, int enable); |
16 | void nuc900_subclk_enable(struct clk *clk, int enable); | ||
16 | void clks_register(struct clk_lookup *clks, size_t num); | 17 | void clks_register(struct clk_lookup *clks, size_t num); |
17 | 18 | ||
18 | struct clk { | 19 | struct clk { |
@@ -23,10 +24,17 @@ struct clk { | |||
23 | 24 | ||
24 | #define DEFINE_CLK(_name, _ctrlbit) \ | 25 | #define DEFINE_CLK(_name, _ctrlbit) \ |
25 | struct clk clk_##_name = { \ | 26 | struct clk clk_##_name = { \ |
26 | .enable = w90x900_clk_enable, \ | 27 | .enable = nuc900_clk_enable, \ |
27 | .cken = (1 << _ctrlbit), \ | 28 | .cken = (1 << _ctrlbit), \ |
28 | } | 29 | } |
29 | 30 | ||
31 | #define DEFINE_SUBCLK(_name, _ctrlbit) \ | ||
32 | struct clk clk_##_name = { \ | ||
33 | .enable = nuc900_subclk_enable, \ | ||
34 | .cken = (1 << _ctrlbit), \ | ||
35 | } | ||
36 | |||
37 | |||
30 | #define DEF_CLKLOOK(_clk, _devname, _conname) \ | 38 | #define DEF_CLKLOOK(_clk, _devname, _conname) \ |
31 | { \ | 39 | { \ |
32 | .clk = _clk, \ | 40 | .clk = _clk, \ |