diff options
author | Matt DeVillier <matt.devillier@gmail.com> | 2019-05-08 20:02:34 -0500 |
---|---|---|
committer | Matt DeVillier <matt.devillier@amd.corp-partner.google.com> | 2023-05-05 15:39:09 +0000 |
commit | 1a3e6381d3fb159fbd18990112f64e1eded702d6 (patch) | |
tree | 6118090a40ce023fb7e1ae843682ef2d886122f8 /src/mainboard | |
parent | 1db8c57470f373787448d8fb8961b0dc1208a953 (diff) |
mb/google/poppy/var/nami: Override SMBIOS product name
Override SMBIOS product name with sub-variant name based on board SKU.
TEST=build/boot multiple nami variants, verify SMBIOS product name
reports correctly.
Change-Id: I2125bfb6436469405378f9c983d7cfcb2f85f916
Signed-off-by: Matt DeVillier <matt.devillier@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/74820
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: CoolStar <coolstarorganization@gmail.com>
Reviewed-by: Martin Roth <martin.roth@amd.corp-partner.google.com>
Diffstat (limited to 'src/mainboard')
-rw-r--r-- | src/mainboard/google/poppy/variants/nami/mainboard.c | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/src/mainboard/google/poppy/variants/nami/mainboard.c b/src/mainboard/google/poppy/variants/nami/mainboard.c index a4634fc6e5..e764523f3f 100644 --- a/src/mainboard/google/poppy/variants/nami/mainboard.c +++ b/src/mainboard/google/poppy/variants/nami/mainboard.c @@ -176,6 +176,56 @@ const char *smbios_mainboard_manufacturer(void) return manuf; } +const char *smbios_mainboard_product_name(void) +{ + uint32_t sku_id = variant_board_sku(); + static char product[12]; + + switch (sku_id) { + case SKU_0_PANTHEON: + case SKU_1_PANTHEON: + case SKU_2_PANTHEON: + case SKU_3_PANTHEON: + case SKU_4_PANTHEON: + snprintf(product, sizeof(product), "Pantheon"); break; + case SKU_0_VAYNE: + case SKU_1_VAYNE: + case SKU_2_VAYNE: + snprintf(product, sizeof(product), "Vayne"); break; + case SKU_0_AKALI: + case SKU_1_AKALI: + snprintf(product, sizeof(product), "Akali"); break; + case SKU_0_AKALI360: + case SKU_1_AKALI360: + snprintf(product, sizeof(product), "Akali 360"); break; + case SKU_0_BARD: + case SKU_1_BARD: + case SKU_2_BARD: + case SKU_3_BARD: + snprintf(product, sizeof(product), "Bard"); break; + case SKU_0_EKKO: + case SKU_1_EKKO: + case SKU_2_EKKO: + case SKU_3_EKKO: + snprintf(product, sizeof(product), "Ekko"); break; + case SKU_0_SONA: + case SKU_1_SONA: + snprintf(product, sizeof(product), "Sona"); break; + case SKU_0_SYNDRA: + case SKU_1_SYNDRA: + case SKU_2_SYNDRA: + case SKU_3_SYNDRA: + case SKU_4_SYNDRA: + case SKU_5_SYNDRA: + case SKU_6_SYNDRA: + case SKU_7_SYNDRA: + snprintf(product, sizeof(product), "Syndra"); break; + default: + snprintf(product, sizeof(product), "Nami"); break; + } + return product; +} + const char *mainboard_vbt_filename(void) { uint32_t sku_id = variant_board_sku(); |