summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-w90x900/clock.h
diff options
context:
space:
mode:
authorwanzongshun <mcuos.com@gmail.com>2009-07-14 15:10:43 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2009-07-17 13:38:17 +0100
commitdb58e90fdbe9d12b431ae8d8e856961ce75d74f0 (patch)
tree3367a0abc6e955ecb16cbc8f33873a015b70230c /arch/arm/mach-w90x900/clock.h
parentd2c241955095b129459985a8c02d85b70984b945 (diff)
downloadop-kernel-dev-db58e90fdbe9d12b431ae8d8e856961ce75d74f0.zip
op-kernel-dev-db58e90fdbe9d12b431ae8d8e856961ce75d74f0.tar.gz
[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.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/mach-w90x900/clock.h b/arch/arm/mach-w90x900/clock.h
index 4f27bda..d2f0e50 100644
--- a/arch/arm/mach-w90x900/clock.h
+++ b/arch/arm/mach-w90x900/clock.h
@@ -13,6 +13,7 @@
#include <asm/clkdev.h>
void w90x900_clk_enable(struct clk *clk, int enable);
+void w90x900_subclk_enable(struct clk *clk, int enable);
void clks_register(struct clk_lookup *clks, size_t num);
struct clk {
@@ -27,6 +28,13 @@ struct clk clk_##_name = { \
.cken = (1 << _ctrlbit), \
}
+#define DEFINE_SUBCLK(_name, _ctrlbit) \
+struct clk clk_##_name = { \
+ .enable = w90x900_subclk_enable, \
+ .cken = (1 << _ctrlbit), \
+ }
+
+
#define DEF_CLKLOOK(_clk, _devname, _conname) \
{ \
.clk = _clk, \
OpenPOWER on IntegriCloud