From 4af099bda90fe602aff96b2fd914fca89f320c5c Mon Sep 17 00:00:00 2001 From: Wolfgang Denk Date: Tue, 9 May 2006 13:49:12 +0200 Subject: Fix watchdog issues for ColdFire boards. --- drivers/cfi_flash.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'drivers') diff --git a/drivers/cfi_flash.c b/drivers/cfi_flash.c index 2e37480..3717237 100644 --- a/drivers/cfi_flash.c +++ b/drivers/cfi_flash.c @@ -45,6 +45,7 @@ /* #define DEBUG */ #include +#include #include #include #include @@ -1307,6 +1308,10 @@ static int flash_write_cfiword (flash_info_t * info, ulong dest, if (flag) enable_interrupts (); +#if defined(CONFIG_MCF52x2) + WATCHDOG_RESET(); +#endif + return flash_full_status_check (info, find_sector (info, dest), info->write_tout, "write"); } -- cgit v1.1