Skip to content

Commit 3f61150

Browse files
erwangocarlescufi
authored andcommitted
drivers: clock_control: stm32wba: set regu voltage after clk configuration
Call to set_regu_voltage() is required also after the clock configuration has been performed. Signed-off-by: Erwan Gouriou <[email protected]>
1 parent 79599a1 commit 3f61150

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/clock_control/clock_stm32_ll_wba.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,9 @@ int stm32_clock_control_init(const struct device *dev)
551551
LL_SetFlashLatency(CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC);
552552
}
553553

554+
/* Set voltage regulator to comply with targeted system frequency */
555+
set_regu_voltage(CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC);
556+
554557
SystemCoreClock = CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC;
555558

556559
/* Set bus prescalers prescaler */

0 commit comments

Comments
 (0)