drivers/watchdog: stm32: Select watchdog using compatible
Rather than Kconfig vendor symbols, select stm32 watchdog using compatible. So user only has to enable the requested node and set CONFIG_WATCHDOG=y. Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
parent
a573dfc298
commit
9abff32bdc
|
@ -13,14 +13,4 @@ config SPI_STM32_INTERRUPT
|
|||
default y
|
||||
depends on SPI
|
||||
|
||||
if WATCHDOG
|
||||
|
||||
config WWDG_STM32
|
||||
default y
|
||||
|
||||
config IWDG_STM32
|
||||
default n
|
||||
|
||||
endif # WATCHDOG
|
||||
|
||||
endif # BOARD_NUCLEO_F401RE
|
||||
|
|
|
@ -12,14 +12,4 @@ config SPI_STM32_INTERRUPT
|
|||
default y
|
||||
depends on SPI
|
||||
|
||||
if WATCHDOG
|
||||
|
||||
config WWDG_STM32
|
||||
default y
|
||||
|
||||
config IWDG_STM32
|
||||
default n
|
||||
|
||||
endif # WATCHDOG
|
||||
|
||||
endif # BOARD_NUCLEO_L496ZG
|
||||
|
|
|
@ -5,8 +5,12 @@
|
|||
# Copyright (c) 2019 Centaur Analytics, Inc
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
menuconfig IWDG_STM32
|
||||
DT_COMPAT_ST_STM32_IWDG := st,stm32-watchdog
|
||||
DT_COMPAT_ST_STM32_WWDG := st,stm32-window-watchdog
|
||||
|
||||
config IWDG_STM32
|
||||
bool "Independent Watchdog (IWDG) Driver for STM32 family of MCUs"
|
||||
default $(dt_compat_enabled,$(DT_COMPAT_ST_STM32_IWDG))
|
||||
depends on SOC_FAMILY_STM32
|
||||
help
|
||||
Enable IWDG driver for STM32 line of MCUs
|
||||
|
@ -29,6 +33,7 @@ config IWDG_STM32_INITIAL_TIMEOUT
|
|||
|
||||
config WWDG_STM32
|
||||
bool "System Window Watchdog (WWDG) Driver for STM32 family of MCUs"
|
||||
default $(dt_compat_enabled,$(DT_COMPAT_ST_STM32_WWDG))
|
||||
depends on SOC_FAMILY_STM32
|
||||
help
|
||||
Enable WWDG driver for STM32 line of MCUs
|
||||
|
|
|
@ -36,16 +36,6 @@ config PINMUX_STM32
|
|||
default y
|
||||
depends on PINMUX
|
||||
|
||||
if WATCHDOG
|
||||
|
||||
config IWDG_STM32
|
||||
default y
|
||||
|
||||
config WWDG_STM32
|
||||
default n
|
||||
|
||||
endif # WATCHDOG
|
||||
|
||||
config PWM_STM32
|
||||
default y
|
||||
depends on PWM
|
||||
|
|
Loading…
Reference in a new issue