]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Gather the HDMI level shifter logic into one place
authorDamien Lespiau <damien.lespiau@intel.com>
Fri, 1 Aug 2014 10:07:54 +0000 (11:07 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 8 Aug 2014 15:43:46 +0000 (17:43 +0200)
commitb9ebbcadc3b0d5e1b6b513c14369712c4fac5cbe
treea10098e6de01cd540f93e587647ba646a3f977f1
parentad1acc528db7a2474d005bba9297ada18181e4d6
drm/i915: Gather the HDMI level shifter logic into one place

The knowledge about the HDMI/DVI DDI translation table was scattered
around.
  - info->hdmi_level_shift was initialized with 6, the index of the 800
    mV, 0dB translation
  - A check on the VBT value was done to ensure it wasn't overflowing
    the translation table (< 0xC)
  - The actual programming was done in intel_ddi.c

As we need to change that knowledge for Broadwell, let's gather
everything into one place.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_bios.c
drivers/gpu/drm/i915/intel_ddi.c