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

View Change

flashchips: Add support for MXIC MX2525643G
It is similar to the MX2525635F and shares its RDID.

Tested: read, write and erase.

Datasheet is available at the following URL:
https://www.mxic.com.tw/Lists/Datasheet/Attachments/8766/MX2525643G,%201.8V.%20256Mb,%20v1.1.pdf

Change-Id: Ie04a5e2325aab94bffb276675be3fa4a88c6e134
Signed-off-by: xianzheng <xianzheng@mxic.com.cn>
---
M flashchips.c
M include/flashchips.h
2 files changed, 51 insertions(+), 0 deletions(-)

git pull ssh://review.coreboot.org:29418/flashrom refs/changes/53/76853/1
diff --git a/flashchips.c b/flashchips.c
index 4ca37a7..e87b3ba 100644
--- a/flashchips.c
+++ b/flashchips.c
@@ -10085,6 +10085,56 @@
.voltage = {1650, 2000},
},

+
+ {
+ .vendor = "Macronix",
+ .name = "MX25U25643G",
+ .bustype = BUS_SPI,
+ .manufacture_id = MACRONIX_ID,
+ .model_id = MACRONIX_MX25U25643G,
+ .total_size = 32768,
+ .page_size = 256,
+ /* OTP: 512B total; enter 0xB1, exit 0xC1 */
+ .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_4BA,
+ .tested = TEST_OK_PREW,
+ .probe = PROBE_SPI_RDID,
+ .probe_timing = TIMING_ZERO,
+ .block_erasers =
+ {
+ {
+ .eraseblocks = { {4 * 1024, 8192} },
+ .block_erase = SPI_BLOCK_ERASE_21,
+ }, {
+ .eraseblocks = { {4 * 1024, 8192} },
+ .block_erase = SPI_BLOCK_ERASE_20,
+ }, {
+ .eraseblocks = { {32 * 1024, 1024} },
+ .block_erase = SPI_BLOCK_ERASE_5C,
+ }, {
+ .eraseblocks = { {32 * 1024, 1024} },
+ .block_erase = SPI_BLOCK_ERASE_52,
+ }, {
+ .eraseblocks = { {64 * 1024, 512} },
+ .block_erase = SPI_BLOCK_ERASE_DC,
+ }, {
+ .eraseblocks = { {64 * 1024, 512} },
+ .block_erase = SPI_BLOCK_ERASE_D8,
+ }, {
+ .eraseblocks = { {32 * 1024 * 1024, 1} },
+ .block_erase = SPI_BLOCK_ERASE_60,
+ }, {
+ .eraseblocks = { {32 * 1024 * 1024, 1} },
+ .block_erase = SPI_BLOCK_ERASE_C7,
+ }
+ },
+ /* TODO: security register */
+ .printlock = SPI_PRETTYPRINT_STATUS_REGISTER_BP3_SRWD, /* bit6 is quad enable */
+ .unlock = SPI_DISABLE_BLOCKPROTECT_BP3_SRWD,
+ .write = SPI_CHIP_WRITE256, /* Multi I/O supported */
+ .read = SPI_CHIP_READ, /* Fast read (0x0B) and multi I/O supported */
+ .voltage = {1650, 2000},
+ },
+
{
.vendor = "Macronix",
.name = "MX25U25635F",
diff --git a/include/flashchips.h b/include/flashchips.h
index 9e2564c..aff77b7 100644
--- a/include/flashchips.h
+++ b/include/flashchips.h
@@ -527,6 +527,7 @@
#define MACRONIX_MX25U3235E 0x2536 /* Same as MX25U6435F */
#define MACRONIX_MX25U6435E 0x2537 /* Same as MX25U6435F */
#define MACRONIX_MX25U12835E 0x2538 /* Same as MX25U12835F */
+#define MACRONIX_MX25U25643G 0x2539
#define MACRONIX_MX25U25635F 0x2539
#define MACRONIX_MX25U51245G 0x253a
#define MACRONIX_MX25L3235D 0x5E16 /* MX25L3225D/MX25L3235D/MX25L3237D */

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

Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: Ie04a5e2325aab94bffb276675be3fa4a88c6e134
Gerrit-Change-Number: 76853
Gerrit-PatchSet: 1
Gerrit-Owner: Name of user not set #1005084
Gerrit-MessageType: newchange