Just use udelay() when waiting for status changes which will
implicitely trigger the watchdog.
Changes since U-Boot 1.1.4:
======================================================================
+* Fix watchdog handling in CFI flash driver
+ Just use udelay() when waiting for status changes which will
+ implicitely trigger the watchdog.
+
* Fix PCI to memory window size problems on PM82x boards
We use the "automatic" mode that was used for the MPC8266ADS and
MPC8272 boards. Eventually this should be used on all boards?]
/* #define DEBUG */
#include <common.h>
-#include <watchdog.h>
#include <asm/processor.h>
#include <asm/byteorder.h>
#include <environment.h>
flash_write_cmd (info, sector, 0, info->cmd_reset);
return ERR_TIMOUT;
}
+ udelay (1); /* also triggers watchdog */
}
return ERR_OK;
}
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");
}