soc: arm: stm32lx: fix using MSI as wake-up clock source
Following the migration of the clock source configuration in DTS (commit
2691541ad2
), 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 <aurelien@aurel32.net>
This commit is contained in:
parent
2aa0bb2422
commit
18c9dfdd8f
3 changed files with 3 additions and 0 deletions
|
@ -15,6 +15,7 @@
|
||||||
#include <stm32l0xx_ll_rcc.h>
|
#include <stm32l0xx_ll_rcc.h>
|
||||||
#include <stm32l0xx_ll_system.h>
|
#include <stm32l0xx_ll_system.h>
|
||||||
#include <clock_control/clock_stm32_ll_common.h>
|
#include <clock_control/clock_stm32_ll_common.h>
|
||||||
|
#include <drivers/clock_control/stm32_clock_control.h>
|
||||||
|
|
||||||
#include <logging/log.h>
|
#include <logging/log.h>
|
||||||
LOG_MODULE_DECLARE(soc, CONFIG_SOC_LOG_LEVEL);
|
LOG_MODULE_DECLARE(soc, CONFIG_SOC_LOG_LEVEL);
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
#include <stm32l4xx_ll_rcc.h>
|
#include <stm32l4xx_ll_rcc.h>
|
||||||
#include <stm32l4xx_ll_system.h>
|
#include <stm32l4xx_ll_system.h>
|
||||||
#include <clock_control/clock_stm32_ll_common.h>
|
#include <clock_control/clock_stm32_ll_common.h>
|
||||||
|
#include <drivers/clock_control/stm32_clock_control.h>
|
||||||
|
|
||||||
#include <logging/log.h>
|
#include <logging/log.h>
|
||||||
LOG_MODULE_DECLARE(soc, CONFIG_SOC_LOG_LEVEL);
|
LOG_MODULE_DECLARE(soc, CONFIG_SOC_LOG_LEVEL);
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
#include <stm32l5xx_ll_rcc.h>
|
#include <stm32l5xx_ll_rcc.h>
|
||||||
#include <stm32l5xx_ll_system.h>
|
#include <stm32l5xx_ll_system.h>
|
||||||
#include <clock_control/clock_stm32_ll_common.h>
|
#include <clock_control/clock_stm32_ll_common.h>
|
||||||
|
#include <drivers/clock_control/stm32_clock_control.h>
|
||||||
|
|
||||||
#include <logging/log.h>
|
#include <logging/log.h>
|
||||||
LOG_MODULE_DECLARE(soc, CONFIG_SOC_LOG_LEVEL);
|
LOG_MODULE_DECLARE(soc, CONFIG_SOC_LOG_LEVEL);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue