Commit 298b0b39 authored by Jesse Barnes's avatar Jesse Barnes Committed by Chris Wilson

drm/i915/dp: make eDP PLL functions work as advertised

Signed-off-by: default avatarJesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
parent 895692be
...@@ -891,8 +891,10 @@ static void ironlake_edp_pll_on(struct drm_encoder *encoder) ...@@ -891,8 +891,10 @@ static void ironlake_edp_pll_on(struct drm_encoder *encoder)
DRM_DEBUG_KMS("\n"); DRM_DEBUG_KMS("\n");
dpa_ctl = I915_READ(DP_A); dpa_ctl = I915_READ(DP_A);
dpa_ctl &= ~DP_PLL_ENABLE; dpa_ctl |= DP_PLL_ENABLE;
I915_WRITE(DP_A, dpa_ctl); I915_WRITE(DP_A, dpa_ctl);
POSTING_READ(DP_A);
udelay(200);
} }
static void ironlake_edp_pll_off(struct drm_encoder *encoder) static void ironlake_edp_pll_off(struct drm_encoder *encoder)
...@@ -902,7 +904,7 @@ static void ironlake_edp_pll_off(struct drm_encoder *encoder) ...@@ -902,7 +904,7 @@ static void ironlake_edp_pll_off(struct drm_encoder *encoder)
u32 dpa_ctl; u32 dpa_ctl;
dpa_ctl = I915_READ(DP_A); dpa_ctl = I915_READ(DP_A);
dpa_ctl |= DP_PLL_ENABLE; dpa_ctl &= ~DP_PLL_ENABLE;
I915_WRITE(DP_A, dpa_ctl); I915_WRITE(DP_A, dpa_ctl);
POSTING_READ(DP_A); POSTING_READ(DP_A);
udelay(200); udelay(200);
......
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