]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
rockchip: rk3036: sdram: correct setting for pll integer mode
authorKever Yang <kever.yang@rock-chips.com>
Thu, 30 Nov 2017 08:51:21 +0000 (16:51 +0800)
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Thu, 30 Nov 2017 21:55:27 +0000 (22:55 +0100)
According to rk3036 TRM, should be set to '1' for the pll
integer mode, while the '0' means the frac mode.

Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
arch/arm/mach-rockchip/rk3036/sdram_rk3036.c

index a06ef7bde0a440987fb4fd671353219776854480..e5393ec50a8962498ae399eb518b046149c52b50 100644 (file)
@@ -334,7 +334,7 @@ static void rkdclk_init(struct rk3036_sdram_priv *priv)
                     DPLL_MODE_SLOW << DPLL_MODE_SHIFT);
 
        /* use integer mode */
-       rk_clrreg(&pll->con1, 1 << PLL_DSMPD_SHIFT);
+       rk_setreg(&pll->con1, 1 << PLL_DSMPD_SHIFT);
 
        rk_clrsetreg(&pll->con0,
                     PLL_POSTDIV1_MASK | PLL_FBDIV_MASK,