soc/intel/alderlake: Set FSP-S GnaEnable based on devicetree

Change-Id: Ifd25416c55c4dba1709f74cdedc0c58e881d6266
Signed-off-by: Jeremy Soller <jeremy@system76.com>
Signed-off-by: Tim Crawford <tcrawford@system76.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/66090
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
Jeremy Soller 2022-05-26 10:21:36 -06:00 committed by Felix Held
parent 3541c31add
commit 9601b1e273
1 changed files with 7 additions and 0 deletions

View File

@ -781,6 +781,12 @@ static void fill_fsps_thermal_params(FSP_S_CONFIG *s_cfg,
s_cfg->TccActivationOffset = config->tcc_offset; 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, static void fill_fsps_lan_params(FSP_S_CONFIG *s_cfg,
const struct soc_intel_alderlake_config *config) 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_uart_params,
fill_fsps_sata_params, fill_fsps_sata_params,
fill_fsps_thermal_params, fill_fsps_thermal_params,
fill_fsps_gna_params,
fill_fsps_lan_params, fill_fsps_lan_params,
fill_fsps_cnvi_params, fill_fsps_cnvi_params,
fill_fsps_vmd_params, fill_fsps_vmd_params,