summaryrefslogtreecommitdiffstats
path: root/flashchips.c
diff options
context:
space:
mode:
authorPiotr Halama <skrzynka@halamix2.pl>2023-03-06 19:11:56 +0100
committerAnastasia Klimchuk <aklm@chromium.org>2023-06-08 07:41:45 +0000
commit104503375d8eb451b54252f5f2c2da8565590497 (patch)
tree3a11e7f8f24adc75ad17c4411880cec628cbab3b /flashchips.c
parent9b3a70158c0a6279b07c769ab11ed445d715e171 (diff)
downloadflashrom-104503375d8eb451b54252f5f2c2da8565590497.tar.gz
flashrom-104503375d8eb451b54252f5f2c2da8565590497.tar.bz2
flashrom-104503375d8eb451b54252f5f2c2da8565590497.zip
flashchips: Add support for Boya BY25D80A
Read tested on Raspberry Pico with pico-serprog Change-Id: I586f3455d925132bbda3fccdad00f0b1e22c2ea7 Signed-off-by: Piotr Halama <skrzynka@halamix2.pl> Reviewed-on: https://review.coreboot.org/c/flashrom/+/73513 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Peter Marheine <pmarheine@chromium.org>
Diffstat (limited to 'flashchips.c')
-rw-r--r--flashchips.c38
1 files changed, 38 insertions, 0 deletions
diff --git a/flashchips.c b/flashchips.c
index ccc1e8c86..287e2f519 100644
--- a/flashchips.c
+++ b/flashchips.c
@@ -3530,6 +3530,44 @@ const struct flashchip flashchips[] = {
{
.vendor = "Boya/BoHong Microelectronics",
+ .name = "B.25D80A",
+ .bustype = BUS_SPI,
+ .manufacture_id = BOYA_BOHONG_ID,
+ .model_id = BOYA_BOHONG_B__25D80A,
+ .total_size = 1024,
+ .page_size = 256,
+ .feature_bits = FEATURE_WRSR_WREN,
+ .tested = TEST_OK_PR,
+ .probe = PROBE_SPI_RDID,
+ .probe_timing = TIMING_ZERO,
+ .block_erasers =
+ {
+ {
+ .eraseblocks = { {4 * 1024, 256} },
+ .block_erase = SPI_BLOCK_ERASE_20,
+ }, {
+ .eraseblocks = { {32 * 1024, 32} },
+ .block_erase = SPI_BLOCK_ERASE_52,
+ }, {
+ .eraseblocks = { {64 * 1024, 16} },
+ .block_erase = SPI_BLOCK_ERASE_D8,
+ }, {
+ .eraseblocks = { {1 * 1024 * 1024, 1} },
+ .block_erase = SPI_BLOCK_ERASE_60,
+ }, {
+ .eraseblocks = { {1 * 1024 * 1024, 1} },
+ .block_erase = SPI_BLOCK_ERASE_C7,
+ }
+ },
+ .printlock = SPI_PRETTYPRINT_STATUS_REGISTER_BP2_SRWD,
+ .unlock = SPI_DISABLE_BLOCKPROTECT_BP2_SRWD,
+ .write = SPI_CHIP_WRITE256,
+ .read = SPI_CHIP_READ,
+ .voltage = {2700, 3600},
+ },
+
+ {
+ .vendor = "Boya/BoHong Microelectronics",
.name = "B.25Q128AS",
.bustype = BUS_SPI,
.manufacture_id = BOYA_BOHONG_ID,