summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVadim Bendebury <vbendeb@chromium.org>2014-10-23 16:03:29 -0700
committerPatrick Georgi <pgeorgi@google.com>2015-04-10 20:49:14 +0200
commit103a07fbeb78bf6fc199400da197b86d248093dd (patch)
treea7ab45dba1b05cc00b36cc4ee842003bb5353322 /src
parente28fd3626fb740a6b7679bef8a56d109bfa90014 (diff)
downloadcoreboot-103a07fbeb78bf6fc199400da197b86d248093dd.tar.xz
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>
Diffstat (limited to 'src')
-rw-r--r--src/mainboard/google/storm/mainboard.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mainboard/google/storm/mainboard.c b/src/mainboard/google/storm/mainboard.c
index 32be579155..f1c36a8d63 100644
--- a/src/mainboard/google/storm/mainboard.c
+++ b/src/mainboard/google/storm/mainboard.c
@@ -29,6 +29,8 @@
#include <string.h>
#include <symbols.h>
+#include <vendorcode/google/chromeos/chromeos.h>
+
/* convenient shorthand (in MB) */
#define DRAM_START ((uintptr_t)_dram / MiB)
#define DRAM_SIZE (CONFIG_DRAM_SIZE_MB)
@@ -116,6 +118,11 @@ static void mainboard_init(device_t dev)
setup_tpm();
/* Functionally a 0-cost no-op if NAND is not present */
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)