diff options
author | Jani Nikula <jani.nikula@intel.com> | 2015-08-26 14:33:31 +0300 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-09-01 11:18:50 +0200 |
commit | 7cc53cf01e61bd1a774d2ba492bbe3e93e58ca79 (patch) | |
tree | e838a8a5c7e03665386d2a34e230c5d7d43778b8 | |
parent | 01302d4d17ed524e7d855f5fbbac5822f14f9c5e (diff) | |
download | linux-7cc53cf01e61bd1a774d2ba492bbe3e93e58ca79.tar.gz linux-7cc53cf01e61bd1a774d2ba492bbe3e93e58ca79.tar.bz2 linux-7cc53cf01e61bd1a774d2ba492bbe3e93e58ca79.zip |
drm/dp: add drm_dp_tps3_supported helper
Cc: Thierry Reding <thierry.reding@gmail.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r-- | include/drm/drm_dp_helper.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/drm/drm_dp_helper.h b/include/drm/drm_dp_helper.h index 94898f6ea02a..6aa59b9c7335 100644 --- a/include/drm/drm_dp_helper.h +++ b/include/drm/drm_dp_helper.h @@ -633,6 +633,13 @@ drm_dp_enhanced_frame_cap(const u8 dpcd[DP_RECEIVER_CAP_SIZE]) (dpcd[DP_MAX_LANE_COUNT] & DP_ENHANCED_FRAME_CAP); } +static inline bool +drm_dp_tps3_supported(const u8 dpcd[DP_RECEIVER_CAP_SIZE]) +{ + return dpcd[DP_DPCD_REV] >= 0x12 && + dpcd[DP_MAX_LANE_COUNT] & DP_TPS3_SUPPORTED; +} + /* * DisplayPort AUX channel */ |