Skip to content

Commit 18c9dfd

Browse files
aurel32nashif
authored andcommitted
soc: arm: stm32lx: fix using MSI as wake-up clock source
Following the migration of the clock source configuration in DTS (commit 2691541), HSI is always used as wake-up source on STM32LX. It is reconfigured as MSI just after, but it slightly increase the wake-up time and power consumption. It happens as the file defining STM32_SYSCLK_SRC_MSI is not included. Fix that. Fixes #38807 Signed-off-by: Aurelien Jarno <[email protected]>
1 parent 2aa0bb2 commit 18c9dfd

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

soc/arm/st_stm32/stm32l0/power.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include <stm32l0xx_ll_rcc.h>
1616
#include <stm32l0xx_ll_system.h>
1717
#include <clock_control/clock_stm32_ll_common.h>
18+
#include <drivers/clock_control/stm32_clock_control.h>
1819

1920
#include <logging/log.h>
2021
LOG_MODULE_DECLARE(soc, CONFIG_SOC_LOG_LEVEL);

soc/arm/st_stm32/stm32l4/power.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include <stm32l4xx_ll_rcc.h>
1616
#include <stm32l4xx_ll_system.h>
1717
#include <clock_control/clock_stm32_ll_common.h>
18+
#include <drivers/clock_control/stm32_clock_control.h>
1819

1920
#include <logging/log.h>
2021
LOG_MODULE_DECLARE(soc, CONFIG_SOC_LOG_LEVEL);

soc/arm/st_stm32/stm32l5/power.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include <stm32l5xx_ll_rcc.h>
1616
#include <stm32l5xx_ll_system.h>
1717
#include <clock_control/clock_stm32_ll_common.h>
18+
#include <drivers/clock_control/stm32_clock_control.h>
1819

1920
#include <logging/log.h>
2021
LOG_MODULE_DECLARE(soc, CONFIG_SOC_LOG_LEVEL);

0 commit comments

Comments
 (0)