[flashrom] [commit] r1787 - trunk
repository service
svn at flashrom.org
Wed May 7 17:25:05 CEST 2014
Author: stefanct
Date: Wed May 7 17:25:04 2014
New Revision: 1787
URL: http://flashrom.org/trac/flashrom/changeset/1787
Log:
Add support for SST25LF020A.
Tested on hardware by Idwer too.
Signed-off-by: Idwer Vollering <vidwer at gmail.com>
Acked-by: Stefan Tauner <stefan.tauner at alumni.tuwien.ac.at>
Modified:
trunk/flashchips.c
trunk/flashchips.h
Modified: trunk/flashchips.c
==============================================================================
--- trunk/flashchips.c Sun May 4 23:44:13 2014 (r1786)
+++ trunk/flashchips.c Wed May 7 17:25:04 2014 (r1787)
@@ -9614,6 +9614,38 @@
{
.vendor = "SST",
+ .name = "SST25LF020A",
+ .bustype = BUS_SPI,
+ .manufacture_id = SST_ID,
+ .model_id = SST_SST25VF020_REMS,
+ .total_size = 256,
+ .page_size = 256,
+ .feature_bits = FEATURE_WRSR_EWSR,
+ .tested = TEST_OK_PREW,
+ .probe = probe_spi_rems,
+ .probe_timing = TIMING_ZERO,
+ .block_erasers =
+ {
+ {
+ .eraseblocks = { {4 * 1024, 64} },
+ .block_erase = spi_block_erase_20,
+ }, {
+ .eraseblocks = { {32 * 1024, 8} },
+ .block_erase = spi_block_erase_52,
+ }, {
+ .eraseblocks = { {256 * 1024, 1} },
+ .block_erase = spi_block_erase_60,
+ },
+ },
+ .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
+ .unlock = spi_disable_blockprotect,
+ .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
+ .read = spi_chip_read, /* Fast read (0x0B) supported */
+ .voltage = {2700, 3600},
+ },
+
+ {
+ .vendor = "SST",
.name = "SST25LF040A",
.bustype = BUS_SPI,
.manufacture_id = SST_ID,
Modified: trunk/flashchips.h
==============================================================================
--- trunk/flashchips.h Sun May 4 23:44:13 2014 (r1786)
+++ trunk/flashchips.h Wed May 7 17:25:04 2014 (r1787)
@@ -574,6 +574,7 @@
* byte of device ID is related to log(bitsize) at least for some chips.
*/
#define SST_ID 0xBF /* SST */
+#define SST_SST25LF020_REMS 0x43 /* REMS or RES opcode */
#define SST_SST25WF512 0x2501
#define SST_SST25WF010 0x2502
#define SST_SST25WF020 0x2503
@@ -581,7 +582,7 @@
#define SST_SST25WF080 0x2505
#define SST_SST25VF512A_REMS 0x48 /* REMS or RES opcode */
#define SST_SST25VF010_REMS 0x49 /* REMS or RES opcode */
-#define SST_SST25VF020_REMS 0x43 /* REMS or RES opcode */
+#define SST_SST25VF020_REMS 0x43 /* REMS or RES opcode, same as SST25LF020A */
#define SST_SST25VF020B 0x258C
#define SST_SST25VF040_REMS 0x44 /* REMS or RES opcode, same as SST25LF040A */
#define SST_SST25VF040B 0x258D
More information about the flashrom
mailing list