From: Jani Nikula Date: Fri, 4 Oct 2013 12:08:08 +0000 (+0300) Subject: drm/dp: add helper for checking DP_ENHANCED_FRAME_CAP in DPCD X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=58704e6a5478a96ca0e549ce6605332aab815eea;p=linux-beck.git drm/dp: add helper for checking DP_ENHANCED_FRAME_CAP in DPCD Signed-off-by: Jani Nikula Reviewed-by: Ville Syrjälä Reviewed-by: Alex Deucher Signed-off-by: Dave Airlie --- diff --git a/include/drm/drm_dp_helper.h b/include/drm/drm_dp_helper.h index 110f4f1f51d7..a92c3754e3bb 100644 --- a/include/drm/drm_dp_helper.h +++ b/include/drm/drm_dp_helper.h @@ -390,4 +390,11 @@ drm_dp_max_lane_count(const u8 dpcd[DP_RECEIVER_CAP_SIZE]) return dpcd[DP_MAX_LANE_COUNT] & DP_MAX_LANE_COUNT_MASK; } +static inline bool +drm_dp_enhanced_frame_cap(const u8 dpcd[DP_RECEIVER_CAP_SIZE]) +{ + return dpcd[DP_DPCD_REV] >= 0x11 && + (dpcd[DP_MAX_LANE_COUNT] & DP_ENHANCED_FRAME_CAP); +} + #endif /* _DRM_DP_HELPER_H_ */