Felix Singer has uploaded this change for review.
flashchips: Add Shanghai Fudan Microelectronics Group Company Lmt. FM25F04
Change-Id: I83575ea3a3a8136cf127557add4a08ec17b69445
Signed-off-by: Tomas kovacik <nail@nodomain.sk>
Signed-off-by: Felix Singer <felixsinger@posteo.net>
---
M flashchips.c
M flashchips.h
2 files changed, 37 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/14/63914/1
diff --git a/flashchips.c b/flashchips.c
index 2cbe413..0afa61a 100644
--- a/flashchips.c
+++ b/flashchips.c
@@ -19876,6 +19876,40 @@
.voltage = {2700, 3600},
},
+ {
+ .vendor = "SFM", /*http://www.zhktl.com/uploadfile/download/20146131545443060.pdf*/
+ .name = "FM25F04",
+ .bustype = BUS_SPI,
+ .manufacture_id = SFM_ID,
+ .model_id = SFM_FM25F04,
+ .total_size = 512,
+ .page_size = 256,
+ .feature_bits = FEATURE_WRSR_WREN,
+ .tested = TEST_UNTESTED,
+ .probe = probe_spi_rdid,
+ .probe_timing = TIMING_ZERO,
+ .block_erasers =
+ {
+ {
+ .eraseblocks = { {4 * 1024, 128} },
+ .block_erase = spi_block_erase_20,
+ }, {
+ .eraseblocks = { {64 * 1024, 8} },
+ .block_erase = spi_block_erase_d8,
+ }, {
+ .eraseblocks = { {512 * 1024, 1} },
+ .block_erase = spi_block_erase_60,
+ }, {
+ .eraseblocks = { {512 * 1024, 1} },
+ .block_erase = spi_block_erase_c7,
+ }
+ },
+ .printlock = spi_prettyprint_status_register_bp2_srwd,
+ .unlock = spi_disable_blockprotect_bp2_srwd,
+ .write = spi_chip_write_256,
+ .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
+ .voltage = {2700, 3600},
+ },
{
diff --git a/flashchips.h b/flashchips.h
index 6abfd1f..5115add 100644
--- a/flashchips.h
+++ b/flashchips.h
@@ -1033,4 +1033,7 @@
#define FMD_ID 0x0E /* Fremont Micro Devices */
#define FMD_FT25H04 0x4013
+#define SFM_ID 0xA1 /*Shanghai Fudan Microelectronics Group Company Limited*/
+#define SFM_FM25F04 0x3113
+
#endif /* !FLASHCHIPS_H */
To view, visit change 63914. To unsubscribe, or for help writing mail filters, visit settings.