From 5f328ec0d29a69a92b2518083bb8d61c1e893021 Mon Sep 17 00:00:00 2001 From: Erwan Gouriou Date: Fri, 1 Oct 2021 14:56:14 +0200 Subject: [PATCH] drivers/timers: stm32_lptim: Set LSI as default LPTIM clck source Timer STM32 LPTIM currently supports 2 clocks sources: LSE & LSI. LSE (external) is defined as default but its availability depends on board support package and then may not be available. This ends up in situations where users have LSE implicitly selected while no crystal is available on board, leading to non functional LPTIM. To avoid this situation, makes LSI clock, which is always available (since internal to the SoC), the default LPTIM source clock. Then, default case will be functional. Users will then be able to select LSE if needed. Signed-off-by: Erwan Gouriou --- drivers/timer/Kconfig.stm32_lptim | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/timer/Kconfig.stm32_lptim b/drivers/timer/Kconfig.stm32_lptim index 3e1d25d35cd7e..e182b44739ea2 100644 --- a/drivers/timer/Kconfig.stm32_lptim +++ b/drivers/timer/Kconfig.stm32_lptim @@ -17,16 +17,16 @@ if STM32_LPTIM_TIMER choice STM32_LPTIM_CLOCK prompt "LPTIM clock value configuration" -config STM32_LPTIM_CLOCK_LSE - bool "LSE" - help - Use LSE as LPTIM clock - config STM32_LPTIM_CLOCK_LSI bool "LSI" help Use LSI as LPTIM clock +config STM32_LPTIM_CLOCK_LSE + bool "LSE" + help + Use LSE as LPTIM clock + endchoice config STM32_LPTIM_CLOCK