]> git.karo-electronics.de Git - linux-beck.git/commitdiff
drm/i915: Returning the right VGA control reg for platforms
authorSonika Jindal <sonika.jindal@intel.com>
Mon, 21 Jul 2014 09:53:40 +0000 (15:23 +0530)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 23 Jul 2014 05:05:43 +0000 (07:05 +0200)
Signed-off-by: Sonika Jindal <sonika.jindal@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.h

index 9bc6267ca920ff5c97bd6d53db5cc08f60d39285..30b23bf7df284570eb9dc324ec8111d262749561 100644 (file)
@@ -2803,10 +2803,10 @@ int vlv_freq_opcode(struct drm_i915_private *dev_priv, int val);
 
 static inline uint32_t i915_vgacntrl_reg(struct drm_device *dev)
 {
-       if (HAS_PCH_SPLIT(dev))
-               return CPU_VGACNTRL;
-       else if (IS_VALLEYVIEW(dev))
+       if (IS_VALLEYVIEW(dev))
                return VLV_VGACNTRL;
+       else if (INTEL_INFO(dev)->gen >= 5)
+               return CPU_VGACNTRL;
        else
                return VGACNTRL;
 }