drm/i915: De-magic the PSR AUX message
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 1 Oct 2014 13:56:56 +0000 (16:56 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 2 Oct 2014 07:42:40 +0000 (09:42 +0200)
commit5ca476f8874eec7eaec06d402dff2e6b47886d28
tree8534349aac6e5f6e7d0126fd372b1264ae6896ba
parentd8f2716a1a46bed27ce210e74c7fec3855595200
drm/i915: De-magic the PSR AUX message

Use pack_aux() to construct the PSR exit DPMS D0 AUX message,
and use the defines from dp_dp_helper.h to populate the message
contents.

v2: Use sizeof() for message size (Jani)
    Use a generic loop to write EDP_PSR_AUX_DATA registers

Cc: Jani Nikula <jani.nikula@linux.intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@gmail.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_dp.c