]> git.sur5r.net Git - u-boot/blobdiff - drivers/watchdog/at91sam9_wdt.c
configs: x86: allow to override CONFIG_BOOTCOMMAND
[u-boot] / drivers / watchdog / at91sam9_wdt.c
index 80dad07d84eed751905341cf6a2833b215b288c8..03c786c53bd0db59b66aed4e0a6d4ecdde0bd2f2 100644 (file)
@@ -6,10 +6,7 @@
  * Copyright (C) 2008 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
  * Copyright (C) 2008 Renaud CERRATO r.cerrato@til-technologies.fr
  *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version
- * 2 of the License, or (at your option) any later version.
+ * SPDX-License-Identifier:    GPL-2.0+
  */
 
 /*
 #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)