Introduce a hidden Kconfig option named HAS_WDT_DISABLE_AT_BOOT and allow users to enable WDT_DISABLE_AT_BOOT only when that hidden option is selected by a watchdog driver, i.e. disabling at boot is supported. Select this new hidden option for all existing watchdog drivers that refer to WDT_DISABLE_AT_BOOT. Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
12 lines
309 B
Text
12 lines
309 B
Text
# SiFive Freedom WDT configuration
|
|
|
|
# Copyright (C) 2020 Katsuhiro Suzuki
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
config WDT_SIFIVE
|
|
bool "SiFive Watchdog (WDT) Driver"
|
|
default y
|
|
depends on DT_HAS_SIFIVE_WDT_ENABLED
|
|
select HAS_WDT_DISABLE_AT_BOOT
|
|
help
|
|
This option enables WDT driver for SiFive Freedom.
|