Wisley Chen has uploaded this change for review. ( https://review.coreboot.org/29503
Change subject: mb/google/octopus: override smbios manufactuer name from CBI ......................................................................
mb/google/octopus: override smbios manufactuer name from CBI
BUG=b:118798180 TEST=emerge-octopus
Change-Id: I241a76e3b55ad721c6c0176462c310bcca6b3c5d Signed-off-by: Wisley Chen wisley.chen@quantatw.com --- M src/mainboard/google/octopus/mainboard.c 1 file changed, 15 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/03/29503/1
diff --git a/src/mainboard/google/octopus/mainboard.c b/src/mainboard/google/octopus/mainboard.c index fceb95d..aeef6e8 100644 --- a/src/mainboard/google/octopus/mainboard.c +++ b/src/mainboard/google/octopus/mainboard.c @@ -180,3 +180,18 @@ /* Defer to variant for board-specific updates. */ variant_update_devtree(dev); } + +const char *smbios_mainboard_manufacturer(void) +{ + static char oem_name[16]; + static const char *manuf; + + if (google_chromeec_cbi_get_oem_name(&oem_name[0], + ARRAY_SIZE(oem_name)) < 0) { + printk(BIOS_ERR, "ERROR: Couldn't obtain oem name from CBI\n"); + manuf = CONFIG_MAINBOARD_SMBIOS_MANUFACTURER; + } else + manuf = &oem_name[0]; + + return manuf; +}