Commit c30c44e7 authored by Dai Okamura's avatar Dai Okamura Committed by Masahiro Yamada

ARM: uniphier: fix SSCPLL init code for LD11 SoC

Commit 682e09ff ("ARM: uniphier: add PLL init code for LD20 SoC")
missed to write the computed value to the SSCPLLCTRL2 register.

Fixes: 682e09ff ("ARM: uniphier: add PLL init code for LD20 SoC")
Signed-off-by: default avatarDai Okamura <[email protected]>
Signed-off-by: default avatarMasahiro Yamada <[email protected]>
parent dc774e69
......@@ -48,6 +48,7 @@ int uniphier_ld20_sscpll_init(unsigned long reg_base, unsigned int freq,
tmp = readl(base + 4);
tmp &= ~SC_PLLCTRL2_SSC_JK_MASK;
tmp |= (41859 * freq / divn) & SC_PLLCTRL2_SSC_JK_MASK;
writel(tmp, base + 4);
udelay(50);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment