gma: Add `eDP' flag to Port_Config
Again, we assume that a port with panel controls attached is eDP.
Change-Id: Idd40b4258c08ba88ec7b0ab631e683aba848f9c1
Signed-off-by: Nico Huber <nico.huber@secunet.com>
Reviewed-on: https://review.sourcearcade.org/c/libgfxinit/+/466
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Tested-by: Nico Huber <nico.h@gmx.de>
diff --git a/common/hw-gfx-gma-config_helpers.adb b/common/hw-gfx-gma-config_helpers.adb
index 014d1b2..b43f9e2 100644
--- a/common/hw-gfx-gma-config_helpers.adb
+++ b/common/hw-gfx-gma-config_helpers.adb
@@ -224,6 +224,8 @@
Panel => To_Panel (Port),
Mode => Mode,
Is_FDI => Config.Is_FDI_Port (Port),
+ Is_eDP => To_Display_Type (Port) = DP and
+ To_Panel (Port) /= No_Panel,
FDI => Default_DP,
DP => Default_DP);
@@ -260,6 +262,7 @@
Panel => No_Panel,
Mode => Invalid_Mode,
Is_FDI => False,
+ Is_eDP => False,
FDI => Default_DP,
DP => Default_DP);
end if;