From: Mike Frysinger Date: Wed, 7 Apr 2010 01:16:00 -0400 Subject: [U-Boot] [PATCH 08/10] Blackfin: call watchdog_init() for external watchdogs In-Reply-To: <1270617362-12431-1-git-send-email-vapier@gentoo.org> References: <1270617362-12431-1-git-send-email-vapier@gentoo.org> Message-ID: <1270617362-12431-9-git-send-email-vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Signed-off-by: Mike Frysinger --- lib_blackfin/board.c | 6 ++++++ 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(); -- 1.7.0.4