arm: mach-k3: am62px: Fix MCU_CLKOUT0 parent clock mux
authorParth Pancholi <parth.pancholi@toradex.com>
Tue, 8 Apr 2025 16:12:11 +0000 (18:12 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 17 Apr 2025 23:35:11 +0000 (17:35 -0600)
commit5e94661e465f1929e0dc3c27fa949b82b1ebddd2
tree312c28d5fa9d3f2740dd71504ae4601977beb2f0
parent278be62c052f3a5749c3c7a57bcd307b82dcdc2d
arm: mach-k3: am62px: Fix MCU_CLKOUT0 parent clock mux

CU_CLKOUT0 can be driven by two input clocks: a 25 MHz and a 50 MHz source.
Currently, the 25 MHz option is not selectable due to an incorrect mux
configuration where the 50 MHz clock is duplicated in the parent list.

This patch fixes the mux setup, allowing proper selection of the 25 MHz
clock source for MCU_CLKOUT0.

Similar configuration is already correctly implemented in AM62 clock
data for 'hsdiv4_16fft_main_2_hsdivout1_clk10', where MCU_CLKOUT0
parent switching behaves as expected.

Link: http://downloads.ti.com/tisci/esd/latest/5_soc_doc/am62px/clocks.html#clocks-for-board0-device
Signed-off-by: Parth Pancholi <parth.pancholi@toradex.com>
Reviewed-by: Bryan Brattlof <bb@ti.com>
arch/arm/mach-k3/r5/am62px/clk-data.c