From 0dd80aab25200c4bba26aa6b9fc24f3e967e3f6a Mon Sep 17 00:00:00 2001 From: Nitheesh Sekar Date: Mon, 7 Jan 2019 21:04:27 +0530 Subject: mistral: qcs405: copy calibration data to CBMEM This patch adds support to copy the wifi calibration data to CBMEM so that the depthcharge can use it to populate the data into wifi dt node. Change-Id: Ia8184e48a7176bb3b52e4d43866b7d065952c13e Signed-off-by: Nitheesh Sekar Reviewed-on: https://review.coreboot.org/c/coreboot/+/30714 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi --- src/mainboard/google/mistral/mainboard.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/mainboard') diff --git a/src/mainboard/google/mistral/mainboard.c b/src/mainboard/google/mistral/mainboard.c index 568d4864a5..b45657f9dd 100644 --- a/src/mainboard/google/mistral/mainboard.c +++ b/src/mainboard/google/mistral/mainboard.c @@ -16,10 +16,14 @@ #include #include #include +#include static void mainboard_init(struct device *dev) { - + if (CONFIG(CHROMEOS)) { + /* Copy WIFI calibration data into CBMEM. */ + cbmem_add_vpd_calibration_data(); + } } static void mainboard_enable(struct device *dev) -- cgit v1.2.3