diff options
author | Matt DeVillier <matt.devillier@gmail.com> | 2018-06-09 01:31:00 -0500 |
---|---|---|
committer | Matt DeVillier <matt.devillier@amd.corp-partner.google.com> | 2023-05-05 15:39:20 +0000 |
commit | 13eb237b4590fff7fb61e08b16c4e782ad72e05b (patch) | |
tree | c593df4cb4c3356083d94bc4634a9944b84c5e76 | |
parent | 1a3e6381d3fb159fbd18990112f64e1eded702d6 (diff) |
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>
-rw-r--r-- | src/mainboard/google/fizz/mainboard.c | 19 |
1 files changed, 19 insertions, 0 deletions
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(); |