From 13eb237b4590fff7fb61e08b16c4e782ad72e05b Mon Sep 17 00:00:00 2001 From: Matt DeVillier Date: Sat, 9 Jun 2018 01:31:00 -0500 Subject: [PATCH] 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/74819 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth --- src/mainboard/google/fizz/mainboard.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/mainboard/google/fizz/mainboard.c b/src/mainboard/google/fizz/mainboard.c index b0d94a09d7..f37b70f6b5 100644 --- a/src/mainboard/google/fizz/mainboard.c +++ b/src/mainboard/google/fizz/mainboard.c @@ -179,6 +179,25 @@ const char *smbios_system_sku(void) 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();