Subrata Banik has uploaded this change for review. ( https://review.coreboot.org/c/flashrom/+/67827 )
Change subject: flashchips: Add WP settings for Flash Chip `W25Q512NW` ......................................................................
flashchips: Add WP settings for Flash Chip `W25Q512NW`
This patch adds WP register bits and decode range for Flash Chip `W25Q512NW`.
TEST=Able to flash AP FW, wp-enable/disable on Google/rex device which has flash chip `W25Q512NW`.
Signed-off-by: Subrata Banik subratabanik@google.com Change-Id: Ic5148f71404466dcf7772e3eb6e1800eb8666696 --- M flashchips.c 1 file changed, 25 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/27/67827/1
diff --git a/flashchips.c b/flashchips.c index 47a37ee..2d09867 100644 --- a/flashchips.c +++ b/flashchips.c @@ -18189,6 +18189,15 @@ .write = spi_chip_write_256, .read = spi_chip_read, .voltage = {1650, 1950}, + .reg_bits = + { + .srp = {STATUS1, 7, RW}, + .srl = {STATUS2, 0, RW}, + .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}}, + .tb = {STATUS1, 6, RW}, + .cmp = {STATUS2, 6, RW}, + }, + .decode_range = decode_range_spi25, },
{