Commit b3b095b3 authored by Zhenyu Wang's avatar Zhenyu Wang Committed by Eric Anholt

drm/i915: enable LVDS on Cougarpoint

Fix the transcoder select bit for LVDS on CPT.
Signed-off-by: default avatarZhenyu Wang <zhenyuw@linux.intel.com>
Signed-off-by: default avatarEric Anholt <eric@anholt.net>
parent a4a6b901
...@@ -3492,10 +3492,17 @@ static int intel_crtc_mode_set(struct drm_crtc *crtc, ...@@ -3492,10 +3492,17 @@ static int intel_crtc_mode_set(struct drm_crtc *crtc,
lvds = I915_READ(lvds_reg); lvds = I915_READ(lvds_reg);
lvds |= LVDS_PORT_EN | LVDS_A0A2_CLKA_POWER_UP; lvds |= LVDS_PORT_EN | LVDS_A0A2_CLKA_POWER_UP;
if (pipe == 1) if (pipe == 1) {
lvds |= LVDS_PIPEB_SELECT; if (HAS_PCH_CPT(dev))
else lvds |= PORT_TRANS_B_SEL_CPT;
lvds &= ~LVDS_PIPEB_SELECT; 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 */ /* set the corresponsding LVDS_BORDER bit */
lvds |= dev_priv->lvds_border_bits; lvds |= dev_priv->lvds_border_bits;
/* Set the B0-B3 data pairs corresponding to whether we're going to /* Set the B0-B3 data pairs corresponding to whether we're going to
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment