3rdparty/libgfxinit: Update for runtime CPU detection

Beside one tiny fix for framebuffer scaling, this contains a major
refactoring of libgfxinit's configuration infrastructure. With this,
we are finally able to detect CPUs at runtime and only have to confi-
gure a CPU/GPU generation.

Change-Id: Iccf4557453878536f527e4a1902439a1961ab701
Signed-off-by: Nico Huber <nico.huber@secunet.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/32736
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Nico Huber 2019-05-10 16:26:07 +02:00 committed by Nico Huber
parent a029b3f4a4
commit 47953d0ae0
2 changed files with 9 additions and 12 deletions

2
3rdparty/libgfxinit vendored

@ -1 +1 @@
Subproject commit f70eddafbc2c6045a14e2f8bbb3273ee738fbaf7 Subproject commit b3b9fa34bb99d33d0fc6a69c64966a71cebd5bd6

View File

@ -86,22 +86,19 @@ config GFX_GMA_INTERNAL_IS_LVDS
if GFX_GMA if GFX_GMA
config GFX_GMA_CPU config GFX_GMA_DYN_CPU
def_bool y
help
Activates runtime CPU detection in libgfxinit.
config GFX_GMA_GENERATION
string string
default "Broxton" if SOC_INTEL_APOLLOLAKE default "Broxton" if SOC_INTEL_APOLLOLAKE
default "Skylake" if SOC_INTEL_SKYLAKE default "Skylake" if SOC_INTEL_SKYLAKE
default "Broadwell" if SOC_INTEL_BROADWELL default "Haswell" if NORTHBRIDGE_INTEL_HASWELL || SOC_INTEL_BROADWELL
default "Haswell" if NORTHBRIDGE_INTEL_HASWELL default "Ironlake" if NORTHBRIDGE_INTEL_NEHALEM || NORTHBRIDGE_INTEL_SANDYBRIDGE || NORTHBRIDGE_INTEL_IVYBRIDGE
default "Ivybridge" if NORTHBRIDGE_INTEL_IVYBRIDGE
default "Sandybridge" if NORTHBRIDGE_INTEL_SANDYBRIDGE
default "Ironlake" if NORTHBRIDGE_INTEL_NEHALEM
default "G45" if NORTHBRIDGE_INTEL_GM45 || NORTHBRIDGE_INTEL_X4X default "G45" if NORTHBRIDGE_INTEL_GM45 || NORTHBRIDGE_INTEL_X4X
config GFX_GMA_CPU_VARIANT
string
default "ULT" if (SOC_INTEL_SKYLAKE && !SKYLAKE_SOC_PCH_H) || SOC_INTEL_BROADWELL || NORTHBRIDGE_INTEL_HASWELL
default "Normal"
config GFX_GMA_INTERNAL_PORT config GFX_GMA_INTERNAL_PORT
string string
default "DP" if GFX_GMA_INTERNAL_IS_EDP default "DP" if GFX_GMA_INTERNAL_IS_EDP