drm/i915: Remove the magic AUX_CTL is at DP + foo tricks
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 11 Nov 2015 18:34:13 +0000 (20:34 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 16 Nov 2015 14:00:34 +0000 (16:00 +0200)
commitda00bdcfb25989afc025274fecbdcbfd9a24d3a1
tree738604f55efd34572846786847fd1032f5ac57a4
parent750a951fd34808d8822abafccd0dfa479deef0a0
drm/i915: Remove the magic AUX_CTL is at DP + foo tricks

Currently we determine the location of the AUX registers in a confusing
way. First we assume the PCH registers are used always, but then we
override it for everything but HSW/BDW to use DP+0x10. Very confusing.

Let's just make it straightforward and simply add a few functions to
pick the right AUX_CTL based on the DP port.

To deal with VLV/CHV we'll include the display_mmio_offset into the
AUX register defines.

v2: Reorder patches (Chris)

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> (v1)
Link: http://patchwork.freedesktop.org/patch/msgid/1447266856-30249-5-git-send-email-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_dp.c