bdff3e76e5
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>
19 lines
585 B
Plaintext
19 lines
585 B
Plaintext
# Copyright (c) 2022, Jamie McCrae
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
config WDT_RPI_PICO
|
|
bool "Raspberry Pi Pico Watchdog driver"
|
|
default y
|
|
depends on DT_HAS_RASPBERRYPI_PICO_WATCHDOG_ENABLED
|
|
|
|
config WDT_RPI_PICO_INITIAL_TIMEOUT
|
|
int "Default watchdog timeout in us"
|
|
depends on WDT_RPI_PICO
|
|
default 8388607
|
|
range 1 8388607
|
|
help
|
|
Sets the default watchdog timeout at start-up, the feed function must
|
|
be called every interval prior to this time elapsing to prevent a
|
|
reboot of the module. The default is just over 8 seconds, which is the
|
|
largest timeout possible.
|