]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - drivers/watchdog/at91sam9_wdt.c
arm, at91, wdt: make timeout configurable
[people/ms/u-boot.git] / drivers / watchdog / at91sam9_wdt.c
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)