diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2008-07-12 16:43:51 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2008-07-12 16:43:51 -0400 |
commit | 37d7035da5b1f184c610b038b376c0c647d8d72b (patch) | |
tree | c38d4058ad3232f985d9ed4501a8a842a2a47028 /arch/arm/mach-pxa/clock.h | |
parent | 0fc3ff31f1f0fa023bb61e9336a7aa3591f2dffe (diff) | |
parent | 54b238469bce3a1b5012b2f0ebf261cf1c53e664 (diff) |
Merge branch 'pxa-devel' into pxa
Diffstat (limited to 'arch/arm/mach-pxa/clock.h')
-rw-r--r-- | arch/arm/mach-pxa/clock.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/arch/arm/mach-pxa/clock.h b/arch/arm/mach-pxa/clock.h index 32d0c074b351..1ec8f9178aaf 100644 --- a/arch/arm/mach-pxa/clock.h +++ b/arch/arm/mach-pxa/clock.h | |||
@@ -61,4 +61,28 @@ extern const struct clkops clk_cken_ops; | |||
61 | void clk_cken_enable(struct clk *clk); | 61 | void clk_cken_enable(struct clk *clk); |
62 | void clk_cken_disable(struct clk *clk); | 62 | void clk_cken_disable(struct clk *clk); |
63 | 63 | ||
64 | #ifdef CONFIG_PXA3xx | ||
65 | #define PXA3xx_CKEN(_name, _cken, _rate, _delay, _dev) \ | ||
66 | { \ | ||
67 | .name = _name, \ | ||
68 | .dev = _dev, \ | ||
69 | .ops = &clk_pxa3xx_cken_ops, \ | ||
70 | .rate = _rate, \ | ||
71 | .cken = CKEN_##_cken, \ | ||
72 | .delay = _delay, \ | ||
73 | } | ||
74 | |||
75 | #define PXA3xx_CK(_name, _cken, _ops, _dev) \ | ||
76 | { \ | ||
77 | .name = _name, \ | ||
78 | .dev = _dev, \ | ||
79 | .ops = _ops, \ | ||
80 | .cken = CKEN_##_cken, \ | ||
81 | } | ||
82 | |||
83 | extern const struct clkops clk_pxa3xx_cken_ops; | ||
84 | extern void clk_pxa3xx_cken_enable(struct clk *); | ||
85 | extern void clk_pxa3xx_cken_disable(struct clk *); | ||
86 | #endif | ||
87 | |||
64 | void clks_register(struct clk *clks, size_t num); | 88 | void clks_register(struct clk *clks, size_t num); |