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:
parent
512ff06f84
commit
93554f050b
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue