gma connectors: Add a Prepare() step
Prepare() will be used to adapt a `Port_Config' to platform quirks.
For instance the FDI usage on Ironlake, USB-C usage on Tiger Lake.
Change-Id: I2fb3ed026077f0371112682b90bea751a28bf994
Signed-off-by: Nico Huber <nico.huber@secunet.com>
Reviewed-on: https://review.sourcearcade.org/c/libgfxinit/+/462
Tested-by: Nico Huber <nico.h@gmx.de>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
diff --git a/common/tigerlake/hw-gfx-gma-connectors.adb b/common/tigerlake/hw-gfx-gma-connectors.adb
index 5e66b96..35e0692 100644
--- a/common/tigerlake/hw-gfx-gma-connectors.adb
+++ b/common/tigerlake/hw-gfx-gma-connectors.adb
@@ -30,6 +30,19 @@
pragma Debug (Debug.Put_Line (GNAT.Source_Info.Enclosing_Entity));
end Initialize;
+ ---------------------------------------------------------------------
+
+ procedure Prepare
+ (Port : in Active_Port_Type;
+ Port_Cfg : in out Port_Config;
+ Success : out Boolean)
+ is
+ begin
+ Success := False;
+ end;
+
+ ---------------------------------------------------------------------
+
procedure Pre_On
(Pipe : in Pipe_Index;
Port_Cfg : in Port_Config;