diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2016-05-18 11:57:29 +0300 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2016-08-03 00:06:28 +0300 |
commit | 6608804b3d7f0552a38641b03a4e3aa1852df15b (patch) | |
tree | 4baee53c0298921f701a4969d49cea587b9a0da1 /include/drm/drm_dp_helper.h | |
parent | 44cee85a8824464e7e951e590243c2a85d79c494 (diff) | |
download | linux-6608804b3d7f0552a38641b03a4e3aa1852df15b.tar.xz |
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>
Diffstat (limited to 'include/drm/drm_dp_helper.h')
-rw-r--r-- | include/drm/drm_dp_helper.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/drm/drm_dp_helper.h b/include/drm/drm_dp_helper.h index 72dee1213268..63b8bd502444 100644 --- a/include/drm/drm_dp_helper.h +++ b/include/drm/drm_dp_helper.h @@ -657,6 +657,8 @@ struct edp_vsc_psr { #define EDP_VSC_PSR_UPDATE_RFB (1<<1) #define EDP_VSC_PSR_CRC_VALUES_VALID (1<<2) +int drm_dp_psr_setup_time(const u8 psr_cap[EDP_PSR_RECEIVER_CAP_SIZE]); + static inline int drm_dp_max_link_rate(const u8 dpcd[DP_RECEIVER_CAP_SIZE]) { |