drm/i915: extract FDI mPHY functions from lpt_init_pch_refclk
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Thu, 18 Jul 2013 21:51:11 +0000 (18:51 -0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 19 Jul 2013 06:53:49 +0000 (08:53 +0200)
commitf31f2d55eb77190e66cb13e5dd2beca7a91f8dd0
treea6a7e0b634bf3868bb2c31171244e5c29488c198
parent0ff066a9e4a29481226a6d46eab6bd9499aeaddb
drm/i915: extract FDI mPHY functions from lpt_init_pch_refclk

Because lpt_init_pch_refclk implements the "Sequence to enable
CLKOUT_DP for FDI usage and configure PCH FDI I/O", which is very
similar to "Sequence to enable CLKOUT_DP" and "Sequence to enable
CLKOUT_DP without spread". With the extracted functions we can more
easily implement the two missing sequences.

v2: Rebase (WaMPhyProgramming:hsw comment).

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c