gma broxton: Enable HPD signal inversion
Intel's Apollo Lake uses different hardware for the hotplug-detect
(HPD) input pin. It's not 3.3V tolerant and they changed the design
guide to make the required level shifter also an inverter. To make
the HPD logic reliably detect short and long pulses, the signal needs
to be inverted again, internally, by setting a corresponding bit.
Change-Id: Ia18569d4869d529732fd90d872c2d2c4060c5997
Signed-off-by: Nico Huber <nico.huber@secunet.com>
Reviewed-on: https://review.sourcearcade.org/c/libgfxinit/+/538
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-by: Thomas Heijligen <src@posteo.de>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Tested-by: Nico Huber <nico.h@gmx.de>
diff --git a/common/hw-gfx-gma-config.ads.template b/common/hw-gfx-gma-config.ads.template
index e495526..0fd40c3 100644
--- a/common/hw-gfx-gma-config.ads.template
+++ b/common/hw-gfx-gma-config.ads.template
@@ -296,6 +296,7 @@
Has_HOTPLUG_CTL : <genbool> := Gen_Haswell;
Has_SHOTPLUG_CTL_A : <hswbool> :=
((Gen_Haswell and then Is_LP) or Skylake_On);
+ Has_Hotplug_Invert : <genbool> := Gen_Broxton;
Has_DDI_PHYs : <genbool> := Gen_Broxton;