drm/i915: Store aux data reg offsets in intel_dp->aux_ch_data_reg[]
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 11 Nov 2015 18:34:14 +0000 (20:34 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 16 Nov 2015 14:01:06 +0000 (16:01 +0200)
commit330e20ec77307663f4db64ab769d849c0c6a4627
treeecc76edf19cd62c9101ad445993d8d02a15f38f7
parentda00bdcfb25989afc025274fecbdcbfd9a24d3a1
drm/i915: Store aux data reg offsets in intel_dp->aux_ch_data_reg[]

Rather than computing on demand, store also the aux data reg
offsets under intel_dp.

v2: Duplicate some code to make things less magic (Jani)
v3: Use PORT_B registers for invalid ports in g4x_aux_data_reg()

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