drm/i915: Make data/link N value power of two
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 23 Apr 2013 12:03:34 +0000 (15:03 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 23 Apr 2013 20:19:26 +0000 (22:19 +0200)
commita65851af59387146a28a928c3e7bb17dabc5db72
tree7207836d2c2fdfbe933d790a6dc3186ebd681059
parentae4edb8089df67d25fbd9386012a335a64aca287
drm/i915: Make data/link N value power of two

The BIOS uses power of two values for the data/link N value.

Follow suit to make the Zotac DP to dual-HDMI dongle work.

v2: Clean up the magic numbers and defines
    Change the N clamping to be a bit easier on the eye
    Rename intel_reduce_ratio to intel_reduce_m_n_ratio

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=49402
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=59810
Tested-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_display.c