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>
19 lines
504 B
Text
19 lines
504 B
Text
# Copyright (c) 2021 Pavlo Hamov <pasha.gamov@gmail.com>
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
config WDT_CC32XX
|
|
bool "Watchdog Driver for cc32xx family of MCUs"
|
|
default y
|
|
depends on DT_HAS_TI_CC32XX_WATCHDOG_ENABLED
|
|
select HAS_WDT_DISABLE_AT_BOOT
|
|
help
|
|
Watchdog for cc32xx family of MCUs
|
|
|
|
config WDT_CC32XX_INITIAL_TIMEOUT
|
|
int "Value for WDT timeout in ms"
|
|
depends on WDT_CC32XX
|
|
default 2000
|
|
range 1 53687
|
|
help
|
|
Max value depend on system frequency.
|
|
80 Mhz: 0xFFFFFFFF / (80e9 / 1000)
|