]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00155912 [mx6q]clock: correct pll disable function
authorTony Lin <tony.lin@freescale.com>
Fri, 2 Sep 2011 09:22:26 +0000 (17:22 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:33:11 +0000 (08:33 +0200)
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>
arch/arm/mach-mx6/clock.c

index 58484407ec3be04943a98090a0b69fd33ddfaea0..cfc5f1bb5fe375c3c447f71033f188ec17194cc4 100644 (file)
@@ -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);
 }