mirror of
https://review.coreboot.org/flashrom.git
synced 2025-04-27 23:22:37 +02:00
Reset SST49LF016C after erase to exit the read status register mode
Without this, all reads after erase will return 0x80 instead of the real memory contents. Thanks to Michael Melcher for testing. Corresponding to flashrom svn r654. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Luc Verhaegen <libv@skynet.be> Acked-by: Michael Melcher <Michael.Melcher82@googlemail.com>
This commit is contained in:
parent
142e30fcaa
commit
322f305033
@ -91,6 +91,7 @@ static int erase_sector_49lfxxxc(struct flashchip *flash, unsigned long address,
|
|||||||
return (-1);
|
return (-1);
|
||||||
}
|
}
|
||||||
} while (!(status & STATUS_WSMS));
|
} while (!(status & STATUS_WSMS));
|
||||||
|
chip_writeb(RESET, bios);
|
||||||
|
|
||||||
if (check_erased_range(flash, address, sector_size)) {
|
if (check_erased_range(flash, address, sector_size)) {
|
||||||
fprintf(stderr, "ERASE FAILED!\n");
|
fprintf(stderr, "ERASE FAILED!\n");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user