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:
parent
96e8e39feb
commit
f63f863c85
|
@ -1,4 +1,5 @@
|
||||||
#include <common.h>
|
#include <common.h>
|
||||||
|
#include <watchdog.h>
|
||||||
#include <jffs2/jffs2.h>
|
#include <jffs2/jffs2.h>
|
||||||
#include <asm/addrspace.h>
|
#include <asm/addrspace.h>
|
||||||
#include <asm/types.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);
|
extern void show_activity(int arg);
|
||||||
show_activity(3);
|
show_activity(3);
|
||||||
#endif
|
#endif
|
||||||
|
#if defined(CONFIG_HW_WATCHDOG) || defined(CONFIG_WATCHDOG)
|
||||||
|
WATCHDOG_RESET();
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
ar7240_spi_sector_erase(i * sector_size);
|
ar7240_spi_sector_erase(i * sector_size);
|
||||||
|
|
Loading…
Reference in New Issue