clk: microchip: mpfs: setup for using other mss pll outputs
authorConor Dooley <conor.dooley@microchip.com>
Mon, 22 Jan 2024 12:19:52 +0000 (12:19 +0000)
committerConor Dooley <conor.dooley@microchip.com>
Tue, 6 Feb 2024 14:07:18 +0000 (14:07 +0000)
commit66736997c231c78c2bb6c6f2bdabffd3df88b19c
treea323d9d4ca9e4b32cfd0593c073924484c2af6b1
parent1afa9480c997b016a20b6a292824ad1056307176
clk: microchip: mpfs: setup for using other mss pll outputs

Now that the MSSPLL is split, and the "postdiv" divider of the
cpu/AHB/AXI bus clock is represented by its own "hw" struct, make the
shifts, register offset and width a parameter of the initialisation
macro, rather than using defines that only work for one of the four
outputs.
Configuring this at initialisaion paves the way for using the other
three output clocks, where the register offset, and the bit shift
within that register, will differ.

Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
drivers/clk/microchip/clk-mpfs.c