Home
last modified time | relevance | path

Searched hist:"3492 e4f6db5f6814869a4639d70ea025385f4cb6" (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/clk/sunxi-ng/
H A Dccu_nkm.cdiff 3492e4f6db5f6814869a4639d70ea025385f4cb6 Mon Aug 07 14:43:35 CEST 2023 Frank Oltmanns <frank@oltmanns.dev> clk: sunxi-ng: nkm: consider alternative parent rates when determining rate

In case the CLK_SET_RATE_PARENT flag is set, consider using a different
parent rate when determining a new rate.

To find the best match for the requested rate, perform the following
steps for each NKM combination:
- calculate the optimal parent rate,
- find the best parent rate that the parent clock actually supports
- use that parent rate to calculate the effective rate.

In case the clk does not support setting the parent rate, use the same
algorithm as before.

Acked-by: Maxime Ripard <mripard@kernel.org>
Signed-off-by: Frank Oltmanns <frank@oltmanns.dev>
Reviewed-by: Chen-Yu Tsai <wens@csie.org>
Link: https://lore.kernel.org/r/20230807-pll-mipi_set_rate_parent-v6-2-f173239a4b59@oltmanns.dev
Signed-off-by: Chen-Yu Tsai <wens@csie.org>