[coreboot-gerrit] Change in coreboot[master]: mb/google/poppy/variants/nautilus: Add SKU info to SMBIOS
Furquan Shaikh (Code Review)
gerrit at coreboot.org
Mon Aug 6 06:06:01 CEST 2018
Furquan Shaikh has uploaded this change for review. ( https://review.coreboot.org/27862
Change subject: mb/google/poppy/variants/nautilus: Add SKU info to SMBIOS
......................................................................
mb/google/poppy/variants/nautilus: Add SKU info to SMBIOS
This change provides implementation of smbios_mainboard_sku() to add
proper "skuX" string to SMBIOS table 1.
BUG=b:112163362
TEST=Verified "dmidecode -t 1" reports skuX correctly.
Change-Id: I7e42d2c80d791ea7170d066d2eeaa0c6811eb9c9
Signed-off-by: Furquan Shaikh <furquan at google.com>
---
M src/mainboard/google/poppy/variants/nautilus/mainboard.c
1 file changed, 11 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/62/27862/1
diff --git a/src/mainboard/google/poppy/variants/nautilus/mainboard.c b/src/mainboard/google/poppy/variants/nautilus/mainboard.c
index 502195e..e51370c 100644
--- a/src/mainboard/google/poppy/variants/nautilus/mainboard.c
+++ b/src/mainboard/google/poppy/variants/nautilus/mainboard.c
@@ -17,6 +17,8 @@
#include <chip.h>
#include <gpio.h>
#include <device/device.h>
+#include <smbios.h>
+#include <string.h>
#include <variant/sku.h>
uint32_t variant_board_sku(void)
@@ -40,6 +42,15 @@
return sku_id;
}
+const char *smbios_mainboard_sku(void)
+{
+ static char sku_str[5]; /* sku{0-1} */
+
+ snprintf(sku_str, sizeof(sku_str), "sku%u", variant_board_sku());
+
+ return sku_str;
+}
+
/* Override dev tree settings per board */
void variant_devtree_update(void)
{
--
To view, visit https://review.coreboot.org/27862
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: I7e42d2c80d791ea7170d066d2eeaa0c6811eb9c9
Gerrit-Change-Number: 27862
Gerrit-PatchSet: 1
Gerrit-Owner: Furquan Shaikh <furquan at google.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20180806/15292876/attachment-0001.html>
More information about the coreboot-gerrit
mailing list