soc/intel/icelake: adapt FSP GOP param to match the other FSP2.0 platforms

Set the FSP parameter PeiGraphicsPeimInit according to RUN_FSP_GOP to
enable or skip GOP.

Change-Id: I5993e64631f86ff0f9ae069e10b89df8bc4cd085
Signed-off-by: Michael Niewöhner <foss@mniewoehner.de>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/36353
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
This commit is contained in:
Michael Niewöhner 2019-10-26 10:44:33 +02:00 committed by Patrick Georgi
parent 02d9071a0b
commit db8f9229b1
1 changed files with 4 additions and 8 deletions

View File

@ -94,15 +94,11 @@ void platform_fsp_silicon_init_params_cb(FSPS_UPD *supd)
mainboard_silicon_init_params(params); mainboard_silicon_init_params(params);
dev = pcidev_path_on_root(SA_DEVFN_IGD); dev = pcidev_path_on_root(SA_DEVFN_IGD);
if (CONFIG(RUN_FSP_GOP) && dev && dev->enabled)
if (!dev || !dev->enabled) {
/*
* Skip IGD initialization in FSP in case device is disabled
* in the devicetree.cb.
*/
params->PeiGraphicsPeimInit = 0;
} else {
params->PeiGraphicsPeimInit = 1; params->PeiGraphicsPeimInit = 1;
else
params->PeiGraphicsPeimInit = 0;
if (dev && dev->enabled) {
params->GtFreqMax = 2; params->GtFreqMax = 2;
params->CdClock = 3; params->CdClock = 3;
} }