diff options
author | hailfinger <hailfinger@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2009-07-20 15:21:18 +0000 |
---|---|---|
committer | hailfinger <hailfinger@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2009-07-20 15:21:18 +0000 |
commit | f39e7cd6307f0a92cc4564fde02fb35f8fd8085c (patch) | |
tree | ab19aa0430af0f0b58d2016018a66c0ae4f20e49 /sst49lfxxxc.c | |
parent | edee3683b1b451089c6f160bb3540e65354a0e24 (diff) | |
download | flashrom-f39e7cd6307f0a92cc4564fde02fb35f8fd8085c.tar.gz |
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.
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>
git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@654 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'sst49lfxxxc.c')
-rw-r--r-- | sst49lfxxxc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sst49lfxxxc.c b/sst49lfxxxc.c index 2875d64..3c4405d 100644 --- a/sst49lfxxxc.c +++ b/sst49lfxxxc.c @@ -91,6 +91,7 @@ static int erase_sector_49lfxxxc(struct flashchip *flash, unsigned long address, return (-1); } } while (!(status & STATUS_WSMS)); + chip_writeb(RESET, bios); if (check_erased_range(flash, address, sector_size)) { fprintf(stderr, "ERASE FAILED!\n"); |