summaryrefslogtreecommitdiff
path: root/payloads/libpayload/include
diff options
context:
space:
mode:
authorJulius Werner <jwerner@chromium.org>2017-12-05 13:49:21 -0800
committerJulius Werner <jwerner@chromium.org>2017-12-07 01:19:38 +0000
commitf38a10f8d2550e28da47d8661622df69a621ee5d (patch)
tree7de73977afe40237eac91aa82ec07f396e6cab2e /payloads/libpayload/include
parent96ed92d49dca18ca0d19de352831cf8df6f2e84c (diff)
downloadcoreboot-f38a10f8d2550e28da47d8661622df69a621ee5d.tar.xz
libpayload: Add SKU ID coreboot table support
This patch adds support to read the SKU ID entry from the coreboot table that was recently added in coreboot. Change-Id: I1c3b375da6119a4f8e8e7e25a11644becb90f927 Signed-off-by: Julius Werner <jwerner@chromium.org> Reviewed-on: https://review.coreboot.org/22743 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'payloads/libpayload/include')
-rw-r--r--payloads/libpayload/include/coreboot_tables.h1
-rw-r--r--payloads/libpayload/include/sysinfo.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/payloads/libpayload/include/coreboot_tables.h b/payloads/libpayload/include/coreboot_tables.h
index 5bc56d0f6e..6b6d1b421e 100644
--- a/payloads/libpayload/include/coreboot_tables.h
+++ b/payloads/libpayload/include/coreboot_tables.h
@@ -239,6 +239,7 @@ struct cb_x86_rom_mtrr {
#define CB_TAG_BOARD_ID 0x0025
#define CB_TAG_RAM_CODE 0x0028
+#define CB_TAG_SKU_ID 0x002d
struct cb_strapping_id {
uint32_t tag;
uint32_t size;
diff --git a/payloads/libpayload/include/sysinfo.h b/payloads/libpayload/include/sysinfo.h
index b46d4b1311..f221a15faa 100644
--- a/payloads/libpayload/include/sysinfo.h
+++ b/payloads/libpayload/include/sysinfo.h
@@ -112,6 +112,7 @@ struct sysinfo_t {
#define UNDEFINED_STRAPPING_ID (~0)
u32 board_id;
u32 ram_code;
+ u32 sku_id;
void *wifi_calibration;
uint64_t ramoops_buffer;