aboutsummaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorTony Lin <tony.lin@freescale.com>2011-09-02 17:22:26 +0800
committerTony Lin <tony.lin@freescale.com>2011-09-02 17:26:35 +0800
commitebd65cca09664befcc5bb462b0b566c27225abe3 (patch)
tree947063a0e0b5fe02d8875450f46abdaaf66f3db1 /arch/arm
parentc036f2de93ae0c84bdcef918382179f524835968 (diff)
ENGR00155912 [mx6q]clock: correct pll disable function
pll3 and pll7 have opposite power down bit definition comparing with other plls. so reverse the bit when setting these two plls Signed-off-by: Tony Lin <tony.lin@freescale.com>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/mach-mx6/clock.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/arm/mach-mx6/clock.c b/arch/arm/mach-mx6/clock.c
index 58484407ec3..cfc5f1bb5fe 100644
--- a/arch/arm/mach-mx6/clock.c
+++ b/arch/arm/mach-mx6/clock.c
@@ -391,7 +391,11 @@ static void _clk_pll_disable(struct clk *clk)
reg &= ~ANADIG_PLL_ENABLE;
reg |= ANADIG_PLL_BYPASS;
reg |= ANADIG_PLL_POWER_DOWN;
- if (clk == &pll3_usb_otg_main_clk)
+
+ /* The 480MHz PLLs, pll3 & pll7, have the opposite
+ * definition for power bit.
+ */
+ if (clk == &pll3_usb_otg_main_clk || clk == &pll7_usb_host_main_clk)
reg &= ~ANADIG_PLL_POWER_DOWN;
__raw_writel(reg, pllbase);
}