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 <dawidn@google.com>
This commit is contained in:
Dawid Niedzwiecki 2023-11-21 12:46:45 +01:00 committed by Fabio Baltieri
parent 69d4c13ab3
commit a877bb5001

View file

@ -48,6 +48,7 @@ config CORTEX_M_SYSTICK_IDLE_TIMER
default $(dt_chosen_enabled,$(DT_CHOSEN_IDLE_TIMER)) default $(dt_chosen_enabled,$(DT_CHOSEN_IDLE_TIMER))
depends on COUNTER depends on COUNTER
depends on TICKLESS_KERNEL depends on TICKLESS_KERNEL
depends on PM
help help
There are chips e.g. STMFX family that use SysTick as a system timer, 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 but SysTick is not clocked in low power mode. These chips usually have