From 63850804f167353df27b6b33d05f8f3ab642aae4 Mon Sep 17 00:00:00 2001 From: Henrik Brix Andersen Date: Tue, 31 Jan 2023 11:26:52 +0100 Subject: [PATCH] drivers: timer: mcux: lptmr: add dependency on CONFIG_PM The introduction of cc2c05a90cd6b573c8702ae4c117c3e64efa42a9 caused CONFIG_MCUX_LPTMR_TIMER to always be enabled for boards where the NXP LPTMR is enabled in the board devicetree. Using this low-power timer as system timer only makes sense when using power management. Otherwise, it just results in a lower tick resolution and non-tickless operation. Add dependency on CONFIG_PM for CONFIG_MCUX_LPTMR_TIMER. Signed-off-by: Henrik Brix Andersen --- drivers/timer/Kconfig.mcux_lptmr | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/timer/Kconfig.mcux_lptmr b/drivers/timer/Kconfig.mcux_lptmr index decbbb99f9..8879cb3b55 100644 --- a/drivers/timer/Kconfig.mcux_lptmr +++ b/drivers/timer/Kconfig.mcux_lptmr @@ -8,6 +8,7 @@ config MCUX_LPTMR_TIMER default y depends on DT_HAS_NXP_KINETIS_LPTMR_ENABLED depends on !COUNTER_MCUX_LPTMR + depends on PM select SYSTEM_TIMER_HAS_DISABLE_SUPPORT help This module implements a kernel device driver for the NXP MCUX Low