diff options
author | wanzongshun <mcuos.com@gmail.com> | 2009-07-14 10:10:43 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2009-07-17 08:38:17 -0400 |
commit | db58e90fdbe9d12b431ae8d8e856961ce75d74f0 (patch) | |
tree | 3367a0abc6e955ecb16cbc8f33873a015b70230c /arch/arm/mach-w90x900/clock.h | |
parent | d2c241955095b129459985a8c02d85b70984b945 (diff) |
[ARM] 5602/1: Add sub clock api for w90p910 platform
Add sub clock api for w90p910 platform.
Signed-off-by: Wan ZongShun <mcuos.com@gmail.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-w90x900/clock.h')
-rw-r--r-- | arch/arm/mach-w90x900/clock.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/mach-w90x900/clock.h b/arch/arm/mach-w90x900/clock.h index 4f27bda76d56..d2f0e50a70bf 100644 --- a/arch/arm/mach-w90x900/clock.h +++ b/arch/arm/mach-w90x900/clock.h | |||
@@ -13,6 +13,7 @@ | |||
13 | #include <asm/clkdev.h> | 13 | #include <asm/clkdev.h> |
14 | 14 | ||
15 | void w90x900_clk_enable(struct clk *clk, int enable); | 15 | void w90x900_clk_enable(struct clk *clk, int enable); |
16 | void w90x900_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 { |
@@ -27,6 +28,13 @@ struct clk clk_##_name = { \ | |||
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 = w90x900_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, \ |