diff options
author | Wisley Chen <wisley.chen@quantatw.com> | 2018-11-06 17:38:57 +0800 |
---|---|---|
committer | Furquan Shaikh <furquan@google.com> | 2018-11-16 03:09:29 +0000 |
commit | bd3568aea10eaf353ae225f073faf31a29516b88 (patch) | |
tree | a8a4320a80d4f730e4cb17b8274608278f366d97 /src/mainboard | |
parent | c1efec7f160ac208c5dcfee4a914da7279821af2 (diff) | |
download | coreboot-bd3568aea10eaf353ae225f073faf31a29516b88.tar.xz |
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>
Diffstat (limited to 'src/mainboard')
-rw-r--r-- | src/mainboard/google/octopus/mainboard.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/mainboard/google/octopus/mainboard.c b/src/mainboard/google/octopus/mainboard.c index fceb95df70..57a614ee34 100644 --- a/src/mainboard/google/octopus/mainboard.c +++ b/src/mainboard/google/octopus/mainboard.c @@ -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; +} |