gma tgl: Add connector programming
This patch adds support for enabling displays on both combo PHY ports
and Type-C ports over DP-Alt mode.
Verified eDP, HDMI (not Type-C), and DP Alt mode on google/delbin.
Change-Id: I908e8bef8451d21eecde9ce6defddc2b3df7f738
Signed-off-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Signed-off-by: Nico Huber <nico.huber@secunet.com>
Reviewed-on: https://review.sourcearcade.org/c/libgfxinit/+/469
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Tested-by: Nico Huber <nico.h@gmx.de>
diff --git a/common/hw-gfx-gma.ads b/common/hw-gfx-gma.ads
index db791ed..3777b45 100644
--- a/common/hw-gfx-gma.ads
+++ b/common/hw-gfx-gma.ads
@@ -148,8 +148,8 @@
procedure Power_Up_VGA
with
Global =>
- (Input => (State, Time.State),
- In_Out => (Device_State),
+ (Input => (Time.State),
+ In_Out => (Device_State, State),
Proof_In => (Init_State)),
Pre => Is_Initialized;
@@ -305,7 +305,9 @@
subtype GMCH_HDMI_Port is GPU_Port range DIGI_B .. DIGI_C;
subtype Combo_Port is GPU_Port range DIGI_A .. DIGI_C;
subtype USBC_Port is GPU_Port range DDI_TC1 .. DDI_TC6;
- subtype TGL_Digital_Port is GPU_Port range DIGI_A .. DDI_TC6;
+ subtype TGL_Digital_Port is GPU_Port range DIGI_A .. DDI_TC6
+ with
+ Static_Predicate => (TGL_Digital_Port /= DIGI_D and TGL_Digital_Port /= DIGI_E);
function Is_Digital_Port (Port : GPU_Port) return Boolean is
(Port in Digital_Port or Port in TGL_Digital_Port);