From 09f7382935e03bc83c66878fc6d41bd2b556ccd3 Mon Sep 17 00:00:00 2001 From: Maulik V Vaghela Date: Sat, 29 Dec 2018 20:29:50 +0530 Subject: soc/intel/cannonlake: Enable CNVi based on devicetree Set PchCnvimode to Auto if CNVi is enabled in device tree. This will allow FSP to configure CNVi. Change-Id: I4f77fe5e9f561d3b498403e42dfc7afdcfaedf6f Signed-off-by: Maulik V Vaghela Reviewed-on: https://review.coreboot.org/c/30516 Reviewed-by: Rizwan Qureshi Reviewed-by: Aamir Bohra Reviewed-by: Subrata Banik Tested-by: build bot (Jenkins) --- src/soc/intel/cannonlake/fsp_params.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/soc/intel/cannonlake/fsp_params.c b/src/soc/intel/cannonlake/fsp_params.c index 78b27e9514..8166dea691 100644 --- a/src/soc/intel/cannonlake/fsp_params.c +++ b/src/soc/intel/cannonlake/fsp_params.c @@ -162,6 +162,10 @@ void platform_fsp_silicon_init_params_cb(FSPS_UPD *supd) dev->enabled = 0; params->XdciEnable = dev->enabled; + /* Enable CNVi Wifi if enabled in device tree */ + dev = dev_find_slot(0, PCH_DEVFN_CNViWIFI); + params->PchCnviMode = dev->enabled; + /* PCI Express */ for (i = 0; i < ARRAY_SIZE(config->PcieClkSrcUsage); i++) { if (config->PcieClkSrcUsage[i] == 0) -- cgit v1.2.3