gma edid: Check expected display type
Check that the EDID's digital-input bit matches the expected display
type (i.e. it should only be set for non-VGA displays).
Change-Id: I099112f190f866525e882d5e24a428092d4d8331
Signed-off-by: Nico Huber <nico.huber@secunet.com>
Reviewed-on: https://review.coreboot.org/17085
Tested-by: Nico Huber <nico.h@gmx.de>
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
diff --git a/common/hw-gfx.ads b/common/hw-gfx.ads
index b9d7225..051b326 100644
--- a/common/hw-gfx.ads
+++ b/common/hw-gfx.ads
@@ -94,6 +94,9 @@
Enhanced_Framing => False,
Opportunistic_Training => False);
+ type Display_Type is (None, LVDS, DP, HDMI, VGA);
+ subtype Internal_Type is Display_Type range None .. DP;
+
type Mode_Type is
record
Dotclock : Frequency_Type;