diff options
author | Vadim Bendebury <vbendeb@chromium.org> | 2014-07-29 17:51:29 -0700 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2015-03-20 15:30:49 +0100 |
commit | 6051e8334eb46651f069138bdcd5c7285c0b4026 (patch) | |
tree | 5e8763784fac1702d5e7e50187889f4f95c1d20c /payloads/libpayload/include | |
parent | 562d71faea00a4e27b42e9e308a51586d9de5eb2 (diff) |
libpayload: Add board id parsing
Make board ID value supplied in the coreboot table available to the
bootloader on all three architectures.
BUG=chrome-os-partner:30489
TEST=none yet
Change-Id: I6c2d39e94212b55650929d7d99896581d23f789d
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: 723e4a600a5d3a03e960169b04f8322f6dd2486b
Original-Change-Id: I7847bd9fe2d000a29c7ae95144f4868d926fb198
Original-Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Original-Reviewed-on: https://chromium-review.googlesource.com/210430
Original-Reviewed-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: http://review.coreboot.org/8730
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'payloads/libpayload/include')
-rw-r--r-- | payloads/libpayload/include/coreboot_tables.h | 8 | ||||
-rw-r--r-- | payloads/libpayload/include/sysinfo.h | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/payloads/libpayload/include/coreboot_tables.h b/payloads/libpayload/include/coreboot_tables.h index e20249d627..53b5890997 100644 --- a/payloads/libpayload/include/coreboot_tables.h +++ b/payloads/libpayload/include/coreboot_tables.h @@ -205,6 +205,14 @@ struct cb_cbmem_tab { uint64_t cbmem_tab; }; +#define CB_TAG_BOARD_ID 0x0025 +struct cb_board_id { + uint32_t tag; + uint32_t size; + /* Board ID as retrieved from the board revision GPIOs. */ + uint32_t board_id; +}; + #define CB_TAG_X86_ROM_MTRR 0x0021 struct cb_x86_rom_mtrr { uint32_t tag; diff --git a/payloads/libpayload/include/sysinfo.h b/payloads/libpayload/include/sysinfo.h index 92b8dcabf0..afcf3d8c38 100644 --- a/payloads/libpayload/include/sysinfo.h +++ b/payloads/libpayload/include/sysinfo.h @@ -108,6 +108,7 @@ struct sysinfo_t { void *cbmem_cons; void *mrc_cache; void *acpi_gnvs; + u32 board_id; }; extern struct sysinfo_t lib_sysinfo; |