gma i2c: Make I2C port for VGA displays a config option

Boards with a DVI-I connector share the I2C pins for both analog and
digital displays. In that case, the EDID for a VGA display has to be
read over the I2C interface of the coupled digital port.

TEST=Booted kontron/ktqm77 with DVI-I to VGA cable. Display is detected
     and enabled (but doesn't show anything, yet?).

Change-Id: I5c4f77d5ad1927f075877a3719361ed2193f4c39
Signed-off-by: Nico Huber <nico.huber@secunet.com>
Reviewed-on: https://review.coreboot.org/17086
Tested-by: Nico Huber <nico.h@gmx.de>
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
diff --git a/common/hw-gfx-gma-connector_info.adb b/common/hw-gfx-gma-connector_info.adb
index 2ee0c05..c5dcad2 100644
--- a/common/hw-gfx-gma-connector_info.adb
+++ b/common/hw-gfx-gma-connector_info.adb
@@ -59,7 +59,9 @@
                Success  => Success);
          else
             I2C.I2C_Read
-              (Port     => Port_Cfg.PCH_Port,
+              (Port     => (if Port_Cfg.Display = VGA
+                            then Config.Analog_I2C_Port
+                            else Port_Cfg.PCH_Port),
                Address  => 16#50#,
                Length   => Raw_EDID_Length,
                Data     => Raw_EDID,