summaryrefslogtreecommitdiffstats
path: root/commands/Kconfig
diff options
context:
space:
mode:
authorJuergen Beisert <jbe@pengutronix.de>2012-06-27 16:30:41 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2012-06-29 15:16:34 +0200
commit2928591eab21eb6bf4a085f5f19bf87c21ee7866 (patch)
tree100ff3787f434c0cc38da6c1d6ee53d7ddc89466 /commands/Kconfig
parentfd4c51aa28acfd61e1802cb5ab1197d808e7da82 (diff)
downloadbarebox-2928591eab21eb6bf4a085f5f19bf87c21ee7866.tar.gz
barebox-2928591eab21eb6bf4a085f5f19bf87c21ee7866.tar.xz
Add a simple watchdog framework
This patch adds a simple wd command which can setup, trigger and stop a watchdog on the platform. Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/Kconfig')
-rw-r--r--commands/Kconfig19
1 files changed, 19 insertions, 0 deletions
diff --git a/commands/Kconfig b/commands/Kconfig
index 52e1f171bb..2c500bfc0f 100644
--- a/commands/Kconfig
+++ b/commands/Kconfig
@@ -552,6 +552,25 @@ config CMD_USB
help
The usb command allows to rescan for USB devices.
+menuconfig CMD_WD
+ bool
+ depends on WATCHDOG
+ prompt "wd command "
+ help
+ The 'wd' command which allows to start, stop and trigger the onboard
+ watchdog.
+
+if CMD_WD
+
+config CMD_WD_DEFAULT_TIMOUT
+ int
+ prompt "default timeout"
+ help
+ Define the default timeout value in [seconds] if the first call of
+ 'wd' is done without a timeout value (which means the watchdog gets
+ enabled and re-triggered with the default timeout value).
+endif
+
endmenu
endif