]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: clock readout support for DDI v3
authorJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 21 Jan 2014 20:42:10 +0000 (12:42 -0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 24 Jan 2014 16:22:58 +0000 (17:22 +0100)
commit101c10977e0186a1d8005f1efc1dc3cc1d9655ea
tree1cb7f9c2557ecba58f83bfb15cd9a530839a0fb5
parentf80cdfd3d87585092fc87338c2ec217c806c9a5f
drm/i915: clock readout support for DDI v3

Read out and calculate the port and pixel clocks on DDI configs as well.
This means we have to grab the DP divider values and look at the port
mapping to figure out which clock select reg to read out.

v2: do the work from ddi_get_config (Ville)
v3: check WRPLL reference clock (Ville)
    add additional SPLL freqs (Ville)
    clean up port/crtc clock calc (Ville)
    fix up crtc_clock conditionals (Ville)
    drop superfluous dp_get_m_n from get_config (Ville)

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_ddi.c