Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c5796b71 authored by Imre Deak's avatar Imre Deak Committed by Daniel Vetter
Browse files

drm/i915: access the PP_CONTROL reg only pre GEN5



This register exists only pre GEN5, but atm we also access it on
VLV/BXT/CHV. Prevent accessing it on these latter platforms.

Signed-off-by: default avatarImre Deak <imre.deak@intel.com>
Reviewed-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent 01101fa7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -955,7 +955,7 @@ void intel_lvds_init(struct drm_device *dev)
	if (HAS_PCH_SPLIT(dev)) {
		I915_WRITE(PCH_PP_CONTROL,
			   I915_READ(PCH_PP_CONTROL) | PANEL_UNLOCK_REGS);
	} else {
	} else if (INTEL_INFO(dev_priv)->gen < 5) {
		I915_WRITE(PP_CONTROL,
			   I915_READ(PP_CONTROL) | PANEL_UNLOCK_REGS);
	}