mb/google/octopus: override smbios manufacturer name from CBI
BUG=b:118798180 TEST=emerge-octopus Change-Id: I241a76e3b55ad721c6c0176462c310bcca6b3c5d Signed-off-by: Wisley Chen <wisley.chen@quantatw.com> Reviewed-on: https://review.coreboot.org/29503 Reviewed-by: Furquan Shaikh <furquan@google.com> Reviewed-by: Karthik Ramasubramanian <kramasub@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
committed by
Furquan Shaikh
parent
c1efec7f16
commit
bd3568aea1
@@ -180,3 +180,22 @@ void mainboard_devtree_update(struct device *dev)
|
||||
/* Defer to variant for board-specific updates. */
|
||||
variant_update_devtree(dev);
|
||||
}
|
||||
|
||||
const char *smbios_mainboard_manufacturer(void)
|
||||
{
|
||||
static char oem_name[32];
|
||||
static const char *manuf;
|
||||
|
||||
if (manuf)
|
||||
return manuf;
|
||||
|
||||
if (google_chromeec_cbi_get_oem_name(&oem_name[0],
|
||||
ARRAY_SIZE(oem_name)) < 0) {
|
||||
printk(BIOS_ERR, "Couldn't obtain OEM name from CBI\n");
|
||||
manuf = CONFIG_MAINBOARD_SMBIOS_MANUFACTURER;
|
||||
} else {
|
||||
manuf = &oem_name[0];
|
||||
}
|
||||
|
||||
return manuf;
|
||||
}
|
||||
|
Reference in New Issue
Block a user