From 71c0aa29fa83219e76af70dd452b6b2e97e4dfbb Mon Sep 17 00:00:00 2001 From: ZhengShunQian Date: Tue, 10 Nov 2015 16:16:14 +0800 Subject: google/veyron_emile: retrieve the MAC address from vpd Emile has a on board ethernet. BUG=chrome-os-partner:47465 TEST=vpd -s ethernet_mac0=001122334455 build and check the MAC address Change-Id: I90ed0ed1253c804568fcdd3dd212bb062a48c836 Signed-off-by: Patrick Georgi Original-Commit-Id: 99b275c594196de0811f68380e66c226d2649927 Original-Change-Id: I1690a1f39090c57c64d4965092c80eef9070babf Original-Signed-off-by: ZhengShunQian Original-Reviewed-on: https://chromium-review.googlesource.com/311900 Original-Commit-Ready: Shunqian Zheng Original-Tested-by: Shunqian Zheng Original-Reviewed-by: David Hendricks Reviewed-on: http://review.coreboot.org/12452 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth --- src/mainboard/google/veyron_emile/mainboard.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/mainboard/google/veyron_emile/mainboard.c b/src/mainboard/google/veyron_emile/mainboard.c index 3a5513b1b7..87a7d7cd30 100644 --- a/src/mainboard/google/veyron_emile/mainboard.c +++ b/src/mainboard/google/veyron_emile/mainboard.c @@ -139,6 +139,11 @@ void lb_board(struct lb_header *header) dma->size = sizeof(*dma); dma->range_start = (uintptr_t)_dma_coherent; dma->range_size = _dma_coherent_size; + + if (IS_ENABLED(CONFIG_CHROMEOS)) { + /* Retrieve the MAC addr which would pass to DTS. */ + lb_table_add_macs_from_vpd(header); + } } void mainboard_power_on_backlight(void) -- cgit v1.2.3