mb/google/fizz: Override SMBIOS product name based on OEM ID
Use the OEM ID from CBI to determine the correct OEM board name.
ID mapping taken from ChromeEC source, branch firmware-fizz-10139.B.
TEST=build/boot multiple fizz variants, check that board name reported
correctly in SMBIOS tables.
Change-Id: I06251974ac73570b911920ed566a175e8e733710
Signed-off-by: Matt DeVillier <matt.devillier@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/74819
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin Roth <martin.roth@amd.corp-partner.google.com>
diff --git a/src/mainboard/google/fizz/mainboard.c b/src/mainboard/google/fizz/mainboard.c
index b0d94a0..f37b70f 100644
--- a/src/mainboard/google/fizz/mainboard.c
+++ b/src/mainboard/google/fizz/mainboard.c
@@ -179,6 +179,25 @@
return sku_str;
}
+const char *fizz_oem_name[] = {
+ "Kench",
+ "Teemo",
+ "Sion",
+ "Wukong",
+ "Wukong",
+ "Wukong",
+ "Teemo",
+ "",
+ "Jax",
+ "",
+ "Excelsior"
+};
+
+const char *smbios_mainboard_product_name(void)
+{
+ return fizz_oem_name[board_oem_id()];
+}
+
static void mainboard_init(struct device *dev)
{
mainboard_ec_init();