Skip to content

Commit b813643

Browse files
committed
soc: st: stm32f7: enable PWR clock during early init
1 parent 4fea366 commit b813643

File tree

1 file changed

+1
-2
lines changed
  • soc/st/stm32/stm32f7x

1 file changed

+1
-2
lines changed

soc/st/stm32/stm32f7x/soc.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#include <soc.h>
1717

1818
#include <cmsis_core.h>
19+
#include <stm32_ll_bus.h>
1920
#include <stm32_ll_system.h>
2021

2122
/**
@@ -38,8 +39,6 @@ void soc_early_init_hook(void)
3839
/* At reset, system core clock is set to 16 MHz from HSI */
3940
SystemCoreClock = 16000000;
4041

41-
#if defined(CONFIG_PM)
4242
/* Ensure PWR peripheral clock is enabled on APB1 */
4343
LL_APB1_GRP1_EnableClock(LL_APB1_GRP1_PERIPH_PWR);
44-
#endif
4544
}

0 commit comments

Comments
 (0)