ar7240: reset watchdog when erasing

otherwise the watchdog will freeze the board because the spi flash isn't reachable so fast
This commit is contained in:
Alexander Couzens 2015-03-04 21:55:48 +01:00
parent 96e8e39feb
commit f63f863c85
1 changed files with 4 additions and 0 deletions

View File

@ -1,4 +1,5 @@
#include <common.h>
#include <watchdog.h>
#include <jffs2/jffs2.h>
#include <asm/addrspace.h>
#include <asm/types.h>
@ -100,6 +101,9 @@ flash_erase(flash_info_t *info, int s_first, int s_last)
extern void show_activity(int arg);
show_activity(3);
#endif
#if defined(CONFIG_HW_WATCHDOG) || defined(CONFIG_WATCHDOG)
WATCHDOG_RESET();
#endif
#endif
ar7240_spi_sector_erase(i * sector_size);