aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_display.c
diff options
context:
space:
mode:
authorZhao Yakui <yakui.zhao@intel.com>2010-01-04 03:29:30 -0500
committerEric Anholt <eric@anholt.net>2010-01-06 12:40:11 -0500
commit898822ce9561ab9b58a7eb60580a162a83dadecd (patch)
tree753427e34260c563e2f2e9676b760f85cff24bc2 /drivers/gpu/drm/i915/intel_display.c
parente3d8affb0d2d95f2da61e30ce86b33177feb91e8 (diff)
drm/i915: Enable/disable the dithering for LVDS based on VBT setting
Enable/disable the dithering for LVDS based on VBT setting. On the 965/g4x platform the dithering flag is defined in LVDS register. And on the ironlake the dithering flag is defined in pipeconf register. Signed-off-by: Zhao Yakui <yakui.zhao@intel.com> Signed-off-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_display.c')
-rw-r--r--drivers/gpu/drm/i915/intel_display.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index 84705b7e01ec..0c9b79f2ab31 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -3195,7 +3195,20 @@ static int intel_crtc_mode_set(struct drm_crtc *crtc,
3195 * appropriately here, but we need to look more thoroughly into how 3195 * appropriately here, but we need to look more thoroughly into how
3196 * panels behave in the two modes. 3196 * panels behave in the two modes.
3197 */ 3197 */
3198 3198 /* set the dithering flag */
3199 if (IS_I965G(dev)) {
3200 if (dev_priv->lvds_dither) {
3201 if (IS_IRONLAKE(dev))
3202 pipeconf |= PIPE_ENABLE_DITHER;
3203 else
3204 lvds |= LVDS_ENABLE_DITHER;
3205 } else {
3206 if (IS_IRONLAKE(dev))
3207 pipeconf &= ~PIPE_ENABLE_DITHER;
3208 else
3209 lvds &= ~LVDS_ENABLE_DITHER;
3210 }
3211 }
3199 I915_WRITE(lvds_reg, lvds); 3212 I915_WRITE(lvds_reg, lvds);
3200 I915_READ(lvds_reg); 3213 I915_READ(lvds_reg);
3201 } 3214 }