sunxi: clock: H6: factor out H6/H616 CPU clock setup
authorAndre Przywara <andre.przywara@arm.com>
Sat, 25 Jan 2025 13:40:05 +0000 (13:40 +0000)
committerAndre Przywara <andre.przywara@arm.com>
Sun, 27 Jul 2025 21:57:35 +0000 (22:57 +0100)
commit915ac864f41be0d81f74c26bfc5c43a29bfcda2c
tree5301187d70f9fe77947d9d65b54abaee0cb4395c
parentff4dda1db2c6f96582fc1691c4fdb83e957e7666
sunxi: clock: H6: factor out H6/H616 CPU clock setup

When we program the CPU PLL, we need to switch the CPU clock source away
from the PLL temporarily, then switch it back, once the PLL has
stabilised.

The CPU CLK register will be different on the A523, so move the current
code into a separate function, to allow using a different version of
that later for the A523.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
arch/arm/mach-sunxi/clock_sun50i_h6.c