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>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/66215
Reviewed-by: Anastasia Klimchuk <aklm@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
  • Loading branch information
SergiiDmytruk authored and Sean-StarLabs committed Feb 20, 2024
1 parent 522e17e commit d010d4f
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 @@ -11721,6 +11721,17 @@ const struct flashchip flashchips[] = {
.write = SPI_CHIP_WRITE256, /* 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 @@ -11755,6 +11766,17 @@ const struct flashchip flashchips[] = {
.write = SPI_CHIP_WRITE256, /* 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 @@ -11789,6 +11811,17 @@ const struct flashchip flashchips[] = {
.write = SPI_CHIP_WRITE256, /* 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 @@ -11823,6 +11856,17 @@ const struct flashchip flashchips[] = {
.write = SPI_CHIP_WRITE256, /* 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 @@ -12462,6 +12506,13 @@ const struct flashchip flashchips[] = {
.write = SPI_CHIP_WRITE256, /* 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 d010d4f

Please sign in to comment.