summaryrefslogtreecommitdiff
path: root/drivers/cfi_flash.c
diff options
context:
space:
mode:
authorWolfgang Denk <wd@pollux.denx.de>2006-05-09 13:49:12 +0200
committerWolfgang Denk <wd@pollux.denx.de>2006-05-09 13:49:12 +0200
commit4af099bda90fe602aff96b2fd914fca89f320c5c (patch)
tree16d2cfaeed3b97933294cf741062b82c583dcc81 /drivers/cfi_flash.c
parent1cfefe8cb6e1bb43f6509c0aee254e2908d42f21 (diff)
downloadu-boot-imx-4af099bda90fe602aff96b2fd914fca89f320c5c.zip
u-boot-imx-4af099bda90fe602aff96b2fd914fca89f320c5c.tar.gz
u-boot-imx-4af099bda90fe602aff96b2fd914fca89f320c5c.tar.bz2
Fix watchdog issues for ColdFire boards.
Diffstat (limited to 'drivers/cfi_flash.c')
-rw-r--r--drivers/cfi_flash.c5
1 files changed, 5 insertions, 0 deletions
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 <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");
}