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 <pgeorgi@chromium.org>
Original-Commit-Id: 18cefb655651c9097ff7f2ef3cb735efbbe32370
Original-Change-Id: I14439c37df0fde7f2328c7caae1adf6a122e8f5f
Original-Signed-off-by: Stephen Barber <smbarber@chromium.org>
Original-Reviewed-on: https://chromium-review.googlesource.com/260646
Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: http://review.coreboot.org/9883
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
Stephen Barber 2015-03-17 15:06:59 -07:00 committed by Patrick Georgi
parent b396a66031
commit f7c5c610a2
1 changed files with 8 additions and 0 deletions

View File

@ -35,6 +35,7 @@
#include <soc/nvidia/tegra/dc.h> #include <soc/nvidia/tegra/dc.h>
#include <soc/display.h> #include <soc/display.h>
#include <vendorcode/google/chromeos/chromeos.h> #include <vendorcode/google/chromeos/chromeos.h>
#include <vendorcode/google/chromeos/cros_vpd.h>
#if IS_ENABLED(CONFIG_CHROMEOS) #if IS_ENABLED(CONFIG_CHROMEOS)
#include <vboot_struct.h> #include <vboot_struct.h>
#include <vendorcode/google/chromeos/vboot_handoff.h> #include <vendorcode/google/chromeos/vboot_handoff.h>
@ -298,3 +299,10 @@ struct chip_operations mainboard_ops = {
.name = "rush_ryu", .name = "rush_ryu",
.enable_dev = mainboard_enable, .enable_dev = mainboard_enable,
}; };
#if IS_ENABLED(CONFIG_CHROMEOS)
void lb_board(struct lb_header *header)
{
lb_table_add_serialno_from_vpd(header);
}
#endif