drm/i915: Add HDMI support on IGDNG
authorZhenyu Wang <zhenyuw@linux.intel.com>
Fri, 5 Jun 2009 07:38:43 +0000 (15:38 +0800)
committerEric Anholt <eric@anholt.net>
Fri, 5 Jun 2009 11:35:17 +0000 (11:35 +0000)
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_hdmi.c

index 2cd6ba6..53cf6ef 100644 (file)
@@ -2432,7 +2432,22 @@ static void intel_setup_outputs(struct drm_device *dev)
                intel_lvds_init(dev);
 
        if (IS_IGDNG(dev)) {
-               /* ignore for other outputs */
+               int found;
+
+               if (I915_READ(HDMIB) & PORT_DETECTED) {
+                       /* check SDVOB */
+                       /* found = intel_sdvo_init(dev, HDMIB); */
+                       found = 0;
+                       if (!found)
+                               intel_hdmi_init(dev, HDMIB);
+               }
+
+               if (I915_READ(HDMIC) & PORT_DETECTED)
+                       intel_hdmi_init(dev, HDMIC);
+
+               if (I915_READ(HDMID) & PORT_DETECTED)
+                       intel_hdmi_init(dev, HDMID);
+
        } else if (IS_I9XX(dev)) {
                int found;
                u32 reg;
Simple merge