Sergii Dmytruk has uploaded this change for review.
[RFC] flashchips: enable write-protection for W25Q128.V
Emulation of this chip will support WP.
This and follow up patches are based on unmerged WP patches by Nikolai
Artemiev:
https://review.coreboot.org/c/flashrom/+/58474/7
Change-Id: Iccb69a8d3a0dd2192e2c938caddaf07b1889ed35
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
---
M flashchips.c
1 file changed, 11 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/71/59071/1
diff --git a/flashchips.c b/flashchips.c
index 434c46d..b26681d 100644
--- a/flashchips.c
+++ b/flashchips.c
@@ -17105,7 +17105,8 @@
.page_size = 256,
/* supports SFDP */
/* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
- .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
+ .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP |
+ FEATURE_WRSR2 | FEATURE_RDSR2,
.tested = TEST_OK_PREW,
.probe = probe_spi_rdid,
.probe_timing = TIMING_ZERO,
@@ -17133,6 +17134,15 @@
.write = spi_chip_write_256,
.read = spi_chip_read,
.voltage = {2700, 3600},
+ .reg_bits =
+ {
+ .srp = {{STATUS1, 7, RW}, {STATUS2, 0, RW}},
+ .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
+ .tb = {STATUS1, 5, RW},
+ .sec = {STATUS1, 6, RW},
+ .cmp = {STATUS2, 6, RW},
+ },
+ .decode_range = decode_range_w25,
},
{
To view, visit change 59071. To unsubscribe, or for help writing mail filters, visit settings.