]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: keystone: clock: use correct BWADJ field mask for PASSPLLCTL0
authorKhoronzhuk, Ivan <ivan.khoronzhuk@ti.com>
Mon, 11 Aug 2014 08:59:42 +0000 (11:59 +0300)
committerTom Rini <trini@ti.com>
Thu, 4 Sep 2014 17:05:57 +0000 (13:05 -0400)
The mask for BWADJ field of PASSPLLCTL0 register has to be 0xff, but
by mistake, here is used shift instead of mask, so correct it.

Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@ti.com>
arch/arm/cpu/armv7/keystone/clock.c

index 30d76a6603ee475b52a2684bee3ebcd16e6958bc..47fc89398d44123441ade21d9bf017e7621bd4d6 100644 (file)
@@ -174,7 +174,7 @@ void init_pll(const struct pll_init_data *data)
                 * bypass disabled
                 */
                bwadj = pllm >> 1;
-               tmp |= ((bwadj & PLL_BWADJ_LO_SHIFT) << PLL_BWADJ_LO_SHIFT) |
+               tmp |= ((bwadj & PLL_BWADJ_LO_MASK) << PLL_BWADJ_LO_SHIFT) |
                        (pllm << PLL_MULT_SHIFT) |
                        (plld & PLL_DIV_MASK) |
                        (pllod << PLL_CLKOD_SHIFT);