From a877bb50010ca230c34aff0f4e5767264e22d8ee Mon Sep 17 00:00:00 2001 From: Dawid Niedzwiecki Date: Tue, 21 Nov 2023 12:46:45 +0100 Subject: [PATCH] timer: cortex_m_systick: add idle timer dependency Allow enabling the Cortex-m idle timer only if power management is set. It doesn't make sense to use an idle timer without PM. It allows adding the idle timer chosen node to dts without enabling the idle timer by default. Now, the PM config has to be set as well. Signed-off-by: Dawid Niedzwiecki --- 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 baf1f6c817e..2a4f48832cf 100644 --- a/drivers/timer/Kconfig.cortex_m_systick +++ b/drivers/timer/Kconfig.cortex_m_systick @@ -48,6 +48,7 @@ config CORTEX_M_SYSTICK_IDLE_TIMER default $(dt_chosen_enabled,$(DT_CHOSEN_IDLE_TIMER)) depends on COUNTER depends on TICKLESS_KERNEL + depends on PM help There are chips e.g. STMFX family that use SysTick as a system timer, but SysTick is not clocked in low power mode. These chips usually have