Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 58704e6a authored by Jani Nikula's avatar Jani Nikula Committed by Dave Airlie
Browse files

drm/dp: add helper for checking DP_ENHANCED_FRAME_CAP in DPCD

parent 0111be42
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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_ */