Fix watchdog issues for ColdFire boards.

This commit is contained in:
Wolfgang Denk
2006-05-09 13:49:12 +02:00
parent 1cfefe8cb6
commit 4af099bda9
3 changed files with 18 additions and 8 deletions

View File

@@ -45,6 +45,7 @@
/* #define DEBUG */
#include <common.h>
#include <watchdog.h>
#include <asm/processor.h>
#include <asm/byteorder.h>
#include <environment.h>
@@ -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");
}