drivers: counter: fix leaking NXP counter Kconfigs

fix conditions for COUNTER_NXP_PIT and COUNTER_NXP_MRT Kconfigs

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
This commit is contained in:
Benjamin Cabé 2024-04-19 22:57:37 -07:00 committed by Fabio Baltieri
parent 388c0aa68f
commit d9c40856ea
2 changed files with 4 additions and 2 deletions

View file

@ -3,7 +3,8 @@
config COUNTER_NXP_MRT
bool "NXP MRT driver"
default y if DT_HAS_NXP_MRT_CHANNEL_ENABLED && \
default y
depends on DT_HAS_NXP_MRT_CHANNEL_ENABLED && \
DT_HAS_NXP_MRT_ENABLED
help
Enable driver for the NXP Multirate Timer (MRT).

View file

@ -5,7 +5,8 @@
config COUNTER_NXP_PIT
bool "NXP PIT driver"
default y if DT_HAS_NXP_PIT_CHANNEL_ENABLED && \
default y
depends on DT_HAS_NXP_PIT_CHANNEL_ENABLED && \
DT_HAS_NXP_PIT_ENABLED
help
Enable support for the NXP Periodic Interrupt Timer (PIT).