clk: meson: g12a: add support for SM1 CPU 1, 2 & 3 clocks
authorNeil Armstrong <narmstrong@baylibre.com>
Mon, 26 Aug 2019 07:25:38 +0000 (09:25 +0200)
committerJerome Brunet <jbrunet@baylibre.com>
Mon, 26 Aug 2019 09:04:54 +0000 (11:04 +0200)
commitda3ceae4ec9f581a50dc0763710078f22d3bc72a
treeb87b8907e060e3cac59089181c378071c3ca1add
parent2edccd319fdef9bc35c06fe4150b21099ac99579
clk: meson: g12a: add support for SM1 CPU 1, 2 & 3 clocks

The Amlogic SM1 can set a dedicated clock frequency for each CPU core by
having a dedicate tree for each core similar to the CPU0 tree.
Like the DSU tree, a supplementaty mux has been added to use the CPU0
frequency instead.

But since the cluster only has a single power rail and shares a single PLL,
it's not worth adding 3 unsused clock tree, so we add only the mux to
select the CPU0 clock frequency for each CPU1, CPU2 and CPU3 cores.

They are set read-only because the early boot stages sets them to select
the CPU0 input clock.

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
drivers/clk/meson/g12a.c
drivers/clk/meson/g12a.h