clk: stm32f: fix setting of division factor for LCD_CLK
The value to be written to the register must be appropriately shifted,
as is correctly done in other parts of the code.
Fixes: 5e993508cb ("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>
This commit is contained in:
committed by
Patrice Chotard
parent
555cf4c495
commit
bd6eb5ddd7
@@ -530,7 +530,8 @@ static ulong stm32_set_rate(struct clk *clk, ulong rate)
|
||||
/* set pll_saidivr with found value */
|
||||
clrsetbits_le32(®s->dckcfgr,
|
||||
RCC_DCKCFGR_PLLSAIDIVR_MASK,
|
||||
pllsaidivr_table[i]);
|
||||
pllsaidivr_table[i] <<
|
||||
RCC_DCKCFGR_PLLSAIDIVR_SHIFT);
|
||||
return rate;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user