1
0
mirror of https://xff.cz/git/u-boot/ synced 2026-01-19 01:40:08 +01:00
Files
u-boot-megous/drivers/clk
Caleb Connolly d5db46cf93 clk/qcom: fix rcg divider value
The RCG divider field takes a value of (2*h - 1) where h is the divisor.
This allows fractional dividers to be supported by calculating them at
compile time using a macro.

However, the clk_rcg_set_rate_mnd() function was also performing the
calculation. Clean this all up and consistently use the F() macro to
calculate these at compile time and properly support fractional divisors.

Additionally, improve clk_bcr_update() to timeout with a warning rather
than hanging the board, and make the freq_tbl struct and helpers common
so that they can be reused by future platforms.

Reviewed-by: Sumit Garg <sumit.garg@linaro.org>
Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
2024-01-16 12:26:24 +00:00
..
2021-01-30 14:25:41 -07:00
2022-01-18 12:48:17 -05:00
2024-01-16 12:26:24 +00:00
2022-03-30 13:02:55 -04:00
2024-01-16 12:26:23 +00:00
2024-01-16 12:26:23 +00:00