summaryrefslogtreecommitdiffstats
path: root/82802ab.c
diff options
context:
space:
mode:
authorCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2010-03-15 03:48:42 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2010-03-15 03:48:42 +0000
commit81449a2482237487f06e0cc35f01769b0d46b734 (patch)
treed0a52cd813ab3249409a3d95cb1b66f9339bc75e /82802ab.c
parentfd41670dd6ae7c216b96467c64ef294086499970 (diff)
downloadast2050-flashrom-81449a2482237487f06e0cc35f01769b0d46b734.zip
ast2050-flashrom-81449a2482237487f06e0cc35f01769b0d46b734.tar.gz
Add FEATURE_REGISTERMAP to some more chips and change the use of various probing functions
Add FEATURE_REGISTERMAP to * Intel 82802AB, 82802AC * Sharp LHF00L04 * SST SST49LF004C, SST49LF008C, SST49LF016C, SST49LF160C * ST M50FLW040A, M50FLW040B, M50FLW080A, M50FLW080B, M50FW002, M50FW016 M50FW040, M50FW080, M50LPW116. Make register mapping conditional on FEATURE_REGISTERMAP in 82802ab.c. Replace probe_49lfxxxc with probe_82802ab. Replace probe_28sf040 with probe_82802ab. Replace probe_sst_fwhub with probe_jedec. Add printlock_sst_fwhub to chips which used probe_sst_fwhub. Corresponding to flashrom svn r937. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>
Diffstat (limited to '82802ab.c')
-rw-r--r--82802ab.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/82802ab.c b/82802ab.c
index e63dc10..ca08b65 100644
--- a/82802ab.c
+++ b/82802ab.c
@@ -69,7 +69,8 @@ int probe_82802ab(struct flashchip *flash)
if (id1 != flash->manufacture_id || id2 != flash->model_id)
return 0;
- map_flash_registers(flash);
+ if (flash->feature_bits & FEATURE_REGISTERMAP)
+ map_flash_registers(flash);
return 1;
}
OpenPOWER on IntegriCloud