]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
arm, at91, wdt: make timeout configurable
authorHeiko Schocher <hs@denx.de>
Wed, 21 Jan 2015 07:38:22 +0000 (08:38 +0100)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 1 Sep 2015 10:59:14 +0000 (12:59 +0200)
make the HW WDT timeout configurable through the define
CONFIG_AT91_HW_WDT_TIMEOUT.

Signed-off-by: Heiko Schocher <hs@denx.de>
README
drivers/watchdog/at91sam9_wdt.c

diff --git a/README b/README
index a435c8b2fa7ce054530002b7d5d8f20f197710ad..353d8db50062b9a19422126be344e189d7394a4c 100644 (file)
--- a/README
+++ b/README
@@ -1257,6 +1257,9 @@ The following options need to be configured:
                SoC, then define this variable and provide board
                specific code for the "hw_watchdog_reset" function.
 
+               CONFIG_AT91_HW_WDT_TIMEOUT
+               specify the timeout in seconds. default 2 seconds.
+
 - U-Boot Version:
                CONFIG_VERSION_VARIABLE
                If this variable is defined, an environment variable
index ffd49a2befbb24a59747533c5960741a0ae14f05..03c786c53bd0db59b66aed4e0a6d4ecdde0bd2f2 100644 (file)
 #define ticks_to_ms(t) (((t + 1) * 1000) >> 8)
 
 /* Hardware timeout in seconds */
+#if !defined(CONFIG_AT91_HW_WDT_TIMEOUT)
 #define WDT_HW_TIMEOUT 2
+#else
+#define WDT_HW_TIMEOUT CONFIG_AT91_HW_WDT_TIMEOUT
+#endif
 
 /*
  * Set the watchdog time interval in 1/256Hz (write-once)