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)
commit11578553d354f3408e5eff5ca87c44a0296a5e80
tree1cb7f9c2557ecba58f83bfb15cd9a530839a0fb5
parent153b110038f3f611c19472f5c9a35827c5f7b72b
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
This page took 0.025776 seconds and 5 git commands to generate.