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.h | |
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.h')
-rw-r--r-- | arch/arm/mach-omap2/clock34xx.h | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/arch/arm/mach-omap2/clock34xx.h b/arch/arm/mach-omap2/clock34xx.h index a826094d89b5..8b188fb9beab 100644 --- a/arch/arm/mach-omap2/clock34xx.h +++ b/arch/arm/mach-omap2/clock34xx.h | |||
@@ -32,8 +32,6 @@ static void omap3_clkoutx2_recalc(struct clk *clk); | |||
32 | static void omap3_dpll_allow_idle(struct clk *clk); | 32 | static void omap3_dpll_allow_idle(struct clk *clk); |
33 | static void omap3_dpll_deny_idle(struct clk *clk); | 33 | static void omap3_dpll_deny_idle(struct clk *clk); |
34 | static u32 omap3_dpll_autoidle_read(struct clk *clk); | 34 | static u32 omap3_dpll_autoidle_read(struct clk *clk); |
35 | static int omap3_noncore_dpll_enable(struct clk *clk); | ||
36 | static void omap3_noncore_dpll_disable(struct clk *clk); | ||
37 | 35 | ||
38 | /* Maximum DPLL multiplier, divider values for OMAP3 */ | 36 | /* Maximum DPLL multiplier, divider values for OMAP3 */ |
39 | #define OMAP3_MAX_DPLL_MULT 2048 | 37 | #define OMAP3_MAX_DPLL_MULT 2048 |
@@ -347,11 +345,10 @@ static struct dpll_data dpll2_dd = { | |||
347 | 345 | ||
348 | static struct clk dpll2_ck = { | 346 | static struct clk dpll2_ck = { |
349 | .name = "dpll2_ck", | 347 | .name = "dpll2_ck", |
348 | .ops = &clkops_noncore_dpll_ops, | ||
350 | .parent = &sys_ck, | 349 | .parent = &sys_ck, |
351 | .dpll_data = &dpll2_dd, | 350 | .dpll_data = &dpll2_dd, |
352 | .flags = CLOCK_IN_OMAP343X | RATE_PROPAGATES, | 351 | .flags = CLOCK_IN_OMAP343X | RATE_PROPAGATES, |
353 | .enable = &omap3_noncore_dpll_enable, | ||
354 | .disable = &omap3_noncore_dpll_disable, | ||
355 | .round_rate = &omap2_dpll_round_rate, | 352 | .round_rate = &omap2_dpll_round_rate, |
356 | .recalc = &omap3_dpll_recalc, | 353 | .recalc = &omap3_dpll_recalc, |
357 | }; | 354 | }; |
@@ -582,11 +579,10 @@ static struct dpll_data dpll4_dd = { | |||
582 | 579 | ||
583 | static struct clk dpll4_ck = { | 580 | static struct clk dpll4_ck = { |
584 | .name = "dpll4_ck", | 581 | .name = "dpll4_ck", |
582 | .ops = &clkops_noncore_dpll_ops, | ||
585 | .parent = &sys_ck, | 583 | .parent = &sys_ck, |
586 | .dpll_data = &dpll4_dd, | 584 | .dpll_data = &dpll4_dd, |
587 | .flags = CLOCK_IN_OMAP343X | RATE_PROPAGATES, | 585 | .flags = CLOCK_IN_OMAP343X | RATE_PROPAGATES, |
588 | .enable = &omap3_noncore_dpll_enable, | ||
589 | .disable = &omap3_noncore_dpll_disable, | ||
590 | .round_rate = &omap2_dpll_round_rate, | 586 | .round_rate = &omap2_dpll_round_rate, |
591 | .recalc = &omap3_dpll_recalc, | 587 | .recalc = &omap3_dpll_recalc, |
592 | }; | 588 | }; |
@@ -884,11 +880,10 @@ static struct dpll_data dpll5_dd = { | |||
884 | 880 | ||
885 | static struct clk dpll5_ck = { | 881 | static struct clk dpll5_ck = { |
886 | .name = "dpll5_ck", | 882 | .name = "dpll5_ck", |
883 | .ops = &clkops_noncore_dpll_ops, | ||
887 | .parent = &sys_ck, | 884 | .parent = &sys_ck, |
888 | .dpll_data = &dpll5_dd, | 885 | .dpll_data = &dpll5_dd, |
889 | .flags = CLOCK_IN_OMAP3430ES2 | RATE_PROPAGATES, | 886 | .flags = CLOCK_IN_OMAP3430ES2 | RATE_PROPAGATES, |
890 | .enable = &omap3_noncore_dpll_enable, | ||
891 | .disable = &omap3_noncore_dpll_disable, | ||
892 | .round_rate = &omap2_dpll_round_rate, | 887 | .round_rate = &omap2_dpll_round_rate, |
893 | .recalc = &omap3_dpll_recalc, | 888 | .recalc = &omap3_dpll_recalc, |
894 | }; | 889 | }; |