clk: rockchip: rk3036: fix implementation of usb480m clock mux
authorHeiko Stuebner <heiko@sntech.de>
Sat, 3 May 2025 20:25:30 +0000 (22:25 +0200)
committerHeiko Stuebner <heiko@sntech.de>
Thu, 8 May 2025 18:29:02 +0000 (20:29 +0200)
commit897adaf536ab01f130ce0b53a635a592733c0f24
tree8098f4c0bcaf976e8e0b252e8eb417eb605dad24
parent6e06b641ca96c232e0b13f9b44b118742986bcd5
clk: rockchip: rk3036: fix implementation of usb480m clock mux

Contrary to how it is implemented right now, this mux is controllable via
a bit in CRU_MUSC_CON (same bit as on rk3128 even) and allows switching
between xin24m and the 480m output of the usb2phy.

So drop the hard-coded fixed-factor clock and implement the correct mux
instead.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://lore.kernel.org/r/20250503202532.992033-3-heiko@sntech.de
drivers/clk/rockchip/clk-rk3036.c