Skip to content

Commit

Permalink
drm/i915: enable LVDS on Cougarpoint
Browse files Browse the repository at this point in the history
Fix the transcoder select bit for LVDS on CPT.

Signed-off-by: Zhenyu Wang <[email protected]>
Signed-off-by: Eric Anholt <[email protected]>
  • Loading branch information
zhenyw authored and anholt committed Apr 12, 2010
1 parent a4a6b90 commit b3b095b
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions drivers/gpu/drm/i915/intel_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -3492,10 +3492,17 @@ static int intel_crtc_mode_set(struct drm_crtc *crtc,

lvds = I915_READ(lvds_reg);
lvds |= LVDS_PORT_EN | LVDS_A0A2_CLKA_POWER_UP;
if (pipe == 1)
lvds |= LVDS_PIPEB_SELECT;
else
lvds &= ~LVDS_PIPEB_SELECT;
if (pipe == 1) {
if (HAS_PCH_CPT(dev))
lvds |= PORT_TRANS_B_SEL_CPT;
else
lvds |= LVDS_PIPEB_SELECT;
} else {
if (HAS_PCH_CPT(dev))
lvds &= ~PORT_TRANS_SEL_MASK;
else
lvds &= ~LVDS_PIPEB_SELECT;
}
/* set the corresponsding LVDS_BORDER bit */
lvds |= dev_priv->lvds_border_bits;
/* Set the B0-B3 data pairs corresponding to whether we're going to
Expand Down

0 comments on commit b3b095b

Please sign in to comment.