gma: Add GPU_Port types that are convenient for GMCH to use
Change-Id: I9120d084637d36a7e2276fcf3f630b3f7ed32509
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/25407
Reviewed-by: Nico Huber <nico.h@gmx.de>
diff --git a/common/hw-gfx-gma-transcoder.adb b/common/hw-gfx-gma-transcoder.adb
index 5990fcf..97ad069 100644
--- a/common/hw-gfx-gma-transcoder.adb
+++ b/common/hw-gfx-gma-transcoder.adb
@@ -218,7 +218,8 @@
pragma Debug (Debug.Put_Line (GNAT.Source_Info.Enclosing_Entity));
if Config.Has_Trans_Clk_Sel and then
- Trans.CLK_SEL /= Registers.Invalid_Register
+ Trans.CLK_SEL /= Registers.Invalid_Register and then
+ Port_Cfg.Port in Digital_Port
then
Registers.Write
(Register => Trans.CLK_SEL,
@@ -249,7 +250,7 @@
Trans : Transcoder_Regs renames
Transcoders (Get_Idx (Pipe, Port_Cfg.Port));
begin
- if Config.Has_Pipe_DDI_Func then
+ if Config.Has_Pipe_DDI_Func and Port_Cfg.Port in Digital_Port then
Registers.Write
(Register => Trans.DDI_FUNC_CTL,
Value => DDI_FUNC_CTL_ENABLE or