]> Git Repo - u-boot.git/commit
clk: mediatek: return XTAL rate for infrasys get_mux_rate
authorChristian Marangi <[email protected]>
Fri, 28 Jun 2024 17:40:47 +0000 (19:40 +0200)
committerTom Rini <[email protected]>
Thu, 1 Aug 2024 21:32:18 +0000 (15:32 -0600)
commitbf6ba78143e988178848e13a2c0b0c7db41c9bb7
treed65278969d13115da97b96cdbf5dbc036d1a0ad8
parented908c486827536a36aa236bb622a90408603e57
clk: mediatek: return XTAL rate for infrasys get_mux_rate

We currently return 0 if XTAL rate is requested in get_mux_rate. This
deviates from what is done in get_factor_rate and is totally wrong as it
can cause unwanted results (division by 0 crash)

For infrasys that makes use of CLK_XTAL, assume xtal_rate to be defined
in clk_tree and return the rate when BYPASS_XTAL is not enabled with
clk ID 0 index parents.

Signed-off-by: Christian Marangi <[email protected]>
drivers/clk/mediatek/clk-mtk.c
This page took 0.033171 seconds and 4 git commands to generate.