]> rtime.felk.cvut.cz Git - linux-imx.git/commit
drm/i915: add lpt_init_pch_refclk
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Sat, 1 Dec 2012 14:04:25 +0000 (12:04 -0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 10 Dec 2012 10:14:29 +0000 (11:14 +0100)
commitdde86e2db54545ef981b64805097a7b4c3156d6e
tree636b940145e9bc2fd434a7bc35b210eba73c33cb
parent988d6ee8b2e8694830036821933372b22f3d1935
drm/i915: add lpt_init_pch_refclk

We need this code to init the PCH SSC refclk and the FDI registers.
The BIOS does this too and that's why VGA worked before this patch,
until you tried to suspend the machine...

This patch implements the "Sequence to enable CLKOUT_DP for FDI usage
and configure PCH FDI/IO" from our documentation.

v2:
- Squash Damien Lespiau's reset spelling fix on top.
- Add a comment that we don't need to bother about the ULT special
  case Damien noticed, since ULT won't have VGA.
- Add a comment to rip out the SDV codepaths once haswell ships for
  real.

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com> (v1)
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_display.c