storm: copy WiFi calibration data in the CBMEM

Invoke the function which copies WiFi calibration data in a CBMEM
table.

BRANCH=storm
BUG=chrome-os-partner:32611
TEST=verified that the WIFI entry is added to CBMEM when the
     calibration data is present in the VPD.

Change-Id: Icab0a2343e88e1d44575eeb608fdf6588aff255b
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: 68b96f158633cb3a1f157b5a19da39fa7e78f975
Original-Change-Id: I5fa77da98e37b88da01fb7884e713535fc178006
Original-Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Original-Reviewed-on: https://chromium-review.googlesource.com/225272
Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: http://review.coreboot.org/9543
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
Vadim Bendebury 2014-10-23 16:03:29 -07:00 committed by Patrick Georgi
parent e28fd3626f
commit 103a07fbeb
1 changed files with 7 additions and 0 deletions

View File

@ -29,6 +29,8 @@
#include <string.h> #include <string.h>
#include <symbols.h> #include <symbols.h>
#include <vendorcode/google/chromeos/chromeos.h>
/* convenient shorthand (in MB) */ /* convenient shorthand (in MB) */
#define DRAM_START ((uintptr_t)_dram / MiB) #define DRAM_START ((uintptr_t)_dram / MiB)
#define DRAM_SIZE (CONFIG_DRAM_SIZE_MB) #define DRAM_SIZE (CONFIG_DRAM_SIZE_MB)
@ -116,6 +118,11 @@ static void mainboard_init(device_t dev)
setup_tpm(); setup_tpm();
/* Functionally a 0-cost no-op if NAND is not present */ /* Functionally a 0-cost no-op if NAND is not present */
board_nand_init(); board_nand_init();
#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)