Skip to content
Snippets Groups Projects
user avatar
Jens Scharsig (BuS Elektronik) authored
The current implementation of cfi_flash uses udelay to reset watchdog.
If several blocks are blank (0xff filled) the watchdog timed out.
The reason is, udelay is never called, if flash device is ready to fast.

e.g.
     mw.w $(copy_addr) FFFF 10000;cp.b $(copy_addr) 10880000 20000

     -> watchdog timed out

     mw.w $(copy_addr) 0000 10000;cp.b $(copy_addr) 10880000 20000

     -> watchdog not timed out

This patch adds an extra watchdog reset in front of flash ready check.

Signed-off-by: default avatarJens Scharsig (BuS Elektronik) <esw@bus-elektronik.de>
Signed-off-by: default avatarStefan Roese <sr@denx.de>
a9f5faba
History
Name Last commit Last update