]> git.dujemihanovic.xyz Git - u-boot.git/commit
clk: stm32f: fix setting of LCD clock
authorDario Binacchi <dario.binacchi@amarulasolutions.com>
Sat, 11 Nov 2023 10:46:19 +0000 (11:46 +0100)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Fri, 15 Dec 2023 14:03:18 +0000 (15:03 +0100)
commit767ca6d6827281744641180e4ac2921f5b828893
tree6d2885b4c07671f25aa7de80c040de8f9524674d
parentbd6eb5ddd715e7441d804c67f434418e172a1423
clk: stm32f: fix setting of LCD clock

Set pllsaidivr only if the PLLSAIR output frequency is an exact multiple
of the pixel clock rate. Otherwise, we search through all combinations
of pllsaidivr * pllsair and use the one which gives the rate closest to
requested one.

Fixes: 5e993508cb25 ("clk: clk_stm32f: Add set_rate for LTDC clock")
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
drivers/clk/stm32/clk-stm32f.c