gma: Update BDSM register offset for TGL onwards
BDSM moved and is also 64 bits on TGL. If the register indicates that
BSDM is 64-bits, then right now libgfxinit will error out.
Signed-off-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Change-Id: I0a3e7a92dcb08ea33e08c9f2c5135d4269c9e0b9
Reviewed-on: https://review.coreboot.org/c/libgfxinit/+/65178
Tested-by: Nico Huber <nico.h@gmx.de>
Reviewed-by: Nico Huber <nico.h@gmx.de>
diff --git a/common/hw-gfx-gma-config.ads.template b/common/hw-gfx-gma-config.ads.template
index 44aaa96..e759a0c 100644
--- a/common/hw-gfx-gma-config.ads.template
+++ b/common/hw-gfx-gma-config.ads.template
@@ -397,6 +397,11 @@
----------------------------------------------------------------------------
+ GMA_Phys_Base_Index : constant PCI.Index :=
+ (if Config.Tigerlake_On then 16#c0# else 16#5c#);
+
+ GMA_Base_Is_64bit : constant Boolean := Config.Tigerlake_On;
+
GTT_PTE_Size : <hswvar> Natural := (if Has_64bit_GTT then 8 else 4);
Fence_Base : <ilkvar> Natural :=