drm/i915: reorganize intel_lvds_supported
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Wed, 6 Mar 2013 23:03:19 +0000 (20:03 -0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Sun, 17 Mar 2013 20:52:19 +0000 (21:52 +0100)
Now it returns false for all platforms unless they're explicitly
listed on the function. There should be no real difference, except for
the fact that it now returns false on Haswell.

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_lvds.c

index 6b24fc57ff471f504fcf9e42253d5f4125226013..53bd5fd840281ca4f25cf3af15cb119b5e6e2382 100644 (file)
@@ -1020,15 +1020,15 @@ static bool intel_lvds_supported(struct drm_device *dev)
 {
        /* With the introduction of the PCH we gained a dedicated
         * LVDS presence pin, use it. */
-       if (HAS_PCH_SPLIT(dev))
+       if (HAS_PCH_IBX(dev) || HAS_PCH_CPT(dev))
                return true;
 
-       if (IS_VALLEYVIEW(dev))
-               return false;
-
        /* Otherwise LVDS was only attached to mobile products,
         * except for the inglorious 830gm */
-       return IS_MOBILE(dev) && !IS_I830(dev);
+       if (INTEL_INFO(dev)->gen <= 4 && IS_MOBILE(dev) && !IS_I830(dev))
+               return true;
+
+       return false;
 }
 
 /**