diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2008-11-04 09:02:46 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2009-02-02 09:52:18 -0500 |
commit | 548d849574847b788fe846fe21a41386063be161 (patch) | |
tree | 6c2ac7379c376793368affab03e5202abd0f1efa /arch/arm/mach-omap2/clock34xx.c | |
parent | db8ac47cfccaafd3fa4c5c15320809d44f4fcef9 (diff) |
[ARM] omap: introduce clock operations structure
Collect up all the common enable/disable clock operation functions
into a separate operations structure.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-omap2/clock34xx.c')
-rw-r--r-- | arch/arm/mach-omap2/clock34xx.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/clock34xx.c b/arch/arm/mach-omap2/clock34xx.c index 31bb7010bd48..2f2d43db2dd8 100644 --- a/arch/arm/mach-omap2/clock34xx.c +++ b/arch/arm/mach-omap2/clock34xx.c | |||
@@ -33,12 +33,15 @@ | |||
33 | 33 | ||
34 | #include "memory.h" | 34 | #include "memory.h" |
35 | #include "clock.h" | 35 | #include "clock.h" |
36 | #include "clock34xx.h" | ||
37 | #include "prm.h" | 36 | #include "prm.h" |
38 | #include "prm-regbits-34xx.h" | 37 | #include "prm-regbits-34xx.h" |
39 | #include "cm.h" | 38 | #include "cm.h" |
40 | #include "cm-regbits-34xx.h" | 39 | #include "cm-regbits-34xx.h" |
41 | 40 | ||
41 | static const struct clkops clkops_noncore_dpll_ops; | ||
42 | |||
43 | #include "clock34xx.h" | ||
44 | |||
42 | /* CM_AUTOIDLE_PLL*.AUTO_* bit values */ | 45 | /* CM_AUTOIDLE_PLL*.AUTO_* bit values */ |
43 | #define DPLL_AUTOIDLE_DISABLE 0x0 | 46 | #define DPLL_AUTOIDLE_DISABLE 0x0 |
44 | #define DPLL_AUTOIDLE_LOW_POWER_STOP 0x1 | 47 | #define DPLL_AUTOIDLE_LOW_POWER_STOP 0x1 |
@@ -270,6 +273,11 @@ static void omap3_noncore_dpll_disable(struct clk *clk) | |||
270 | _omap3_noncore_dpll_stop(clk); | 273 | _omap3_noncore_dpll_stop(clk); |
271 | } | 274 | } |
272 | 275 | ||
276 | static const struct clkops clkops_noncore_dpll_ops = { | ||
277 | .enable = &omap3_noncore_dpll_enable, | ||
278 | .disable = &omap3_noncore_dpll_disable, | ||
279 | }; | ||
280 | |||
273 | /** | 281 | /** |
274 | * omap3_dpll_autoidle_read - read a DPLL's autoidle bits | 282 | * omap3_dpll_autoidle_read - read a DPLL's autoidle bits |
275 | * @clk: struct clk * of the DPLL to read | 283 | * @clk: struct clk * of the DPLL to read |