Anne Macedo has uploaded this change for review.

View Change

flashchips: Add support for PUYA P25Q40H

This patch adds support for the PUYA P25Q40H chip.

Tested: read, write and erase

Datasheet available here [1].

[1]
https://www.alldatasheet.com/datasheet-pdf/pdf/1150759/PUYA/P25Q40H.html

Change-Id: I58c2c0467ef19f98b7435e84b6978550f029af70
Signed-off-by: Anne Macedo <retpolanne@posteo.net>
---
M flashchips.c
1 file changed, 35 insertions(+), 0 deletions(-)

git pull ssh://review.coreboot.org:29418/flashrom refs/changes/51/76251/1
diff --git a/flashchips.c b/flashchips.c
index 9b2a187..15324b1 100644
--- a/flashchips.c
+++ b/flashchips.c
@@ -13787,6 +13787,41 @@
},

{
+ .vendor = "PUYA",
+ .name = "P25Q40H",
+ .bustype = BUS_SPI,
+ .manufacture_id = 0x85,
+ .model_id = 0x6013,
+ .total_size = 512,
+ .page_size = 256,
+ .feature_bits = FEATURE_WRSR_WREN,
+ .tested = TEST_OK_PREW,
+ .probe = PROBE_SPI_RDID,
+ .probe_timing = TIMING_ZERO,
+ .block_erasers =
+ {
+ {
+ .eraseblocks = { {4 * 1024, 128} },
+ .block_erase = SPI_BLOCK_ERASE_20,
+ }, {
+ .eraseblocks = { {32 * 1024, 16} },
+ .block_erase = SPI_BLOCK_ERASE_52,
+ }, {
+ .eraseblocks = { {64 * 1024, 8} },
+ .block_erase = SPI_BLOCK_ERASE_D8,
+ }, {
+ .eraseblocks = { {512 * 1024, 1} },
+ .block_erase = SPI_BLOCK_ERASE_81,
+ }
+ },
+ .printlock = SPI_PRETTYPRINT_STATUS_REGISTER_BP3_SRWD,
+ .unlock = SPI_DISABLE_BLOCKPROTECT_BP3_SRWD,
+ .write = SPI_CHIP_WRITE256,
+ .read = SPI_CHIP_READ,
+ .voltage = {2300, 3600},
+ },
+
+ {
.vendor = "SST",
.name = "SST25LF020A",
.bustype = BUS_SPI,

To view, visit change 76251. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I58c2c0467ef19f98b7435e84b6978550f029af70
Gerrit-Change-Number: 76251
Gerrit-PatchSet: 1
Gerrit-Owner: Anne Macedo <retpolanne@posteo.net>
Gerrit-MessageType: newchange