diff options
author | Rajendra Nayak <rnayak@ti.com> | 2010-12-21 23:08:14 -0500 |
---|---|---|
committer | Paul Walmsley <paul@pwsan.com> | 2010-12-21 23:08:14 -0500 |
commit | cb13459b38c8f2e99df4923d2a71ce6db99f2436 (patch) | |
tree | 2d274632e1df8b2948bd213147c4b7c047019341 /arch/arm/mach-omap2/clock44xx_data.c | |
parent | e0cb70c565acffb210ffa2a4590637d1844d13c5 (diff) |
OMAP4: clock data: Export control to enable/disable CORE/PER M3 clocks
The CORE and PER M3 post dividers are different from the rest of the
DPLL post dividers as in they go to SCRM, and are used
there to export clocks for instance used by external sensor.
There is no automatic HW dependency in PRCM to manage them. Hence these
two clocks (dpll post dividers) should be managed by SW and explicitly
enabled/disabled.
Add control in clock framework to handle that.
Signed-off-by: Rajendra Nayak <rnayak@ti.com>
Signed-off-by: Benoit Cousson <b-cousson@ti.com>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Diffstat (limited to 'arch/arm/mach-omap2/clock44xx_data.c')
-rw-r--r-- | arch/arm/mach-omap2/clock44xx_data.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/arch/arm/mach-omap2/clock44xx_data.c b/arch/arm/mach-omap2/clock44xx_data.c index 74c4b43fb33f..d34ca7526b58 100644 --- a/arch/arm/mach-omap2/clock44xx_data.c +++ b/arch/arm/mach-omap2/clock44xx_data.c | |||
@@ -616,7 +616,9 @@ static struct clk dpll_core_m3x2_ck = { | |||
616 | .clksel = dpll_core_m6x2_div, | 616 | .clksel = dpll_core_m6x2_div, |
617 | .clksel_reg = OMAP4430_CM_DIV_M3_DPLL_CORE, | 617 | .clksel_reg = OMAP4430_CM_DIV_M3_DPLL_CORE, |
618 | .clksel_mask = OMAP4430_DPLL_CLKOUTHIF_DIV_MASK, | 618 | .clksel_mask = OMAP4430_DPLL_CLKOUTHIF_DIV_MASK, |
619 | .ops = &clkops_null, | 619 | .ops = &clkops_omap2_dflt, |
620 | .enable_reg = OMAP4430_CM_DIV_M3_DPLL_CORE, | ||
621 | .enable_bit = OMAP4430_DPLL_CLKOUTHIF_GATE_CTRL_SHIFT, | ||
620 | .recalc = &omap2_clksel_recalc, | 622 | .recalc = &omap2_clksel_recalc, |
621 | .round_rate = &omap2_clksel_round_rate, | 623 | .round_rate = &omap2_clksel_round_rate, |
622 | .set_rate = &omap2_clksel_set_rate, | 624 | .set_rate = &omap2_clksel_set_rate, |
@@ -868,7 +870,9 @@ static struct clk dpll_per_m3x2_ck = { | |||
868 | .clksel = dpll_per_m2x2_div, | 870 | .clksel = dpll_per_m2x2_div, |
869 | .clksel_reg = OMAP4430_CM_DIV_M3_DPLL_PER, | 871 | .clksel_reg = OMAP4430_CM_DIV_M3_DPLL_PER, |
870 | .clksel_mask = OMAP4430_DPLL_CLKOUTHIF_DIV_MASK, | 872 | .clksel_mask = OMAP4430_DPLL_CLKOUTHIF_DIV_MASK, |
871 | .ops = &clkops_null, | 873 | .ops = &clkops_omap2_dflt, |
874 | .enable_reg = OMAP4430_CM_DIV_M3_DPLL_PER, | ||
875 | .enable_bit = OMAP4430_DPLL_CLKOUTHIF_GATE_CTRL_SHIFT, | ||
872 | .recalc = &omap2_clksel_recalc, | 876 | .recalc = &omap2_clksel_recalc, |
873 | .round_rate = &omap2_clksel_round_rate, | 877 | .round_rate = &omap2_clksel_round_rate, |
874 | .set_rate = &omap2_clksel_set_rate, | 878 | .set_rate = &omap2_clksel_set_rate, |