Malcolm Boyes has uploaded this change for review.
flashchips: Add support for Boya B25Q64AS
The B25Q64AS has been tested by ch341a programmer: read, write, erase
Datasheet: https://archive.org/details/1912111437-boyamicro-by-25-q-64-assig-c-383793
Change-Id: I05ecf2b118902db974544d86e023a348912371dd
Signed-off-by: boyesm <boyesmalcolm@gmail.com>
---
M flashchips.c
M include/flashchips.h
2 files changed, 39 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/59/82259/1
diff --git a/flashchips.c b/flashchips.c
index 041ac40..39e03e0 100644
--- a/flashchips.c
+++ b/flashchips.c
@@ -3607,6 +3607,44 @@
{
.vendor = "Boya/BoHong Microelectronics",
+ .name = "B.25Q64AS",
+ .bustype = BUS_SPI,
+ .manufacture_id = BOYA_BOHONG_ID,
+ .model_id = BOYA_BOHONG_B_25Q64AS,
+ .total_size = 8192,
+ .page_size = 256,
+ .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
+ .tested = TEST_OK_PREW,
+ .probe = PROBE_SPI_RDID,
+ .probe_timing = TIMING_ZERO,
+ .block_erasers =
+ {
+ {
+ .eraseblocks = { {4 * 1024, 2048} },
+ .block_erase = SPI_BLOCK_ERASE_20,
+ }, {
+ .eraseblocks = { {32 * 1024, 256} },
+ .block_erase = SPI_BLOCK_ERASE_52,
+ }, {
+ .eraseblocks = { {64 * 1024, 128} },
+ .block_erase = SPI_BLOCK_ERASE_D8,
+ }, {
+ .eraseblocks = { {16 * 512 * 1024, 1} },
+ .block_erase = SPI_BLOCK_ERASE_60,
+ }, {
+ .eraseblocks = { {16 * 512 * 1024, 1} },
+ .block_erase = SPI_BLOCK_ERASE_C7,
+ }
+ },
+ .printlock = SPI_PRETTYPRINT_STATUS_REGISTER_PLAIN,
+ .unlock = SPI_DISABLE_BLOCKPROTECT_AT25FS040,
+ .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,
diff --git a/include/flashchips.h b/include/flashchips.h
index 6008ad1..4bf428c 100644
--- a/include/flashchips.h
+++ b/include/flashchips.h
@@ -213,6 +213,7 @@
#define BOYA_BOHONG_ID 0x68
#define BOYA_BOHONG_B__25D80A 0x4014
#define BOYA_BOHONG_B_25D16A 0x4015
+#define BOYA_BOHONG_B_25Q64AS 0x4017
#define BOYA_BOHONG_B_25Q128AS 0x4018
/* Bright Microelectronics has the same manufacturer ID as Hyundai... */
To view, visit change 82259. To unsubscribe, or for help writing mail filters, visit settings.