From 9601b1e273accfbff816cd6e7627862166cfb472 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Thu, 26 May 2022 10:21:36 -0600 Subject: [PATCH] soc/intel/alderlake: Set FSP-S GnaEnable based on devicetree Change-Id: Ifd25416c55c4dba1709f74cdedc0c58e881d6266 Signed-off-by: Jeremy Soller Signed-off-by: Tim Crawford Reviewed-on: https://review.coreboot.org/c/coreboot/+/66090 Tested-by: build bot (Jenkins) Reviewed-by: Tim Wawrzynczak Reviewed-by: Angel Pons --- src/soc/intel/alderlake/fsp_params.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/soc/intel/alderlake/fsp_params.c b/src/soc/intel/alderlake/fsp_params.c index 79958064e3..31277fb5ac 100644 --- a/src/soc/intel/alderlake/fsp_params.c +++ b/src/soc/intel/alderlake/fsp_params.c @@ -781,6 +781,12 @@ static void fill_fsps_thermal_params(FSP_S_CONFIG *s_cfg, s_cfg->TccActivationOffset = config->tcc_offset; } +static void fill_fsps_gna_params(FSP_S_CONFIG *s_cfg, + const struct soc_intel_alderlake_config *config) +{ + s_cfg->GnaEnable = is_devfn_enabled(SA_DEVFN_GNA); +} + static void fill_fsps_lan_params(FSP_S_CONFIG *s_cfg, const struct soc_intel_alderlake_config *config) { @@ -1163,6 +1169,7 @@ static void soc_silicon_init_params(FSP_S_CONFIG *s_cfg, fill_fsps_uart_params, fill_fsps_sata_params, fill_fsps_thermal_params, + fill_fsps_gna_params, fill_fsps_lan_params, fill_fsps_cnvi_params, fill_fsps_vmd_params,