From 844d7716e4d61c8c78494ccd0030d3866799d7c3 Mon Sep 17 00:00:00 2001
From: Angel Pons <th3fanbus@gmail.com>
Date: Tue, 20 Apr 2021 21:39:11 +0200
Subject: flashchips: Adapt IDs for Boya Microelectronics

Looks like BoHong Microelectronics has the same vendor ID and makes very
similar chips. For instance, Boya BY25Q128AS and BoHong BH25Q128AS have
the same specifications and their datasheets are mostly identical.

Change-Id: I8d6951797daeeecca6af200c995297c0394adefd
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/52550
Reviewed-by: Nico Huber <nico.h@gmx.de>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
---
 flashchips.c | 8 ++++----
 flashchips.h | 6 +++---
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/flashchips.c b/flashchips.c
index 5b328f8a..7a8e8572 100644
--- a/flashchips.c
+++ b/flashchips.c
@@ -3481,11 +3481,11 @@ const struct flashchip flashchips[] = {
 	},
 
 	{
-		.vendor		= "Boya Microelectronics",
-		.name		= "BY25Q128AS",
+		.vendor		= "Boya/BoHong Microelectronics",
+		.name		= "B.25Q128AS",
 		.bustype	= BUS_SPI,
-		.manufacture_id	= BOYA_ID,
-		.model_id	= BOYA_BY25Q128AS,
+		.manufacture_id	= BOYA_BOHONG_ID,
+		.model_id	= BOYA_BOHONG_B_25Q128AS,
 		.total_size	= 16384,
 		.page_size	= 256,
 		.feature_bits	= FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
diff --git a/flashchips.h b/flashchips.h
index 2ad09df7..4e155d35 100644
--- a/flashchips.h
+++ b/flashchips.h
@@ -208,9 +208,9 @@
 #define ATMEL_AT49F080		0x23
 #define ATMEL_AT49F080T		0x27
 
-/* Boya Microelectronics Inc.*/
-#define BOYA_ID			0x68
-#define BOYA_BY25Q128AS		0x4018
+/* Boya/BoHong Microelectronics Inc. */
+#define BOYA_BOHONG_ID		0x68
+#define BOYA_BOHONG_B_25Q128AS	0x4018
 
 /* Bright Microelectronics has the same manufacturer ID as Hyundai... */
 #define BRIGHT_ID		0xAD	/* Bright Microelectronics */
-- 
cgit v1.2.3