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>
This commit is contained in:
Matt DeVillier 2018-06-09 01:31:00 -05:00 committed by Matt DeVillier
parent 1a3e6381d3
commit 13eb237b45
1 changed files with 19 additions and 0 deletions

View File

@ -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();