Skip to content

Commit 6b0199a

Browse files
erwangocfriedt
authored andcommitted
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 <[email protected]>
1 parent ab6c090 commit 6b0199a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

drivers/timer/Kconfig.stm32_lptim

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@ if STM32_LPTIM_TIMER
1717
choice STM32_LPTIM_CLOCK
1818
prompt "LPTIM clock value configuration"
1919

20-
config STM32_LPTIM_CLOCK_LSE
21-
bool "LSE"
22-
help
23-
Use LSE as LPTIM clock
24-
2520
config STM32_LPTIM_CLOCK_LSI
2621
bool "LSI"
2722
help
2823
Use LSI as LPTIM clock
2924

25+
config STM32_LPTIM_CLOCK_LSE
26+
bool "LSE"
27+
help
28+
Use LSE as LPTIM clock
29+
3030
endchoice
3131

3232
config STM32_LPTIM_CLOCK

0 commit comments

Comments
 (0)