drivers: timer: make lptim depend on the dt node

The stm32_lptim driver is hardcoded to use lptim1.

Make the Kconfig option depend on the presence of the node label in the
devicetree, so that there's one less list of supported SoC to keep track
of.

Signed-off-by: Fabio Baltieri <fabio.baltieri@gmail.com>
This commit is contained in:
Fabio Baltieri 2021-05-22 13:57:18 +01:00 committed by Anas Nashif
commit 93554f050b

View file

@ -5,7 +5,7 @@
menuconfig STM32_LPTIM_TIMER menuconfig STM32_LPTIM_TIMER
bool "STM32 Low Power Timer [EXPERIMENTAL]" bool "STM32 Low Power Timer [EXPERIMENTAL]"
depends on (SOC_SERIES_STM32L4X || SOC_SERIES_STM32L5X || SOC_SERIES_STM32WBX) depends on "$(dt_nodelabel_enabled,lptim1)"
depends on CLOCK_CONTROL && PM depends on CLOCK_CONTROL && PM
select TICKLESS_CAPABLE select TICKLESS_CAPABLE
help help