aboutsummaryrefslogtreecommitdiff
path: root/include/drm
diff options
context:
space:
mode:
authorGravatar Imre Deak <imre.deak@intel.com> 2024-04-17 17:19:35 +0300
committerGravatar Imre Deak <imre.deak@intel.com> 2024-04-19 17:20:53 +0300
commit8976bf1877ef4f902fae53fd0ad61b36d0c5a70c (patch)
tree26e4b578f9b422c1bf70f49f010d5d693684a858 /include/drm
parentdrm/i915/dp_mst: Sanitize calculating the DSC DPT bpp limit (diff)
downloadlinux-8976bf1877ef4f902fae53fd0ad61b36d0c5a70c.tar.gz
linux-8976bf1877ef4f902fae53fd0ad61b36d0c5a70c.tar.bz2
linux-8976bf1877ef4f902fae53fd0ad61b36d0c5a70c.zip
drm/dp: Add drm_dp_128b132b_supported()
Factor out a function to check for 128b/132b channel coding support used by a follow-up patch in the patchset. v2: s/drm_dp_uhbr_channel_coding_supported()/drm_dp128b132b_supported() (Jani) Cc: dri-devel@lists.freedesktop.org Cc: Jani Nikula <jani.nikula@intel.com> Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com> Reviewed-by: Manasi Navare <navaremanasi@chromium.org> Acked-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Signed-off-by: Imre Deak <imre.deak@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240417141936.457796-1-imre.deak@intel.com
Diffstat (limited to 'include/drm')
-rw-r--r--include/drm/display/drm_dp_helper.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/drm/display/drm_dp_helper.h b/include/drm/display/drm_dp_helper.h
index 10147ae96326..8c6ccad0bfea 100644
--- a/include/drm/display/drm_dp_helper.h
+++ b/include/drm/display/drm_dp_helper.h
@@ -252,6 +252,12 @@ drm_dp_channel_coding_supported(const u8 dpcd[DP_RECEIVER_CAP_SIZE])
}
static inline bool
+drm_dp_128b132b_supported(const u8 dpcd[DP_RECEIVER_CAP_SIZE])
+{
+ return dpcd[DP_MAIN_LINK_CHANNEL_CODING] & DP_CAP_ANSI_128B132B;
+}
+
+static inline bool
drm_dp_alternate_scrambler_reset_cap(const u8 dpcd[DP_RECEIVER_CAP_SIZE])
{
return dpcd[DP_EDP_CONFIGURATION_CAP] &