aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorZhao Yakui <yakui.zhao@intel.com>2010-07-19 04:43:12 -0400
committerEric Anholt <eric@anholt.net>2010-08-01 22:40:11 -0400
commit1fc7947898e3c407a20e130458e30cc45aa3335c (patch)
tree832f9ff60fd03a67e9c4c2d9e08672510734f06e /drivers
parentb9efc4804b1e61ee01a0d824c5d27bfdb518fffe (diff)
drm/i915: Enable panel fitting for eDP
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/i915/intel_display.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index 9a95a27a8464..ce96c3aea162 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -1903,7 +1903,8 @@ static void ironlake_crtc_dpms(struct drm_crtc *crtc, int mode)
1903 } 1903 }
1904 1904
1905 /* Enable panel fitting for LVDS */ 1905 /* Enable panel fitting for LVDS */
1906 if (intel_pipe_has_type(crtc, INTEL_OUTPUT_LVDS)) { 1906 if (intel_pipe_has_type(crtc, INTEL_OUTPUT_LVDS)
1907 || HAS_eDP || intel_pch_has_edp(crtc)) {
1907 temp = I915_READ(pf_ctl_reg); 1908 temp = I915_READ(pf_ctl_reg);
1908 I915_WRITE(pf_ctl_reg, temp | PF_ENABLE | PF_FILTER_MED_3x3); 1909 I915_WRITE(pf_ctl_reg, temp | PF_ENABLE | PF_FILTER_MED_3x3);
1909 1910