From f2234422e957a042fb15f4fb3b8ea68940dc82c6 Mon Sep 17 00:00:00 2001 From: Werner Zeh Date: Thu, 17 Mar 2022 08:37:34 +0100 Subject: soc/intel/apollolake: Correct enum for PrimaryVideoAdaptor FSP parameter Commit 1a4496e79f21 (soc/{apl,glk}: Allow to select the primary graphics device) adds code to set the FSP parameter 'PrimaryVideoAdaptor' based on the enum description of the FspmUpd.h for Apollo Lake. Unfortunately, the comment in the header file does not match the implementation in the FSP and hence setting PrimaryVideoAdaptor to 'GPU_PRIMARY_IGD' will be treated as if the selection was 'GPU_PRIMARY_PCI'. This in turn leads to Linux gfx driver issues for earlier driver implementations. This commit corrects the enum values for the FSP parameter to match the implementation. TEST=Boot into Linux on mc_apl1 and verify that graphics works. Change-Id: Iedbc144fa809f6d4587f5223b235ee95579c48f7 Signed-off-by: Werner Zeh Reviewed-on: https://review.coreboot.org/c/coreboot/+/62889 Tested-by: build bot (Jenkins) Reviewed-by: Maxim Polyakov Reviewed-by: Angel Pons Reviewed-by: Mario Scheithauer Reviewed-by: Paul Menzel --- src/soc/intel/apollolake/romstage.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/soc/intel/apollolake/romstage.c b/src/soc/intel/apollolake/romstage.c index 08543b1ea7..1d8752fa31 100644 --- a/src/soc/intel/apollolake/romstage.c +++ b/src/soc/intel/apollolake/romstage.c @@ -232,8 +232,8 @@ static void check_full_retrain(const FSPM_UPD *mupd) static void soc_gpu_init_params(FSPM_UPD *mupd) { enum { - GPU_PRIMARY_IGD = 2, - GPU_PRIMARY_PCI = 3, + GPU_PRIMARY_IGD = 0, + GPU_PRIMARY_PCI = 1, }; /* Select primary GPU device */ if (CONFIG(ONBOARD_VGA_IS_PRIMARY) && is_devfn_enabled(SA_DEVFN_IGD)) -- cgit v1.2.3