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 <peter.mitsis@intel.com>
This commit is contained in:
Peter Mitsis 2025-04-14 15:20:42 -07:00 committed by Dan Kalowsky
parent 1610aa0e9f
commit ec80ab5bb6

View File

@ -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