gma: Drop state tracking of active `DP_Links`

The only time these settings are referenced is when we are about to
tear down a pipe. But we don't need the current state to do this. On
retraining due to a hotplug event, we start the whole configuration
again for simplicity. So we won't need it on that path either.

Change-Id: I01662e4a4a6150a0b05c57a016171fa3f0e7b93a
Signed-off-by: Nico Huber <nico.huber@secunet.com>
Reviewed-on: https://review.coreboot.org/18117
Tested-by: Nico Huber <nico.h@gmx.de>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
diff --git a/common/hw-gfx-gma.adb b/common/hw-gfx-gma.adb
index 898ce56..343a0cd 100644
--- a/common/hw-gfx-gma.adb
+++ b/common/hw-gfx-gma.adb
@@ -35,7 +35,7 @@
      (State =>
         (Registers.Address_State,
          PLLs.State, Panel.Panel_State,
-         Cur_Configs, Allocated_PLLs, DP_Links,
+         Cur_Configs, Allocated_PLLs,
          HPD_Delay, Wait_For_HPD),
       Init_State => Initialized,
       Config_State => Config.Valid_Port_GPU,
@@ -60,13 +60,10 @@
 
    type PLLs_Type is array (Pipe_Index) of PLLs.T;
 
-   type Links_Type is array (Pipe_Index) of DP_Link;
-
    type HPD_Type is array (Port_Type) of Boolean;
    type HPD_Delay_Type is array (Port_Type) of Time.T;
 
    Allocated_PLLs : PLLs_Type;
-   DP_Links : Links_Type;
    HPD_Delay : HPD_Delay_Type;
    Wait_For_HPD : HPD_Type;
    Initialized : Boolean := False;
@@ -117,7 +114,6 @@
 
          Config_Helpers.Fill_Port_Config
            (Port_Cfg, I, Old_Configs (I).Port, Old_Configs (I).Mode, Success);
-         Port_Cfg.DP := DP_Links (I);
          if Success then
             Check_HPD (Port_Cfg, Old_Config.Port, HPD);
          end if;
@@ -233,7 +229,6 @@
                   pragma Debug (Debug.Put_Line
                     ("Enabled port " & Port_Names (New_Config.Port)));
                   Cur_Configs (I) := New_Config;
-                  DP_Links (I) := Port_Cfg.DP;
                else
                   Wait_For_HPD (New_Config.Port) := True;
                   if New_Config.Port = Internal then
@@ -274,7 +269,7 @@
          Output =>
            (Registers.Address_State,
             PLLs.State, Panel.Panel_State,
-            Cur_Configs, Allocated_PLLs, DP_Links,
+            Cur_Configs, Allocated_PLLs,
             HPD_Delay, Wait_For_HPD, Initialized))
    is
       use type HW.Word64;
@@ -311,7 +306,6 @@
 
       Wait_For_HPD := HPD_Type'(others => False);
       HPD_Delay := HPD_Delay_Type'(others => Now);
-      DP_Links := Links_Type'(others => HW.GFX.Default_DP);
       Allocated_PLLs := (others => PLLs.Invalid);
       Cur_Configs := Pipe_Configs'
         (others => Pipe_Config'