diff options
author | Jani Nikula <jani.nikula@intel.com> | 2013-10-04 15:08:08 +0300 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2013-10-09 18:17:06 +1000 |
commit | 58704e6a5478a96ca0e549ce6605332aab815eea (patch) | |
tree | 8a396b200fc194210037439c3b2bda9430893206 /include/drm/drm_dp_helper.h | |
parent | 0111be42186fc5461b9e9d579014c70869ab3152 (diff) | |
download | linux-stable-58704e6a5478a96ca0e549ce6605332aab815eea.tar.gz linux-stable-58704e6a5478a96ca0e549ce6605332aab815eea.tar.bz2 linux-stable-58704e6a5478a96ca0e549ce6605332aab815eea.zip |
drm/dp: add helper for checking DP_ENHANCED_FRAME_CAP in DPCD
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.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 | 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 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_ */ |