drivers: timer: mcux: lptmr: add dependency on CONFIG_PM

The introduction of cc2c05a90c 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 <hebad@vestas.com>
This commit is contained in:
Henrik Brix Andersen 2023-01-31 11:26:52 +01:00 committed by David Leach
parent e55fd536c8
commit 63850804f1

View file

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