Flash registers are not mapped on these chips, but the unprotection code in erase_82802ab_block tried to access them.
Signed-off-by: Michael Karcher <[email protected]> --- 82802ab.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/82802ab.c b/82802ab.c index e63dc10..e0c0ba5 100644 --- a/82802ab.c +++ b/82802ab.c @@ -101,7 +101,10 @@ int erase_82802ab_block(struct flashchip *flash, unsigned int page, unsigned int chip_writeb(0x50, bios + page); // clear write protect - chip_writeb(0, wrprotect); + // FIXME: remove second part when FWH uses feature bits + if (flash->feature_bits & FEATURE_REGISTERMAP || + flash->bustype == CHIP_BUSTYPE_FWH) + chip_writeb(0, wrprotect); // now start it chip_writeb(0x20, bios + page); -- 1.7.0 _______________________________________________ flashrom mailing list [email protected] http://www.flashrom.org/mailman/listinfo/flashrom
