浏览代码

Blackfin: call watchdog_init() for external watchdogs

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Mike Frysinger 15 年之前
父节点
当前提交
0c080aa753
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      lib_blackfin/board.c

+ 6 - 0
lib_blackfin/board.c

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