google/urara: retrieve network device information from VPD

Invoke the function which copies MAC addresses from VPD into the
coreboot table and calibration data into CBMEM.

BRANCH=none
BUG=chrome-os-partner:36584
TEST=with the rest of the patches applied observed that the MAC
     addresses from VPD get copied into the appropriate kernel device
     tree nodes.

Change-Id: I68e2b73520853ef2d3249ca12ee87669fd01f442
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: 12f935098c50e2df345748d3b71cee2152acd422
Original-Change-Id: I6e1483d33480d13380ade2dddae6c92fd3f1f881
Original-Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Original-Reviewed-on: https://chromium-review.googlesource.com/262844
Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: http://review.coreboot.org/9897
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
Vadim Bendebury 2015-03-28 22:14:53 -07:00 committed by Patrick Georgi
parent 375f3928a4
commit 23dddd5bd3
1 changed files with 16 additions and 0 deletions

View File

@ -24,9 +24,20 @@
#include <device/device.h> #include <device/device.h>
#include <boot/coreboot_tables.h> #include <boot/coreboot_tables.h>
#include <vendorcode/google/chromeos/chromeos.h>
static void mainboard_init(device_t dev)
{
#if IS_ENABLED(CONFIG_CHROMEOS)
/* Copy WIFI calibration data into CBMEM. */
cbmem_add_vpd_calibration_data();
#endif
}
static void mainboard_enable(device_t dev) static void mainboard_enable(device_t dev)
{ {
printk(BIOS_INFO, "Enable Pistachio device...\n"); printk(BIOS_INFO, "Enable Pistachio device...\n");
dev->ops->init = &mainboard_init;
} }
struct chip_operations mainboard_ops = { struct chip_operations mainboard_ops = {
@ -42,4 +53,9 @@ void lb_board(struct lb_header *header)
dma->size = sizeof(*dma); dma->size = sizeof(*dma);
dma->range_start = (uintptr_t)_dma_coherent; dma->range_start = (uintptr_t)_dma_coherent;
dma->range_size = _dma_coherent_size; dma->range_size = _dma_coherent_size;
#if IS_ENABLED(CONFIG_CHROMEOS)
/* Retrieve the switch interface MAC addressses. */
lb_table_add_macs_from_vpd(header);
#endif
} }