From ec80ab5bb60180c2235bfc22c6ca49d1ef83496d Mon Sep 17 00:00:00 2001 From: Peter Mitsis Date: Mon, 14 Apr 2025 15:20:42 -0700 Subject: [PATCH] drivers: timer: Clean up Cortex-M systick Kconfig Makes the choice CORTEX_M_SYSTICK_LPM dependent upon the CORTEX_M_SYSTICK to prevent its default from showing up in the .config of projects that do not use the CORTEX_M_SYSTICK timer driver. Signed-off-by: Peter Mitsis --- drivers/timer/Kconfig.cortex_m_systick | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/timer/Kconfig.cortex_m_systick b/drivers/timer/Kconfig.cortex_m_systick index c0e8140fcb5..8e23fe9574e 100644 --- a/drivers/timer/Kconfig.cortex_m_systick +++ b/drivers/timer/Kconfig.cortex_m_systick @@ -45,6 +45,7 @@ config CORTEX_M_SYSTICK_64BIT_CYCLE_COUNTER choice CORTEX_M_SYSTICK_LPM_TIMER prompt "SysTick companion low-power mode timer" + depends on CORTEX_M_SYSTICK # If all dependencies are enabled, and /chosen/cortex-m-idle-timer # is enabled, default to using the Counter API-based LPM timer. # Otherwise, the first choice (LPM_TIMER_NONE) will be selected