Skip to content

Commit 0aaf8a1

Browse files
committed
soc: st: stm32: h7rsx: Disable core power and VOS config for XiP
Disables setting the SystemCoreClock variable to 64MHz (reset default), the configuration of the core supply LL_PWR_ConfigSupply(...) and switch to VOLTAGE_SCALE1 (VOS1) during soc_early_init_hook() when CONFIG_STM32_APP_IN_EXT_FLASH is set. Signed-off-by: Thomas Decker <[email protected]>
1 parent f209d35 commit 0aaf8a1

File tree

1 file changed

+4
-0
lines changed
  • soc/st/stm32/stm32h7rsx

1 file changed

+4
-0
lines changed

soc/st/stm32/stm32h7rsx/soc.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ void soc_early_init_hook(void)
3131
sys_cache_instr_enable();
3232
sys_cache_data_enable();
3333

34+
#if !defined(CONFIG_STM32_APP_IN_EXT_FLASH)
35+
3436
/* Update CMSIS SystemCoreClock variable (HCLK) */
3537
/* At reset, system core clock is set to 64 MHz from HSI */
3638
SystemCoreClock = 64000000;
@@ -59,6 +61,8 @@ void soc_early_init_hook(void)
5961
while (LL_PWR_IsActiveFlag_VOSRDY() == 0) {
6062
}
6163

64+
#endif /* defined(CONFIG_STM32_APP_IN_EXT_FLASH) */
65+
6266
#if DT_NODE_HAS_STATUS(DT_NODELABEL(gpioo), okay) || DT_NODE_HAS_STATUS(DT_NODELABEL(gpiop), okay)
6367
LL_PWR_EnableXSPIM1(); /* Required for powering GPIO O and P */
6468
#endif /* gpioo || gpio p */

0 commit comments

Comments
 (0)