drm/i915: Introduce intel_hpd_pin function.
authorRodrigo Vivi <rodrigo.vivi@intel.com>
Fri, 11 Aug 2017 18:26:50 +0000 (11:26 -0700)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Fri, 11 Aug 2017 18:53:47 +0000 (11:53 -0700)
commitf761bef2f341015eb1ad8a8840187a989c4893f2
treea7be0e62a4da5e1906e57dedba942c5af1d01a2d
parent256cfdde42c0f8f74d417875f71ea864e686917b
drm/i915: Introduce intel_hpd_pin function.

The idea is to have an unique place to decide the pin-port
per platform.

So let's create this function now without any functional
change. Just adding together code from hdmi and dp together.

v2: Add missing pin for port A.
v3: Fix typo on subject.
    Avoid behaviour change so add WARN_ON and return
    if port A on HDMI. (by DK).

Cc: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20170811182650.14327-2-rodrigo.vivi@intel.com
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_dp.c
drivers/gpu/drm/i915/intel_hdmi.c
drivers/gpu/drm/i915/intel_hotplug.c