The value to be written to the register must be appropriately shifted,
as is correctly done in other parts of the code.
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>
/* 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;
}