gma500/cdv: enable the DisplayPort support
authorAlan Cox <alan@linux.intel.com>
Wed, 8 Aug 2012 13:55:26 +0000 (13:55 +0000)
committerDave Airlie <airlied@redhat.com>
Thu, 23 Aug 2012 23:29:19 +0000 (09:29 +1000)
This will give the basic support only

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/gma500/cdv_device.c

index e2fff244a5999e0467fea26b007d27ff62a99701..68f100e67135da6326a9950312d03869ecbe1fbb 100644 (file)
@@ -58,10 +58,17 @@ static int cdv_output_init(struct drm_device *dev)
        cdv_intel_lvds_init(dev, &dev_priv->mode_dev);
 
        /* These bits indicate HDMI not SDVO on CDV */
-       if (REG_READ(SDVOB) & SDVO_DETECTED)
+       if (REG_READ(SDVOB) & SDVO_DETECTED) {
                cdv_hdmi_init(dev, &dev_priv->mode_dev, SDVOB);
-       if (REG_READ(SDVOC) & SDVO_DETECTED)
+               if (REG_READ(DP_B) & DP_DETECTED)
+                       cdv_intel_dp_init(dev, &dev_priv->mode_dev, DP_B);
+       }
+
+       if (REG_READ(SDVOC) & SDVO_DETECTED) {
                cdv_hdmi_init(dev, &dev_priv->mode_dev, SDVOC);
+               if (REG_READ(DP_C) & DP_DETECTED)
+                       cdv_intel_dp_init(dev, &dev_priv->mode_dev, DP_C);
+       }
        return 0;
 }