]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
Blackfin: call watchdog_init() for external watchdogs
authorMike Frysinger <vapier@gentoo.org>
Fri, 12 Feb 2010 01:19:10 +0000 (20:19 -0500)
committerMike Frysinger <vapier@gentoo.org>
Wed, 7 Apr 2010 05:11:07 +0000 (01:11 -0400)
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
lib_blackfin/board.c

index b0b52b2ba87c6d6d78bc06ed8622e9092ca95cd0..4e9bb19226c25a36d60435b994fe4a82a18e9044 100644 (file)
@@ -199,6 +199,7 @@ void init_cplbtables(void)
  * "continue" and != 0 means "fatal error, hang the system".
  */
 
+extern int watchdog_init(void);
 extern int exception_init(void);
 extern int irq_init(void);
 extern int timer_init(void);
@@ -229,6 +230,11 @@ void board_init_f(ulong bootflag)
        dcache_enable();
 #endif
 
+#ifdef CONFIG_WATCHDOG
+       serial_early_puts("Setting up external watchdog\n");
+       watchdog_init();
+#endif
+
 #ifdef DEBUG
        if (CONFIG_SYS_GBL_DATA_SIZE < sizeof(*gd))
                hang();