clk: mmp2: Stop pretending PLL outputs are constant
authorLubomir Rintel <lkundrak@v3.sk>
Mon, 9 Mar 2020 19:42:42 +0000 (20:42 +0100)
committerStephen Boyd <sboyd@kernel.org>
Sat, 21 Mar 2020 01:19:31 +0000 (18:19 -0700)
commitea56ad60260ec767d9a93f71f7baabcb618eb92d
tree9a1bd58baed1c90613bc4d20fdda15fffee5b572
parent5d34d0b32d6c13947b0aa890fc4c68f203491169
clk: mmp2: Stop pretending PLL outputs are constant

The hardcoded values for PLL1 and PLL2 are wrong. PLL1 is slightly
off -- it defaults to 797.33 MHz, not 800 MHz. PLL2 is disabled by default,
but also configurable.

Tested on a MMP2-based OLPC XO-1.75 laptop, with PLL1=797.33 and various
values of PLL2 set via set-pll2-520mhz, set-pll2-910mhz and
set-pll2-988mhz Open Firmware words.

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Link: https://lkml.kernel.org/r/20200309194254.29009-6-lkundrak@v3.sk
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/mmp/clk-of-mmp2.c