From 9f02634d3f810a25858d57bc6e7b3aaeb188efa6 Mon Sep 17 00:00:00 2001 From: Guillaume Gautier Date: Fri, 18 Apr 2025 08:57:38 +0200 Subject: [PATCH] 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 --- soc/st/stm32/stm32n6x/soc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/soc/st/stm32/stm32n6x/soc.c b/soc/st/stm32/stm32n6x/soc.c index fa06138ce67..d3bae6eeff8 100644 --- a/soc/st/stm32/stm32n6x/soc.c +++ b/soc/st/stm32/stm32n6x/soc.c @@ -54,6 +54,9 @@ void soc_early_init_hook(void) /* Enable PWR */ LL_AHB4_GRP1_EnableClock(LL_AHB4_GRP1_PERIPH_PWR); + /* Set the main internal Regulator output voltage for best performance */ + LL_PWR_SetRegulVoltageScaling(LL_PWR_REGU_VOLTAGE_SCALE0); + /* Enable IOs */ LL_PWR_EnableVddIO2(); LL_PWR_EnableVddIO3();