Skip to content

Commit

Permalink
flashchips.c: enable WP for MT25QL512, N25Q0{32,64}..{1,3}E
Browse files Browse the repository at this point in the history
Change-Id: Ib0f3cb9516cea7bb678842a358a82099221e1ed9
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
  • Loading branch information
SergiiDmytruk committed Aug 17, 2022
1 parent 42a16ce commit 14012f4
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions flashchips.c
Original file line number Diff line number Diff line change
Expand Up @@ -11258,6 +11258,17 @@ const struct flashchip flashchips[] = {
.write = spi_chip_write_256, /* Multi I/O supported */
.read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
.voltage = {1700, 2000},
.reg_bits =
{
/*
* There is also a volatile lock register per 64KiB sector, which is not
* mutually exclusive with BP-based protection.
*/
.srp = {STATUS1, 7, RW},
.bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
.tb = {STATUS1, 5, RW},
},
.decode_range = decode_range_spi25,
},

{
Expand Down Expand Up @@ -11292,6 +11303,17 @@ const struct flashchip flashchips[] = {
.write = spi_chip_write_256, /* Multi I/O supported */
.read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
.voltage = {2700, 3600},
.reg_bits =
{
/*
* There is also a volatile lock register per 64KiB sector, which is not
* mutually exclusive with BP-based protection.
*/
.srp = {STATUS1, 7, RW},
.bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
.tb = {STATUS1, 5, RW},
},
.decode_range = decode_range_spi25,
},

{
Expand Down Expand Up @@ -11326,6 +11348,17 @@ const struct flashchip flashchips[] = {
.write = spi_chip_write_256, /* Multi I/O supported */
.read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
.voltage = {1700, 2000},
.reg_bits =
{
/*
* There is also a volatile lock register per 64KiB sector, which is not
* mutually exclusive with BP-based protection.
*/
.srp = {STATUS1, 7, RW},
.bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 6, RW}},
.tb = {STATUS1, 5, RW},
},
.decode_range = decode_range_spi25,
},

{
Expand Down Expand Up @@ -11360,6 +11393,17 @@ const struct flashchip flashchips[] = {
.write = spi_chip_write_256, /* Multi I/O supported */
.read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
.voltage = {2700, 3600},
.reg_bits =
{
/*
* There is also a volatile lock register per 64KiB sector, which is not
* mutually exclusive with BP-based protection.
*/
.srp = {STATUS1, 7, RW},
.bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 6, RW}},
.tb = {STATUS1, 5, RW},
},
.decode_range = decode_range_spi25,
},

{
Expand Down Expand Up @@ -11999,6 +12043,13 @@ const struct flashchip flashchips[] = {
.write = spi_chip_write_256, /* Multi I/O supported */
.read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
.voltage = {2700, 3600},
.reg_bits =
{
.srp = {STATUS1, 7, RW},
.bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 6, RW}},
.tb = {STATUS1, 5, RW},
},
.decode_range = decode_range_spi25,
},

{
Expand Down

0 comments on commit 14012f4

Please sign in to comment.