diff options
author | Evan Benn <evanbenn@chromium.org> | 2022-09-13 16:01:10 +1000 |
---|---|---|
committer | Edward O'Callaghan <quasisec@chromium.org> | 2022-11-10 05:13:21 +0000 |
commit | 2f0e49c2abc0f8ce46eae9675db38eece066cb5e (patch) | |
tree | 57b46b605a02a96fd973ee220dae86ed0de17435 /flashchips.c | |
parent | 7c9cd29460794426b00b8fdadcfa2ab5f318e48b (diff) | |
download | flashrom-2f0e49c2abc0f8ce46eae9675db38eece066cb5e.tar.gz flashrom-2f0e49c2abc0f8ce46eae9675db38eece066cb5e.tar.bz2 flashrom-2f0e49c2abc0f8ce46eae9675db38eece066cb5e.zip |
flashchips: Add write protect bits to W25Q64JW...M
https://www.winbond.com/hq/support/documentation/levelOne.jsp?__locale=en&DocNo=DA00-W25Q64JW
BUG=b:245996788
BRANCH=None
TEST=None
Change-Id: Idf2289b7c90724ececc122d2a05c7cae3af2cf62
Signed-off-by: Evan Benn <evanbenn@chromium.org>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/67719
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
Reviewed-by: Nikolai Artemiev <nartemiev@google.com>
Diffstat (limited to 'flashchips.c')
-rw-r--r-- | flashchips.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/flashchips.c b/flashchips.c index 6fc3a848d..e8413fd9b 100644 --- a/flashchips.c +++ b/flashchips.c @@ -18393,7 +18393,7 @@ const struct flashchip flashchips[] = { .page_size = 256, /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ /* QPI enable 0x38, disable 0xFF */ - .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, + .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_WRSR2 | FEATURE_WRSR3, .tested = TEST_OK_PREW, .probe = PROBE_SPI_RDID, .probe_timing = TIMING_ZERO, @@ -18421,6 +18421,17 @@ const struct flashchip flashchips[] = { .write = SPI_CHIP_WRITE256, .read = SPI_CHIP_READ, .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ + .reg_bits = + { + .srp = {STATUS1, 7, RW}, + .srl = {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}, + .wps = {STATUS3, 2, RW}, + }, + .decode_range = DECODE_RANGE_SPI25, }, { |