1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-04-29 16:03:47 +02:00

flashchips: Add missing MT25Q erase commands

This adds additional 32KiB subsector erase commands 0x5c and 0x52 and an
additional bulk erase command of 0x60.

Signed-off-by: Jacob Creedon <jcreedon@google.com>
Change-Id: I5307c4b96cbd62203f5bad0c94737180fda621aa
Reviewed-on: https://review.coreboot.org/c/flashrom/+/34490
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
This commit is contained in:
Jacob Creedon 2019-07-22 12:26:56 -07:00 committed by Nico Huber
parent e8e7b0e6e8
commit 045b97ebd9

View File

@ -10645,6 +10645,12 @@ const struct flashchip flashchips[] = {
}, { }, {
.eraseblocks = { {4 * 1024, 8192} }, .eraseblocks = { {4 * 1024, 8192} },
.block_erase = spi_block_erase_20, .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} }, .eraseblocks = { {64 * 1024, 512} },
.block_erase = spi_block_erase_dc, .block_erase = spi_block_erase_dc,
@ -10654,6 +10660,9 @@ const struct flashchip flashchips[] = {
}, { }, {
.eraseblocks = { {32768 * 1024, 1} }, .eraseblocks = { {32768 * 1024, 1} },
.block_erase = spi_block_erase_c7, .block_erase = spi_block_erase_c7,
}, {
.eraseblocks = { {32768 * 1024, 1} },
.block_erase = spi_block_erase_60,
} }
}, },
.printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
@ -10685,6 +10694,12 @@ const struct flashchip flashchips[] = {
}, { }, {
.eraseblocks = { {4 * 1024, 16384} }, .eraseblocks = { {4 * 1024, 16384} },
.block_erase = spi_block_erase_20, .block_erase = spi_block_erase_20,
}, {
.eraseblocks = { {32 * 1024, 2048} },
.block_erase = spi_block_erase_5c,
}, {
.eraseblocks = { {32 * 1024, 2048} },
.block_erase = spi_block_erase_52,
}, { }, {
.eraseblocks = { {64 * 1024, 1024} }, .eraseblocks = { {64 * 1024, 1024} },
.block_erase = spi_block_erase_dc, .block_erase = spi_block_erase_dc,
@ -10694,6 +10709,9 @@ const struct flashchip flashchips[] = {
}, { }, {
.eraseblocks = { {65536 * 1024, 1} }, .eraseblocks = { {65536 * 1024, 1} },
.block_erase = spi_block_erase_c7, .block_erase = spi_block_erase_c7,
}, {
.eraseblocks = { {65536 * 1024, 1} },
.block_erase = spi_block_erase_60,
} }
}, },
.printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */