|
@@ -45,7 +45,6 @@
|
|
/* #define DEBUG */
|
|
/* #define DEBUG */
|
|
|
|
|
|
#include <common.h>
|
|
#include <common.h>
|
|
-#include <watchdog.h>
|
|
|
|
#include <asm/processor.h>
|
|
#include <asm/processor.h>
|
|
#include <asm/byteorder.h>
|
|
#include <asm/byteorder.h>
|
|
#include <environment.h>
|
|
#include <environment.h>
|
|
@@ -794,6 +793,7 @@ static int flash_status_check (flash_info_t * info, flash_sect_t sector,
|
|
flash_write_cmd (info, sector, 0, info->cmd_reset);
|
|
flash_write_cmd (info, sector, 0, info->cmd_reset);
|
|
return ERR_TIMOUT;
|
|
return ERR_TIMOUT;
|
|
}
|
|
}
|
|
|
|
+ udelay (1); /* also triggers watchdog */
|
|
}
|
|
}
|
|
return ERR_OK;
|
|
return ERR_OK;
|
|
}
|
|
}
|
|
@@ -1308,10 +1308,6 @@ static int flash_write_cfiword (flash_info_t * info, ulong dest,
|
|
if (flag)
|
|
if (flag)
|
|
enable_interrupts ();
|
|
enable_interrupts ();
|
|
|
|
|
|
-#if defined(CONFIG_MCF52x2)
|
|
|
|
- WATCHDOG_RESET();
|
|
|
|
-#endif
|
|
|
|
-
|
|
|
|
return flash_full_status_check (info, find_sector (info, dest),
|
|
return flash_full_status_check (info, find_sector (info, dest),
|
|
info->write_tout, "write");
|
|
info->write_tout, "write");
|
|
}
|
|
}
|