diff options
author | Dino Li <Dino.Li@ite.com.tw> | 2020-03-25 17:39:53 +0800 |
---|---|---|
committer | Angel Pons <th3fanbus@gmail.com> | 2020-03-25 23:23:43 +0000 |
commit | 548c880760fc7d91411dd1364b6b01aacef7cab2 (patch) | |
tree | 3caf13ad1161817f2533b6b940490f3d8f3d7c66 | |
parent | 425dff07bae4725cd557fad67292eee09a352fd7 (diff) | |
download | flashrom-548c880760fc7d91411dd1364b6b01aacef7cab2.tar.gz flashrom-548c880760fc7d91411dd1364b6b01aacef7cab2.tar.bz2 flashrom-548c880760fc7d91411dd1364b6b01aacef7cab2.zip |
flashchips: add support for GigaDevice GD25WQ80E
Support GD25WQ80E, which is the internal flash of IT81202.
TEST=Building flashrom and flashing FW image into IT81202 successfully.
Change-Id: Ib5feaa6ecc7b11b2218e5f02c087b4331388bef8
Signed-off-by: Dino Li <Dino.Li@ite.com.tw>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/39820
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
-rw-r--r-- | flashchips.c | 38 | ||||
-rw-r--r-- | flashchips.h | 1 |
2 files changed, 39 insertions, 0 deletions
diff --git a/flashchips.c b/flashchips.c index 942cbc26f..648fed45d 100644 --- a/flashchips.c +++ b/flashchips.c @@ -6787,6 +6787,44 @@ const struct flashchip flashchips[] = { }, { + .vendor = "GigaDevice", + .name = "GD25WQ80E", + .bustype = BUS_SPI, + .manufacture_id = GIGADEVICE_ID, + .model_id = GIGADEVICE_GD25WQ80E, + .total_size = 1024, + .page_size = 256, + .feature_bits = FEATURE_WRSR_WREN, + .tested = TEST_OK_PREW, + .probe = probe_spi_rdid, + .probe_timing = TIMING_ZERO, + .block_erasers = + { + { + .eraseblocks = { {4 * 1024, 256} }, + .block_erase = spi_block_erase_20, + }, { + .eraseblocks = { {32 * 1024, 32} }, + .block_erase = spi_block_erase_52, + }, { + .eraseblocks = { {64 * 1024, 16} }, + .block_erase = spi_block_erase_d8, + }, { + .eraseblocks = { {1 * 1024 * 1024, 1} }, + .block_erase = spi_block_erase_60, + }, { + .eraseblocks = { {1 * 1024 * 1024, 1} }, + .block_erase = spi_block_erase_c7, + } + }, + .printlock = spi_prettyprint_status_register_bp4_srwd, + .unlock = spi_disable_blockprotect_bp4_srwd, + .write = spi_chip_write_256, + .read = spi_chip_read, + .voltage = {1650, 3600}, + }, + + { .vendor = "Hyundai", .name = "HY29F002B", .bustype = BUS_PARALLEL, diff --git a/flashchips.h b/flashchips.h index 36990e20d..dc04a5abd 100644 --- a/flashchips.h +++ b/flashchips.h @@ -384,6 +384,7 @@ #define GIGADEVICE_GD25LQ32 0x6016 #define GIGADEVICE_GD25LQ64 0x6017 /* Same as GD25LQ64B (which is faster) */ #define GIGADEVICE_GD25LQ128CD 0x6018 +#define GIGADEVICE_GD25WQ80E 0x6514 #define GIGADEVICE_GD29GL064CAB 0x7E0601 #define HYUNDAI_ID 0xAD /* Hyundai */ |