summaryrefslogtreecommitdiff
path: root/include/drm/display/drm_dp.h
diff options
context:
space:
mode:
authorImre Deak <imre.deak@intel.com>2024-07-08 22:00:28 +0300
committerImre Deak <imre.deak@intel.com>2024-07-11 20:56:26 +0300
commit0daf44ea9dccfcdb1fe694e9ea85497b6cc3a065 (patch)
treec8e45d18c94f6e93895ea776ba6f9b8f0f1f4cdf /include/drm/display/drm_dp.h
parent993d36ac99efeafeb7b5f12353def6d7d20d6389 (diff)
downloadlinux-next-0daf44ea9dccfcdb1fe694e9ea85497b6cc3a065.tar.gz
linux-next-0daf44ea9dccfcdb1fe694e9ea85497b6cc3a065.zip
drm/dp: Add helper to dump an LTTPR PHY descriptor
Add a helper to dump the DPCD descriptor for an LTTPR PHY. This is based on [1] and [2] moving the helper to DRM core as suggested by Ville. [1] https://lore.kernel.org/all/20240703155937.1674856-5-imre.deak@intel.com [2] https://lore.kernel.org/all/20240703155937.1674856-6-imre.deak@intel.com Cc: dri-devel@lists.freedesktop.org Cc: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com> Signed-off-by: Imre Deak <imre.deak@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240708190029.271247-6-imre.deak@intel.com
Diffstat (limited to 'include/drm/display/drm_dp.h')
-rw-r--r--include/drm/display/drm_dp.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/drm/display/drm_dp.h b/include/drm/display/drm_dp.h
index 0b032faa8cf2..0146ccfe9c2e 100644
--- a/include/drm/display/drm_dp.h
+++ b/include/drm/display/drm_dp.h
@@ -1523,6 +1523,10 @@ enum drm_dp_phy {
#define DP_SYMBOL_ERROR_COUNT_LANE2_PHY_REPEATER1 0xf0039 /* 1.3 */
#define DP_SYMBOL_ERROR_COUNT_LANE3_PHY_REPEATER1 0xf003b /* 1.3 */
+#define DP_OUI_PHY_REPEATER1 0xf003d /* 1.3 */
+#define DP_OUI_PHY_REPEATER(dp_phy) \
+ DP_LTTPR_REG(dp_phy, DP_OUI_PHY_REPEATER1)
+
#define __DP_FEC1_BASE 0xf0290 /* 1.4 */
#define __DP_FEC2_BASE 0xf0298 /* 1.4 */
#define DP_FEC_BASE(dp_phy) \