Name of user not set #1002484 has uploaded this change for review.

View Change

add support to SPI flash MX25L51245G

Change-Id: I964e630197e33d69b199fdfb8816f18e3112bbb1
Signed-off-by: Hemanth Guruva Reddy <meethemanth@gmail.com>
---
M flashchips.c
M flashchips.h
2 files changed, 40 insertions(+), 0 deletions(-)

git pull ssh://review.coreboot.org:29418/flashrom refs/changes/34/34234/1
diff --git a/flashchips.c b/flashchips.c
index 7f31c30..9aff06f 100644
--- a/flashchips.c
+++ b/flashchips.c
@@ -7778,6 +7778,45 @@

{
.vendor = "Macronix",
+ .name = "MX25L51245G",
+ .bustype = BUS_SPI,
+ .manufacture_id = MACRONIX_ID,
+ .model_id = MACRONIX_MX25L51245G,
+ .total_size = 65536,
+ .page_size = 256,
+ /* MX25L51245G supports SFDP */
+ .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
+ .tested = TEST_OK_PREW,
+ .probe = probe_spi_rdid,
+ .probe_timing = TIMING_ZERO,
+ .block_erasers =
+ {
+ {
+ .eraseblocks = { {4 * 1024, 16384} },
+ .block_erase = spi_block_erase_20,
+ }, {
+ .eraseblocks = { {32 * 1024, 2048} },
+ .block_erase = spi_block_erase_52,
+ }, {
+ .eraseblocks = { {64 * 1024, 1024} },
+ .block_erase = spi_block_erase_d8,
+ }, {
+ .eraseblocks = { {65536 * 1024, 1} },
+ .block_erase = spi_block_erase_60,
+ }, {
+ .eraseblocks = { {65536 * 1024, 1} },
+ .block_erase = spi_block_erase_c7,
+ },
+ },
+ .printlock = spi_prettyprint_status_register_bp3_srwd,
+ .unlock = spi_disable_blockprotect_bp3_srwd,
+ .write = spi_chip_write_256,
+ .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L51245G supports dual I/O */
+ .voltage = {2700, 3600}, /* 2.35-3.6V for MX25L51245G */
+ },
+
+ {
+ .vendor = "Macronix",
.name = "MX25L1005(C)/MX25L1006E",
.bustype = BUS_SPI,
.manufacture_id = MACRONIX_ID,
diff --git a/flashchips.h b/flashchips.h
index 1c7ba99..cbc22ed 100644
--- a/flashchips.h
+++ b/flashchips.h
@@ -479,6 +479,7 @@
* Generalplus SPI chips seem to be compatible with Macronix
* and use the same set of IDs. */
#define MACRONIX_MX25L512 0x2010 /* Same as MX25L512E, MX25V512, MX25V512C */
+#define MACRONIX_MX25L51245G 0x201A
#define MACRONIX_MX25L1005 0x2011 /* Same as MX25L1005C, MX25L1006E */
#define MACRONIX_MX25L2005 0x2012 /* Same as MX25L2005C, MX25L2006E */
#define MACRONIX_MX25L4005 0x2013 /* Same as MX25L4005A, MX25L4005C, MX25L4006E */

To view, visit change 34234. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I964e630197e33d69b199fdfb8816f18e3112bbb1
Gerrit-Change-Number: 34234
Gerrit-PatchSet: 1
Gerrit-Owner: Name of user not set #1002484
Gerrit-MessageType: newchange