summaryrefslogtreecommitdiff
path: root/src/mainboard
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard')
-rw-r--r--src/mainboard/google/poppy/variants/nami/mainboard.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/mainboard/google/poppy/variants/nami/mainboard.c b/src/mainboard/google/poppy/variants/nami/mainboard.c
index 5b3e2ea6a6..e2bc8958a3 100644
--- a/src/mainboard/google/poppy/variants/nami/mainboard.c
+++ b/src/mainboard/google/poppy/variants/nami/mainboard.c
@@ -13,10 +13,15 @@
* GNU General Public License for more details.
*/
+#include <arch/cpu.h>
+#include <assert.h>
+#include <baseboard/variants.h>
#include <chip.h>
#include <device/device.h>
#include <ec/google/chromeec/ec.h>
-#include <baseboard/variants.h>
+#include <smbios.h>
+#include <soc/ramstage.h>
+#include <string.h>
#define SKU_UNKNOWN 0xFFFF
#define SKU_0_NAMI 0x3A7B
@@ -49,3 +54,12 @@ void variant_devtree_update(void)
break;
}
}
+
+const char *smbios_mainboard_sku(void)
+{
+ static char sku_str[9]; /* sku{0..65535} (basically up to FFFF) */
+
+ snprintf(sku_str, sizeof(sku_str), "sku%d", board_sku_id());
+
+ return sku_str;
+}