summaryrefslogtreecommitdiff
path: root/payloads/libpayload/include/sysinfo.h
diff options
context:
space:
mode:
authorStephen Barber <smbarber@chromium.org>2015-03-11 15:48:08 -0700
committerPatrick Georgi <pgeorgi@google.com>2015-04-22 08:46:37 +0200
commitda262a6388dec9a943052823203a44e4e5b69e5f (patch)
treed9498aeab11f8c91b7004e5a431ffe1cd892244e /payloads/libpayload/include/sysinfo.h
parent30773d23bbf3e032bd25f993b6541ffe20e5c0bf (diff)
downloadcoreboot-da262a6388dec9a943052823203a44e4e5b69e5f.tar.xz
libpayload: cros: add serial number from coreboot table
Add serial number to lib_sysinfo from coreboot table. BRANCH=none BUG=chrome-os-partner:37813 TEST=ryu boots and /proc/device-tree/firmware/android is populated with "compatible", "hardware", and "serialno" properties Change-Id: I565b332a16b177c51907ffab7976ebd7a665aaaf Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Original-Commit-Id: 5535119f5d499b04bdc178c3040241d2872c4e13 Original-Change-Id: Ie2e222780d1577689a1cbf76ae8514c74fc469f4 Original-Signed-off-by: Stephen Barber <smbarber@chromium.org> Original-Reviewed-on: https://chromium-review.googlesource.com/259140 Original-Reviewed-by: Furquan Shaikh <furquan@chromium.org> Reviewed-on: http://review.coreboot.org/9881 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'payloads/libpayload/include/sysinfo.h')
-rw-r--r--payloads/libpayload/include/sysinfo.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/payloads/libpayload/include/sysinfo.h b/payloads/libpayload/include/sysinfo.h
index ec8a31c6b6..de8b0feaea 100644
--- a/payloads/libpayload/include/sysinfo.h
+++ b/payloads/libpayload/include/sysinfo.h
@@ -91,6 +91,7 @@ struct sysinfo_t {
struct cb_gpio gpios[SYSINFO_MAX_GPIOS];
int num_macs;
struct mac_address macs[SYSINFO_MAX_MACS];
+ char *serialno;
#endif
unsigned long *mbtable; /** Pointer to the multiboot table */