mirror of
https://review.coreboot.org/flashrom.git
synced 2025-04-27 07:02:34 +02:00
flashchips: Add WP features for Winbond W25X20
WP-related registers list from official datasheet https://www.winbond.com/resource-files/w25x20cl_revf%2020150806.pdf Commandline options tested with ft2232_spi-based "Tigard" programmer: wp-disable wp-enable wp-list wp-status wp-range=0,0 wp-range=0,0x00040000 Signed-off-by: Vasily Galkin <galkin-vv@ya.ru> Change-Id: I82c0cc52ca2a78d27f513234cc12d3e09d8905a5 Reviewed-on: https://review.coreboot.org/c/flashrom/+/77530 Reviewed-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
f7ffe5ff6b
commit
7617467544
@ -19803,7 +19803,7 @@ const struct flashchip flashchips[] = {
|
|||||||
.total_size = 256,
|
.total_size = 256,
|
||||||
.page_size = 256,
|
.page_size = 256,
|
||||||
.feature_bits = FEATURE_WRSR_WREN,
|
.feature_bits = FEATURE_WRSR_WREN,
|
||||||
.tested = TEST_OK_PREW,
|
.tested = TEST_OK_PREWB,
|
||||||
.probe = PROBE_SPI_RDID,
|
.probe = PROBE_SPI_RDID,
|
||||||
.probe_timing = TIMING_ZERO,
|
.probe_timing = TIMING_ZERO,
|
||||||
.block_erasers =
|
.block_erasers =
|
||||||
@ -19824,6 +19824,13 @@ const struct flashchip flashchips[] = {
|
|||||||
.write = SPI_CHIP_WRITE256,
|
.write = SPI_CHIP_WRITE256,
|
||||||
.read = SPI_CHIP_READ,
|
.read = SPI_CHIP_READ,
|
||||||
.voltage = {2700, 3600},
|
.voltage = {2700, 3600},
|
||||||
|
.reg_bits =
|
||||||
|
{
|
||||||
|
.srp = {STATUS1, 7, RW},
|
||||||
|
.bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}},
|
||||||
|
.tb = {STATUS1, 5, RW},
|
||||||
|
},
|
||||||
|
.decode_range = DECODE_RANGE_SPI25,
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user