Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 269841
b: refs/heads/master
c: d3ccbe8
h: refs/heads/master
i:
  269839: d0674b8
v: v3
  • Loading branch information
Jesse Barnes authored and Keith Packard committed Oct 20, 2011
1 parent 08148b8 commit eb65de0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 75770564c90c45618003267f4cdde4bbc090f1bd
refs/heads/master: d3ccbe8670520fc61cbe974c97761b0dfc57f6df
13 changes: 13 additions & 0 deletions trunk/drivers/gpu/drm/i915/intel_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -803,6 +803,19 @@ static void assert_pch_pll(struct drm_i915_private *dev_priv,
u32 val;
bool cur_state;

if (HAS_PCH_CPT(dev_priv->dev)) {
u32 pch_dpll;

pch_dpll = I915_READ(PCH_DPLL_SEL);

/* Make sure the selected PLL is enabled to the transcoder */
WARN(!((pch_dpll >> (4 * pipe)) & 8),
"transcoder %d PLL not enabled\n", pipe);

/* Convert the transcoder pipe number to a pll pipe number */
pipe = (pch_dpll >> (4 * pipe)) & 1;
}

reg = PCH_DPLL(pipe);
val = I915_READ(reg);
cur_state = !!(val & DPLL_VCO_ENABLE);
Expand Down

0 comments on commit eb65de0

Please sign in to comment.