Anastasia Klimchuk has submitted this change. ( https://review.coreboot.org/c/flashrom/+/86348?usp=email )
Change subject: flashchips: Add Macronix MX77U25650FZ4I42 ......................................................................
flashchips: Add Macronix MX77U25650FZ4I42
Add initial support for Macronix MX77U25650F
Bug=N/A TEST=build flashrom and read/write/earse on unit works e.g. command: flashrom -p raiden_debug_spi:target=AP -w image.bin flashrom --read -o image.bin futility update/read
Change-Id: I7866b2db343f4eb2bc194400ceca099d3af3b87d Signed-off-by: Dolan Liu liuyong5@huaqin.corp-partner.google.com Reviewed-on: https://review.coreboot.org/c/flashrom/+/86348 Tested-by: build bot (Jenkins) no-reply@coreboot.org Reviewed-by: Anastasia Klimchuk aklm@chromium.org Reviewed-by: DZ danielzhang@mxic.com.cn --- M flashchips/macronix.c M include/flashchips.h 2 files changed, 39 insertions(+), 0 deletions(-)
Approvals: DZ: Looks good to me, but someone else must approve Anastasia Klimchuk: Looks good to me, approved build bot (Jenkins): Verified
diff --git a/flashchips/macronix.c b/flashchips/macronix.c index a66598b..d72e87a 100644 --- a/flashchips/macronix.c +++ b/flashchips/macronix.c @@ -2865,6 +2865,44 @@
{ .vendor = "Macronix", + .name = "MX77U25650F", + .bustype = BUS_SPI, + .manufacture_id = MACRONIX_ID, + .model_id = MACRONIX_MX77U25650F, + .total_size = 32768, + .page_size = 256, + .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_CFGR | 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_20, + }, { + .eraseblocks = { {32 * 1024, 1024} }, + .block_erase = SPI_BLOCK_ERASE_52, + }, { + .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, + } + }, + .printlock = SPI_PRETTYPRINT_STATUS_REGISTER_BP3_SRWD, /* bit6 is quad enable */ + .unlock = SPI_DISABLE_BLOCKPROTECT_BP3_SRWD, + .write = SPI_CHIP_WRITE256, + .read = SPI_CHIP_READ, /* Fast read (0x0B) supported */ + .voltage = {1650, 2000}, + }, + + { + .vendor = "Macronix", .name = "MX77U51250F", .bustype = BUS_SPI, .manufacture_id = MACRONIX_ID, diff --git a/include/flashchips.h b/include/flashchips.h index a1a471c..49ef8c7 100644 --- a/include/flashchips.h +++ b/include/flashchips.h @@ -550,6 +550,7 @@ #define MACRONIX_MX25L6495F 0x9517 #define MACRONIX_MX25L3255E 0x9e16 #define MACRONIX_MX77L25650F 0x7519 +#define MACRONIX_MX77U25650F 0x7539 #define MACRONIX_MX77U51250F 0x753A #define MACRONIX_MX25L3239E 0x2536