[PATCH] drm/dp: Add DP phy test pattern DPCD bit definitions

clinton.a.taylor at intel.com clinton.a.taylor at intel.com
Thu Mar 21 22:42:21 UTC 2019


From: Clinton Taylor <Clinton.A.Taylor at intel.com>

Added PHY_TEST_PATTERN_SEL bit definitions for DPCD 00248h and
HBR2_COMPLIANCE_SCRAMBLER_RESET DPCD definition.

Signed-off-by: Clinton Taylor <Clinton.A.Taylor at intel.com>
---
 include/drm/drm_dp_helper.h | 17 +++++++++++++++--
 1 file changed, 15 insertions(+), 2 deletions(-)

diff --git a/include/drm/drm_dp_helper.h b/include/drm/drm_dp_helper.h
index 97ce790a5b5a..d22e293e457c 100644
--- a/include/drm/drm_dp_helper.h
+++ b/include/drm/drm_dp_helper.h
@@ -564,8 +564,10 @@
 # define DP_TEST_LINK_AUDIO_DISABLED_VIDEO  (1 << 6) /* DPCD >= 1.2 */
 
 #define DP_TEST_LINK_RATE		    0x219
-# define DP_LINK_RATE_162		    (0x6)
-# define DP_LINK_RATE_27		    (0xa)
+# define DP_TEST_LINK_RATE_162	      0x6
+# define DP_TEST_LINK_RATE_27	      0xa
+# define DP_TEST_LINK_RATE_54	     0x14
+# define DP_TEST_LINK_RATE_81	     0x1e
 
 #define DP_TEST_LANE_COUNT		    0x220
 
@@ -640,6 +642,17 @@
 # define DP_TEST_COUNT_MASK		    0xf
 
 #define DP_TEST_PHY_PATTERN                 0x248
+# define DP_TEST_PHY_PATTERN_NONE		    0
+# define DP_TEST_PHY_PATTERN_D10_2		    1
+# define DP_TEST_PHY_PATTERN_ERROR_COUNT	    2
+# define DP_TEST_PHY_PATTERN_PRBS7		    3
+# define DP_TEST_PHY_PATTERN_80BIT_CUSTOM	    4
+# define DP_TEST_PHY_PATTERN_CP2520_1	    5 /* was HBR2 Compliance */
+# define DP_TEST_PHY_PATTERN_CP2520_2	    6 /* DP 1.4 */
+# define DP_TEST_PHY_PATTERN_CP2520_3	    7 /* DP 1.4 TPS4 */
+
+#define DP_TEST_HBR2_SCRAMBLER_RESET	0x24A
+
 #define DP_TEST_80BIT_CUSTOM_PATTERN_7_0    0x250
 #define	DP_TEST_80BIT_CUSTOM_PATTERN_15_8   0x251
 #define	DP_TEST_80BIT_CUSTOM_PATTERN_23_16  0x252
-- 
2.19.1



More information about the dri-devel mailing list