summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Reinauer <stepan@coresystems.de>2010-06-14 12:58:06 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2010-06-14 12:58:06 +0000
commit5cacf8c974faa6e2cb81c7ac0214593437cf35ff (patch)
tree454a220d829c26740a071a97fb3ea24f1d450cae
parent5bdf2984392a9089e44bc0b7c63582a1cded6832 (diff)
downloadflashrom-5cacf8c974faa6e2cb81c7ac0214593437cf35ff.tar.gz
flashrom-5cacf8c974faa6e2cb81c7ac0214593437cf35ff.tar.bz2
flashrom-5cacf8c974faa6e2cb81c7ac0214593437cf35ff.zip
Add SST25LF040A support
Checked against datasheets, should work. Corresponding to flashrom svn r1045. Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
-rw-r--r--flashchips.c28
-rw-r--r--flashchips.h2
2 files changed, 29 insertions, 1 deletions
diff --git a/flashchips.c b/flashchips.c
index a82c3732b..b5b289a0c 100644
--- a/flashchips.c
+++ b/flashchips.c
@@ -3840,6 +3840,34 @@ struct flashchip flashchips[] = {
{
.vendor = "SST",
+ .name = "SST25LF040A.RES",
+ .bustype = CHIP_BUSTYPE_SPI,
+ .manufacture_id = SST_ID,
+ .model_id = SST_25VF040_REMS,
+ .total_size = 512,
+ .page_size = 256,
+ .tested = TEST_OK_PROBE,
+ .probe = probe_spi_res2,
+ .probe_timing = TIMING_ZERO,
+ .block_erasers =
+ {
+ {
+ .eraseblocks = { {4 * 1024, 128} },
+ .block_erase = spi_block_erase_20,
+ }, {
+ .eraseblocks = { {32 * 1024, 16} },
+ .block_erase = spi_block_erase_52,
+ }, {
+ .eraseblocks = { {512 * 1024, 1} },
+ .block_erase = spi_block_erase_60,
+ },
+ },
+ .write = spi_chip_write_1,
+ .read = spi_chip_read,
+ },
+
+ {
+ .vendor = "SST",
.name = "SST25VF040B.REMS",
.bustype = CHIP_BUSTYPE_SPI,
.manufacture_id = SST_ID,
diff --git a/flashchips.h b/flashchips.h
index 9b42235b0..a04edef7b 100644
--- a/flashchips.h
+++ b/flashchips.h
@@ -388,7 +388,7 @@
#define SST_25VF512A_REMS 0x48 /* REMS or RES opcode */
#define SST_25VF010_REMS 0x49 /* REMS or RES opcode */
#define SST_25VF020_REMS 0x43 /* REMS or RES opcode */
-#define SST_25VF040_REMS 0x44 /* REMS or RES opcode */
+#define SST_25VF040_REMS 0x44 /* REMS or RES opcode, same as SST25LF040A */
#define SST_25VF040B 0x258D
#define SST_25VF040B_REMS 0x8D /* REMS or RES opcode */
#define SST_25VF080_REMS 0x80 /* REMS or RES opcode */