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>
This commit is contained in:
parent
1db8c57470
commit
1a3e6381d3
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue