summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mainboard/google/poppy/variants/nautilus/mainboard.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mainboard/google/poppy/variants/nautilus/mainboard.c b/src/mainboard/google/poppy/variants/nautilus/mainboard.c
index 502195e473..e51370cfa3 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 @@ uint32_t variant_board_sku(void)
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)
{