linux/drivers/clk/mmp
Lubomir Rintel 5d34d0b32d clk: mmp2: Add support for PLL clock sources
The clk-of-mmp2 driver pretends that the clock outputs from the PLLs are
constant, but in fact they are configurable.

Add logic for obtaining the actual clock rates on MMP2 as well as MMP3.
There is no documentation for either SoC, but the "systemsetting" drivers
from Marvell GPL code dump provide some clue as far as MPMU registers on
MMP2 [1] and MMP3 [2] go.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/lkundrak/linux-mmp3-dell-ariel.git/tree/drivers/char/mmp2_systemsetting.c
[2] https://git.kernel.org/pub/scm/linux/kernel/git/lkundrak/linux-mmp3-dell-ariel.git/tree/drivers/char/mmp3_systemsetting.c

A separate commit will adjust the clk-of-mmp2 driver.

Tested on a MMP3-based Dell Wyse 3020 as well as MMP2-based OLPC
XO-1.75 laptop.

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Link: https://lkml.kernel.org/r/20200309194254.29009-5-lkundrak@v3.sk
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
2020-03-20 18:19:31 -07:00
..
clk-apbc.c clk: mmp: make clk_ops const 2017-11-01 23:25:47 -07:00
clk-apmu.c clk: mmp: make clk_ops const 2017-11-01 23:25:47 -07:00
clk-frac.c clk: let init callback return an error code 2019-12-23 18:53:13 -08:00
clk-gate.c clk: Remove CLK_IS_BASIC clk flag 2019-04-26 10:40:49 -07:00
clk-mix.c clk: mmp2: Constify some strings 2020-03-20 18:19:30 -07:00
clk-mmp2.c clk: mmp: Adjust checks for NULL pointers 2017-11-13 17:41:17 -08:00
clk-of-mmp2.c clk: mmp2: Constify some strings 2020-03-20 18:19:30 -07:00
clk-of-pxa168.c clk: mmp: pxa168: fix return value check in pxa168_clk_init() 2016-11-01 17:41:20 -07:00
clk-of-pxa910.c clk:mmp:clk-of-pxa910: Free memory and Unmap region obtained by kzmalloc and of_iomap 2016-12-08 16:29:38 -08:00
clk-of-pxa1928.c clk: mmp: clk-of-pxa1928: Free memory obtained by kzalloc 2016-12-08 16:29:37 -08:00
clk-pll.c clk: mmp2: Add support for PLL clock sources 2020-03-20 18:19:31 -07:00
clk-pxa168.c clk: mmp: Adjust checks for NULL pointers 2017-11-13 17:41:17 -08:00
clk-pxa910.c clk: mmp: Adjust checks for NULL pointers 2017-11-13 17:41:17 -08:00
clk.c clk: mmp2: Add support for PLL clock sources 2020-03-20 18:19:31 -07:00
clk.h clk: mmp2: Add support for PLL clock sources 2020-03-20 18:19:31 -07:00
Makefile clk: mmp2: Add support for PLL clock sources 2020-03-20 18:19:31 -07:00
reset.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
reset.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00