drm/dp: Add drm_dp_psr_setup_time()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 18 May 2016 08:57:29 +0000 (11:57 +0300)
committerDave Airlie <airlied@redhat.com>
Tue, 2 Aug 2016 21:06:28 +0000 (07:06 +1000)
commit6608804b3d7f0552a38641b03a4e3aa1852df15b
tree4baee53c0298921f701a4969d49cea587b9a0da1
parent44cee85a8824464e7e951e590243c2a85d79c494
drm/dp: Add drm_dp_psr_setup_time()

Add a small helper to parse the PSR setup time from the DPCD PSR
capabilities and return the value in microseconds.

v2: Don't waste so many bytes on the psr_setup_time_us[] table

Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_dp_helper.c
include/drm/drm_dp_helper.h