Skip to content

Commit 89a6116

Browse files
committed
[RFC] flashchips.c: enable WP for MT25QL512, N25Q0{32,64}..{1,3}E
Change-Id: Ib0f3cb9516cea7bb678842a358a82099221e1ed9 Signed-off-by: Sergii Dmytruk <[email protected]>
1 parent 96bc53e commit 89a6116

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

flashchips.c

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11176,6 +11176,13 @@ const struct flashchip flashchips[] = {
1117611176
.write = spi_chip_write_256, /* Multi I/O supported */
1117711177
.read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
1117811178
.voltage = {1700, 2000},
11179+
.reg_bits =
11180+
{
11181+
.srp = {STATUS1, 7, RW},
11182+
.bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
11183+
.tb = {STATUS1, 5, RW},
11184+
},
11185+
.decode_range = decode_range_spi25,
1117911186
},
1118011187

1118111188
{
@@ -11210,6 +11217,13 @@ const struct flashchip flashchips[] = {
1121011217
.write = spi_chip_write_256, /* Multi I/O supported */
1121111218
.read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
1121211219
.voltage = {2700, 3600},
11220+
.reg_bits =
11221+
{
11222+
.srp = {STATUS1, 7, RW},
11223+
.bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
11224+
.tb = {STATUS1, 5, RW},
11225+
},
11226+
.decode_range = decode_range_spi25,
1121311227
},
1121411228

1121511229
{
@@ -11244,6 +11258,13 @@ const struct flashchip flashchips[] = {
1124411258
.write = spi_chip_write_256, /* Multi I/O supported */
1124511259
.read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
1124611260
.voltage = {1700, 2000},
11261+
.reg_bits =
11262+
{
11263+
.srp = {STATUS1, 7, RW},
11264+
.bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 6, RW}},
11265+
.tb = {STATUS1, 5, RW},
11266+
},
11267+
.decode_range = decode_range_spi25,
1124711268
},
1124811269

1124911270
{
@@ -11278,6 +11299,13 @@ const struct flashchip flashchips[] = {
1127811299
.write = spi_chip_write_256, /* Multi I/O supported */
1127911300
.read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
1128011301
.voltage = {2700, 3600},
11302+
.reg_bits =
11303+
{
11304+
.srp = {STATUS1, 7, RW},
11305+
.bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 6, RW}},
11306+
.tb = {STATUS1, 5, RW},
11307+
},
11308+
.decode_range = decode_range_spi25,
1128111309
},
1128211310

1128311311
{
@@ -11917,6 +11945,13 @@ const struct flashchip flashchips[] = {
1191711945
.write = spi_chip_write_256, /* Multi I/O supported */
1191811946
.read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
1191911947
.voltage = {2700, 3600},
11948+
.reg_bits =
11949+
{
11950+
.srp = {STATUS1, 7, RW},
11951+
.bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 6, RW}},
11952+
.tb = {STATUS1, 5, RW},
11953+
},
11954+
.decode_range = decode_range_spi25,
1192011955
},
1192111956

1192211957
{

0 commit comments

Comments
 (0)