mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-07-16 15:39:42 -04:00
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
This commit is contained in:
@@ -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) \
|
||||
|
||||
@@ -656,6 +656,8 @@ struct drm_dp_desc {
|
||||
int drm_dp_read_desc(struct drm_dp_aux *aux, struct drm_dp_desc *desc,
|
||||
bool is_branch);
|
||||
|
||||
int drm_dp_dump_lttpr_desc(struct drm_dp_aux *aux, enum drm_dp_phy dp_phy);
|
||||
|
||||
/**
|
||||
* enum drm_dp_quirk - Display Port sink/branch device specific quirks
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user