drm/i915: Enable panel fitting for eDP
authorZhao Yakui <yakui.zhao@intel.com>
Mon, 19 Jul 2010 08:43:12 +0000 (09:43 +0100)
committerEric Anholt <eric@anholt.net>
Mon, 2 Aug 2010 02:40:11 +0000 (19:40 -0700)
When trying to set other display mode besides the fixed panel mode, the
panel fitting should be enabled. This is similar to LVDS.

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: stable@kernel.org
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/i915/intel_display.c

index 9a95a27a8464bc91e5733cef00aa71ad9893cc80..ce96c3aea162720b13f01df7709858cf9dc0aa13 100644 (file)
@@ -1903,7 +1903,8 @@ static void ironlake_crtc_dpms(struct drm_crtc *crtc, int mode)
                }
 
                /* Enable panel fitting for LVDS */
-               if (intel_pipe_has_type(crtc, INTEL_OUTPUT_LVDS)) {
+               if (intel_pipe_has_type(crtc, INTEL_OUTPUT_LVDS)
+                   || HAS_eDP || intel_pch_has_edp(crtc)) {
                        temp = I915_READ(pf_ctl_reg);
                        I915_WRITE(pf_ctl_reg, temp | PF_ENABLE | PF_FILTER_MED_3x3);