diff options
author | Jacob Creedon <jcreedon@google.com> | 2019-07-22 12:21:22 -0700 |
---|---|---|
committer | Nico Huber <nico.h@gmx.de> | 2019-08-05 21:12:41 +0000 |
commit | e8e7b0e6e8b7f665c0cce4e9a68c5b7573d39130 (patch) | |
tree | 28ad082eab9008a0906bd409bf01377511202b27 | |
parent | 08e9d1d895edc2a86e8c89aeda6ffe03b503eb24 (diff) | |
download | flashrom-e8e7b0e6e8b7f665c0cce4e9a68c5b7573d39130.tar.gz flashrom-e8e7b0e6e8b7f665c0cce4e9a68c5b7573d39130.tar.bz2 flashrom-e8e7b0e6e8b7f665c0cce4e9a68c5b7573d39130.zip |
flashchips: Fix N25Q512 bulk erase
The N25Q is a stacked device, so it requires 0xC4 to perform a die
erase.
Signed-off-by: Jacob Creedon <jcreedon@google.com>
Change-Id: Ib408fbe5633abd8b657e3907142b997e88b33f84
Reviewed-on: https://review.coreboot.org/c/flashrom/+/34489
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
-rw-r--r-- | flashchips.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/flashchips.c b/flashchips.c index 31a922ef1..1ab48adf6 100644 --- a/flashchips.c +++ b/flashchips.c @@ -10612,8 +10612,8 @@ const struct flashchip flashchips[] = { .eraseblocks = { {64 * 1024, 1024} }, .block_erase = spi_block_erase_d8, }, { - .eraseblocks = { {65536 * 1024, 1} }, - .block_erase = spi_block_erase_c7, + .eraseblocks = { {32768 * 1024, 2} }, + .block_erase = spi_block_erase_c4, } }, .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |