Dmitry Mikushin has uploaded this change for review. ( https://review.coreboot.org/c/flashrom/+/81605?usp=email )
Change subject: flashchips: Add support for Boya BY25D40 ......................................................................
flashchips: Add support for Boya BY25D40
Read tested on YW500U3M industrial camera
Change-Id: I9e07a48dce3988e9d75cf02fca1f4a048c2e0cad Signed-off-by: Dmitry Mikushin dmitry@kernelgen.org --- M flashchips.c M include/flashchips.h 2 files changed, 41 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/05/81605/1
diff --git a/flashchips.c b/flashchips.c index 7a40f07..c88db12 100644 --- a/flashchips.c +++ b/flashchips.c @@ -3569,10 +3569,48 @@
{ .vendor = "Boya/BoHong Microelectronics", + .name = "B.25D40", + .bustype = BUS_SPI, + .manufacture_id = BOYA_BOHONG_ID, + .model_id = BOYA_BOHONG_B_25D40, + .total_size = 512, + .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, 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_60, + }, { + .eraseblocks = { {512 * 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.25D80A", .bustype = BUS_SPI, .manufacture_id = BOYA_BOHONG_ID, - .model_id = BOYA_BOHONG_B__25D80A, + .model_id = BOYA_BOHONG_B_25D80A, .total_size = 1024, .page_size = 256, .feature_bits = FEATURE_WRSR_WREN, diff --git a/include/flashchips.h b/include/flashchips.h index 103e6ea..26a52da 100644 --- a/include/flashchips.h +++ b/include/flashchips.h @@ -211,7 +211,8 @@
/* Boya/BoHong Microelectronics Inc. */ #define BOYA_BOHONG_ID 0x68 -#define BOYA_BOHONG_B__25D80A 0x4014 +#define BOYA_BOHONG_B_25D40 0x4013 +#define BOYA_BOHONG_B_25D80A 0x4014 #define BOYA_BOHONG_B_25D16A 0x4015 #define BOYA_BOHONG_B_25Q128AS 0x4018