]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00290601 [iMX6x] Ensure PLL is powered down when bypass rate is requested.
authorRanjani Vaidyanathan <ra5478@freescale.com>
Tue, 3 Dec 2013 19:40:52 +0000 (11:40 -0800)
committerRanjani Vaidyanathan <Ranjani.Vaidyanathan@freescale.com>
Fri, 6 Dec 2013 18:53:05 +0000 (10:53 -0800)
Ensure that PLL is powered down when bypass rate is requested and
power it up when some other rate is requested.

Signed-off-by: Ranjani Vaidyanathan <ra5478@freescale.com>
arch/arm/mach-imx/clk-pllv3.c

index f187052d639d25c1df15079172f994ef4338dc9b..b73756eec5b7fd0359b3b971bd028f76729dc08f 100644 (file)
@@ -172,10 +172,11 @@ static int clk_pllv3_set_rate(struct clk_hw *hw, unsigned long rate,
        if (rate == BYPASS_RATE) {
                /* Set the bypass bit. */
                val |= BM_PLL_BYPASS;
+               /* Power down the PLL. */
                if (pll->powerup_set)
-                       val |= BM_PLL_POWER;
-               else
                        val &= ~BM_PLL_POWER;
+               else
+                       val |= BM_PLL_POWER;
                writel_relaxed(val, pll->base);
 
                return 0;