flashchips: Add missing block eraser for S25FL512S
Now that we can make use of the extended-address register, we can also
advertise the `d8` eraser that can take 3- or 4-byte addresses.
Signed-off-by: Nico Huber <nico.h@gmx.de>
Ticket: https://ticket.coreboot.org/issues/357
Change-Id: I8708294d42f5da80c0ca07ccdae627f13fd5c645
Original-Reviewed-on: https://review.coreboot.org/c/flashrom/+/64637
Original-Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
Original-Reviewed-by: Thomas Heijligen <src@posteo.de>
Reviewed-on: https://review.coreboot.org/c/flashrom-stable/+/70996
Reviewed-by: Nico Huber <nico.h@gmx.de>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
diff --git a/flashchips.c b/flashchips.c
index c8dde7c..2ec747c 100644
--- a/flashchips.c
+++ b/flashchips.c
@@ -16698,6 +16698,9 @@
.eraseblocks = { { 256 * 1024, 256} },
.block_erase = spi_block_erase_dc,
}, {
+ .eraseblocks = { { 256 * 1024, 256} },
+ .block_erase = spi_block_erase_d8,
+ }, {
.eraseblocks = { { 65536 * 1024, 1} },
.block_erase = spi_block_erase_60,
}, {