summaryrefslogtreecommitdiffstats
path: root/sst_fwhub.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
commita54e1bc310a46e56d7cf1c33d2e7b5bfa05d3a56 (patch)
treed0a52cd813ab3249409a3d95cb1b66f9339bc75e /sst_fwhub.c
parent9732b94ec0850cbd4ee1682ef970446dacd5fbba (diff)
downloadflashrom-a54e1bc310a46e56d7cf1c33d2e7b5bfa05d3a56.zip
flashrom-a54e1bc310a46e56d7cf1c33d2e7b5bfa05d3a56.tar.gz
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 'sst_fwhub.c')
-rw-r--r--sst_fwhub.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/sst_fwhub.c b/sst_fwhub.c
index 9819cee..a325278 100644
--- a/sst_fwhub.c
+++ b/sst_fwhub.c
@@ -83,18 +83,14 @@ int clear_sst_fwhub_block_lock(struct flashchip *flash, int offset)
return blockstatus;
}
-/* probe_jedec works fine for probing */
-int probe_sst_fwhub(struct flashchip *flash)
+int printlock_sst_fwhub(struct flashchip *flash)
{
int i;
- if (probe_jedec(flash) == 0)
- return 0;
-
for (i = 0; i < flash->total_size * 1024; i += flash->page_size)
check_sst_fwhub_block_lock(flash, i);
- return 1;
+ return 0;
}
int erase_sst_fwhub_block(struct flashchip *flash, unsigned int offset, unsigned int page_size)
OpenPOWER on IntegriCloud