diff options
author | Zhenyu Wang <zhenyuw@linux.intel.com> | 2010-04-07 04:15:56 -0400 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2010-04-12 12:23:42 -0400 |
commit | b3b095b3b2b052f3c665b0d9e3e551fb65062db3 (patch) | |
tree | faee680e4401ffb3b4e6dc0f8c8bcd78a3ced6a2 /drivers | |
parent | a4a6b90150326294b1116504ba9d678bb3f42c35 (diff) |
drm/i915: enable LVDS on Cougarpoint
Fix the transcoder select bit for LVDS on CPT.
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/i915/intel_display.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index 716ab9ea19b0..606924ef65a6 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c | |||
@@ -3492,10 +3492,17 @@ static int intel_crtc_mode_set(struct drm_crtc *crtc, | |||
3492 | 3492 | ||
3493 | lvds = I915_READ(lvds_reg); | 3493 | lvds = I915_READ(lvds_reg); |
3494 | lvds |= LVDS_PORT_EN | LVDS_A0A2_CLKA_POWER_UP; | 3494 | lvds |= LVDS_PORT_EN | LVDS_A0A2_CLKA_POWER_UP; |
3495 | if (pipe == 1) | 3495 | if (pipe == 1) { |
3496 | lvds |= LVDS_PIPEB_SELECT; | 3496 | if (HAS_PCH_CPT(dev)) |
3497 | else | 3497 | lvds |= PORT_TRANS_B_SEL_CPT; |
3498 | lvds &= ~LVDS_PIPEB_SELECT; | 3498 | else |
3499 | lvds |= LVDS_PIPEB_SELECT; | ||
3500 | } else { | ||
3501 | if (HAS_PCH_CPT(dev)) | ||
3502 | lvds &= ~PORT_TRANS_SEL_MASK; | ||
3503 | else | ||
3504 | lvds &= ~LVDS_PIPEB_SELECT; | ||
3505 | } | ||
3499 | /* set the corresponsding LVDS_BORDER bit */ | 3506 | /* set the corresponsding LVDS_BORDER bit */ |
3500 | lvds |= dev_priv->lvds_border_bits; | 3507 | lvds |= dev_priv->lvds_border_bits; |
3501 | /* Set the B0-B3 data pairs corresponding to whether we're going to | 3508 | /* Set the B0-B3 data pairs corresponding to whether we're going to |