Skip to content

Commit 9f02634

Browse files
gautierg-stkartben
authored andcommitted
soc: st: stm32n6: configure regulator for best performance
Configure the main internal Regulator output voltage for best performance on STM32N6. Signed-off-by: Guillaume Gautier <[email protected]>
1 parent 744d6e8 commit 9f02634

File tree

1 file changed

+3
-0
lines changed
  • soc/st/stm32/stm32n6x

1 file changed

+3
-0
lines changed

soc/st/stm32/stm32n6x/soc.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ void soc_early_init_hook(void)
5454
/* Enable PWR */
5555
LL_AHB4_GRP1_EnableClock(LL_AHB4_GRP1_PERIPH_PWR);
5656

57+
/* Set the main internal Regulator output voltage for best performance */
58+
LL_PWR_SetRegulVoltageScaling(LL_PWR_REGU_VOLTAGE_SCALE0);
59+
5760
/* Enable IOs */
5861
LL_PWR_EnableVddIO2();
5962
LL_PWR_EnableVddIO3();

0 commit comments

Comments
 (0)