zephyr/drivers/watchdog/Kconfig.npcx
Kumar Gala bdff3e76e5 drivers: watchdog: Update drivers to use devicetree Kconfig symbol
Update watchdog drivers to use DT_HAS_<compat>_ENABLED Kconfig symbol
to expose the driver and enable it by default based on devicetree.

We remove 'depend on' Kconfig for symbols that would be implied by
the devicetree node existing.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-07-22 14:06:00 +00:00

24 lines
734 B
Plaintext

# NPCX WDT driver configuration options
# Copyright (c) 2021 Nuvoton Technology Corporation.
# SPDX-License-Identifier: Apache-2.0
config WDT_NPCX
bool "Nuvoton NPCX embedded controller (EC) Watchdog Timer driver"
default y
depends on DT_HAS_NUVOTON_NPCX_WATCHDOG_ENABLED
help
This option enables the Watchdog Timer driver for NPCX family of
processors.
Say y if you wish to use watchdog on NPCX MCU.
config WDT_NPCX_DELAY_CYCLES
int "Number of delay cycles before generating watchdog event/signal"
depends on WDT_NPCX
range 1 255
default 10
help
This option defines the window in which a watchdog event must be
handled, in units of 31ms. After this time window, the watchdog reset
triggers immediately.