Ravishankar Sarawadi has uploaded this change for review. ( https://review.coreboot.org/c/flashrom/+/58025 )
Change subject: flashchips: Add support for GigaDevice GD25LR256E ......................................................................
flashchips: Add support for GigaDevice GD25LR256E
Tested using Servo: reading and writing works.
BUG=none BRANCH=none TEST=none
Change-Id: I2fe6bc1219cd1ee19b93caabab69de938cfc44b0 --- M flashchips.c M flashchips.h 2 files changed, 48 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/25/58025/1
diff --git a/flashchips.c b/flashchips.c index 3187a49..428713f 100644 --- a/flashchips.c +++ b/flashchips.c @@ -6347,6 +6347,53 @@ .voltage = {1695, 1950}, },
+ { + .vendor = "GigaDevice", + .name = "GD25LR256E", + .bustype = BUS_SPI, + .manufacture_id = GIGADEVICE_ID, + .model_id = GIGADEVICE_GD25LR256E, + .total_size = 32768, + .page_size = 256, + .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, + .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, + } + }, + .printlock = spi_prettyprint_status_register_bp3_srwd, + .unlock = spi_disable_blockprotect, + .write = spi_chip_write_256, + .read = spi_chip_read, + .voltage = {1600, 2000}, + }, + { .vendor = "GigaDevice", .name = "GD25LQ16", diff --git a/flashchips.h b/flashchips.h index e190dca..4516dea 100644 --- a/flashchips.h +++ b/flashchips.h @@ -400,6 +400,7 @@ #define GIGADEVICE_GD25LQ32 0x6016 #define GIGADEVICE_GD25LQ64 0x6017 /* Same as GD25LQ64B (which is faster) */ #define GIGADEVICE_GD25LQ128CD 0x6018 +#define GIGADEVICE_GD25LR256E 0x6719 #define GIGADEVICE_GD25WQ80E 0x6514 #define GIGADEVICE_GD29GL064CAB 0x7E0601