Skip to content

Commit ce2d907

Browse files
ndrs-pstkartben
authored andcommitted
drivers: clock_control: stm32: enable PLL1FRACN setting
Enables the fractional-N (FRACN) setting for PLL1 in the STM32H5XX clock driver. This feature allows achieving a system clock frequency of 250 MHz from an 8 MHz `clk_hse`. Signed-off-by: Pisit Sawangvonganan <[email protected]>
1 parent db28dbd commit ce2d907

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/clock_control/clock_stm32_ll_h5.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,10 @@ static int set_up_plls(void)
478478
LL_RCC_PLL1_SetN(STM32_PLL_N_MULTIPLIER);
479479

480480
LL_RCC_PLL1FRACN_Disable();
481+
if (IS_ENABLED(STM32_PLL_FRACN_ENABLED)) {
482+
LL_RCC_PLL1_SetFRACN(STM32_PLL_FRACN_VALUE);
483+
LL_RCC_PLL1FRACN_Enable();
484+
}
481485

482486
if (IS_ENABLED(STM32_PLL_P_ENABLED)) {
483487
LL_RCC_PLL1_SetP(STM32_PLL_P_DIVISOR);

0 commit comments

Comments
 (0)