From: Kever Yang Date: Thu, 30 Nov 2017 08:51:21 +0000 (+0800) Subject: rockchip: rk3036: sdram: correct setting for pll integer mode X-Git-Tag: v2018.01-rc1~25^2~6 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=fd1f80aab654adaa06d1293487bacdcd5958d799;p=u-boot rockchip: rk3036: sdram: correct setting for pll integer mode 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 Acked-by: Philipp Tomsich Reviewed-by: Philipp Tomsich --- diff --git a/arch/arm/mach-rockchip/rk3036/sdram_rk3036.c b/arch/arm/mach-rockchip/rk3036/sdram_rk3036.c index a06ef7bde0..e5393ec50a 100644 --- a/arch/arm/mach-rockchip/rk3036/sdram_rk3036.c +++ b/arch/arm/mach-rockchip/rk3036/sdram_rk3036.c @@ -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,