[coreboot-gerrit] Change in coreboot[master]: mb/google/octopus: override smbios manufactuer name from CBI
Wisley Chen (Code Review)
gerrit at coreboot.org
Tue Nov 6 10:42:42 CET 2018
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 at 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;
+}
--
To view, visit https://review.coreboot.org/29503
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I241a76e3b55ad721c6c0176462c310bcca6b3c5d
Gerrit-Change-Number: 29503
Gerrit-PatchSet: 1
Gerrit-Owner: Wisley Chen <wisley.chen at quantatw.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20181106/4f9fb9a6/attachment.html>
More information about the coreboot-gerrit
mailing list