]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita44dec6c5efc7cd06ab8a29188be8cb8ee853dfe
tree9a1bd58baed1c90613bc4d20fdda15fffee5b572
parente38a96628e7b92b6e7b92f8acba87439a56420a4
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