summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNico Huber <nico.h@gmx.de>2019-10-04 16:16:15 +0200
committerNico Huber <nico.h@gmx.de>2019-10-05 23:33:22 +0000
commit5374dc3461f1e74a56a4db1a8d684b29cb3a92e5 (patch)
tree311ed873936176c06226c160ea04a574a3cbe046
parent92b17a52a3aaec7e87aabfc6ce5f05726d1000c0 (diff)
downloadflashrom-5374dc3461f1e74a56a4db1a8d684b29cb3a92e5.tar.gz
flashrom-5374dc3461f1e74a56a4db1a8d684b29cb3a92e5.tar.bz2
flashrom-5374dc3461f1e74a56a4db1a8d684b29cb3a92e5.zip
flashchips: Add missing block erasers for GD25Q256D
Change-Id: I7e49e468c7f1eaf0ddd5fc08d6cc6569274faf94 Signed-off-by: Nico Huber <nico.h@gmx.de> Reviewed-on: https://review.coreboot.org/c/flashrom/+/35798 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
-rw-r--r--flashchips.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/flashchips.c b/flashchips.c
index 65110fef4..e48795685 100644
--- a/flashchips.c
+++ b/flashchips.c
@@ -6290,12 +6290,21 @@ const struct flashchip flashchips[] = {
{
{
.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} },