flashchips: Allow volatile register writes for W25Q128.V
Most status register bits can be written either volatile (with an
EWSR prefix) or non-volatile (WREN prefix).
Tested setting a volatile QE and also volatile WP settings.
Change-Id: I8fcd4d33027325150f9bb1a39865368a4b8995b5
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.sourcearcade.org/c/flashprog/+/255
diff --git a/flashchips.c b/flashchips.c
index 52d9823..595df9b 100644
--- a/flashchips.c
+++ b/flashchips.c
@@ -18206,7 +18206,7 @@
/* supports SFDP */
/* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
/* QPI: only FV & JV..M versions */
- .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QIO |
+ .feature_bits = FEATURE_WRSR_EITHER | FEATURE_OTP | FEATURE_QIO |
FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3,
.tested = TEST_OK_PREWB,
.probe = probe_spi_rdid,