From 18c9dfdd8fbb62d113099c23fc43dfdb33a6e57b Mon Sep 17 00:00:00 2001 From: Aurelien Jarno Date: Thu, 23 Sep 2021 23:49:35 +0200 Subject: [PATCH] soc: arm: stm32lx: fix using MSI as wake-up clock source Following the migration of the clock source configuration in DTS (commit 2691541ad22), 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 --- soc/arm/st_stm32/stm32l0/power.c | 1 + soc/arm/st_stm32/stm32l4/power.c | 1 + soc/arm/st_stm32/stm32l5/power.c | 1 + 3 files changed, 3 insertions(+) diff --git a/soc/arm/st_stm32/stm32l0/power.c b/soc/arm/st_stm32/stm32l0/power.c index 3bbaa2c1d9a..0a6486a58c8 100644 --- a/soc/arm/st_stm32/stm32l0/power.c +++ b/soc/arm/st_stm32/stm32l0/power.c @@ -15,6 +15,7 @@ #include #include #include +#include #include LOG_MODULE_DECLARE(soc, CONFIG_SOC_LOG_LEVEL); diff --git a/soc/arm/st_stm32/stm32l4/power.c b/soc/arm/st_stm32/stm32l4/power.c index 1947e8c4eea..a928408d889 100644 --- a/soc/arm/st_stm32/stm32l4/power.c +++ b/soc/arm/st_stm32/stm32l4/power.c @@ -15,6 +15,7 @@ #include #include #include +#include #include LOG_MODULE_DECLARE(soc, CONFIG_SOC_LOG_LEVEL); diff --git a/soc/arm/st_stm32/stm32l5/power.c b/soc/arm/st_stm32/stm32l5/power.c index 40e7baffbcc..1e84d7fb513 100644 --- a/soc/arm/st_stm32/stm32l5/power.c +++ b/soc/arm/st_stm32/stm32l5/power.c @@ -15,6 +15,7 @@ #include #include #include +#include #include LOG_MODULE_DECLARE(soc, CONFIG_SOC_LOG_LEVEL);