Blackfin: call watchdog_init() for external watchdogs

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
Mike Frysinger 2010-02-11 20:19:10 -05:00
parent b874ed1747
commit 0c080aa753

View 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();