gma config: Introduce Has_New_FDI_(Sink|Source)
Change-Id: Ib9a5951abf62ed01583ad028bc944c0135744457
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.coreboot.org/c/libgfxinit/+/27051
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
diff --git a/common/hw-gfx-gma-pch.ads b/common/hw-gfx-gma-pch.ads
index 106d2e8..0acc852 100644
--- a/common/hw-gfx-gma-pch.ads
+++ b/common/hw-gfx-gma-pch.ads
@@ -23,16 +23,10 @@
-- common to all PCH outputs
PCH_TRANSCODER_SELECT_SHIFT : constant :=
- (case Config.CPU is
- when Ironlake => 30,
- when Sandybridge | Ivybridge => 29,
- when others => 0);
+ (if Config.Has_New_FDI_Sink then 29 else 30);
PCH_TRANSCODER_SELECT_MASK : constant :=
- (case Config.CPU is
- when Ironlake => 1 * 2 ** 30,
- when Sandybridge | Ivybridge => 3 * 2 ** 29,
- when others => 0);
+ (if Config.Has_New_FDI_Sink then 3 * 2 ** 29 else 1 * 2 ** 30);
type PCH_TRANSCODER_SELECT_Array is array (FDI_Port_Type) of Word32;
PCH_TRANSCODER_SELECT : constant PCH_TRANSCODER_SELECT_Array :=