From f7c5c610a2563971461bbc066117d185022df0f5 Mon Sep 17 00:00:00 2001 From: Stephen Barber Date: Tue, 17 Mar 2015 15:06:59 -0700 Subject: [PATCH] google/rush_ryu: add serialno from vpd Add the serial number from VPD on ryu. BRANCH=none BUG=chrome-os-partner:37813 TEST=devicetree is populated with "compatible", "hardware", and "serialno" properties Change-Id: I1e84933a01a34028a062d31aad026f91c3bd29e1 Signed-off-by: Patrick Georgi Original-Commit-Id: 18cefb655651c9097ff7f2ef3cb735efbbe32370 Original-Change-Id: I14439c37df0fde7f2328c7caae1adf6a122e8f5f Original-Signed-off-by: Stephen Barber Original-Reviewed-on: https://chromium-review.googlesource.com/260646 Original-Reviewed-by: Aaron Durbin Reviewed-on: http://review.coreboot.org/9883 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer --- src/mainboard/google/rush_ryu/mainboard.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/mainboard/google/rush_ryu/mainboard.c b/src/mainboard/google/rush_ryu/mainboard.c index 21d2fcb177..0317e7fccb 100644 --- a/src/mainboard/google/rush_ryu/mainboard.c +++ b/src/mainboard/google/rush_ryu/mainboard.c @@ -35,6 +35,7 @@ #include #include #include +#include #if IS_ENABLED(CONFIG_CHROMEOS) #include #include @@ -298,3 +299,10 @@ struct chip_operations mainboard_ops = { .name = "rush_ryu", .enable_dev = mainboard_enable, }; + +#if IS_ENABLED(CONFIG_CHROMEOS) +void lb_board(struct lb_header *header) +{ + lb_table_add_serialno_from_vpd(header); +} +#endif