summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-02-11 20:19:10 -0500
committerMike Frysinger <vapier@gentoo.org>2010-04-07 01:11:07 -0400
commit0c080aa753eb92e1c0033d3fd33033b2b4813884 (patch)
tree7cd8207223e1ca4b3b83769e364f3b7aa83cef6d
parentb874ed17472de492cfbf58c8e362364bc80e3dcd (diff)
downloadu-boot-imx-0c080aa753eb92e1c0033d3fd33033b2b4813884.zip
u-boot-imx-0c080aa753eb92e1c0033d3fd33033b2b4813884.tar.gz
u-boot-imx-0c080aa753eb92e1c0033d3fd33033b2b4813884.tar.bz2
Blackfin: call watchdog_init() for external watchdogs
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rw-r--r--lib_blackfin/board.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib_blackfin/board.c b/lib_blackfin/board.c
index b0b52b2..4e9bb19 100644
--- a/lib_blackfin/board.c
+++ b/lib_blackfin/board.c
@@ -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();