1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26#ifndef __DAL_DPCD_DEFS_H__
27#define __DAL_DPCD_DEFS_H__
28
29#include <drm/drm_dp_helper.h>
30#ifndef DP_SINK_HW_REVISION_START
31#define DP_SINK_HW_REVISION_START 0x409
32#endif
33
34enum dpcd_revision {
35 DPCD_REV_10 = 0x10,
36 DPCD_REV_11 = 0x11,
37 DPCD_REV_12 = 0x12,
38 DPCD_REV_13 = 0x13,
39 DPCD_REV_14 = 0x14
40};
41
42
43enum dpcd_downstream_port_type {
44 DOWNSTREAM_DP = 0,
45 DOWNSTREAM_VGA,
46 DOWNSTREAM_DVI_HDMI,
47 DOWNSTREAM_NONDDC
48};
49
50enum dpcd_link_test_patterns {
51 LINK_TEST_PATTERN_NONE = 0,
52 LINK_TEST_PATTERN_COLOR_RAMP,
53 LINK_TEST_PATTERN_VERTICAL_BARS,
54 LINK_TEST_PATTERN_COLOR_SQUARES
55};
56
57enum dpcd_test_color_format {
58 TEST_COLOR_FORMAT_RGB = 0,
59 TEST_COLOR_FORMAT_YCBCR422,
60 TEST_COLOR_FORMAT_YCBCR444
61};
62
63enum dpcd_test_bit_depth {
64 TEST_BIT_DEPTH_6 = 0,
65 TEST_BIT_DEPTH_8,
66 TEST_BIT_DEPTH_10,
67 TEST_BIT_DEPTH_12,
68 TEST_BIT_DEPTH_16
69};
70
71
72
73
74enum dpcd_phy_test_patterns {
75 PHY_TEST_PATTERN_NONE = 0,
76 PHY_TEST_PATTERN_D10_2,
77 PHY_TEST_PATTERN_SYMBOL_ERROR,
78 PHY_TEST_PATTERN_PRBS7,
79 PHY_TEST_PATTERN_80BIT_CUSTOM,
80 PHY_TEST_PATTERN_CP2520_1,
81 PHY_TEST_PATTERN_CP2520_2,
82 PHY_TEST_PATTERN_CP2520_3,
83};
84
85enum dpcd_test_dyn_range {
86 TEST_DYN_RANGE_VESA = 0,
87 TEST_DYN_RANGE_CEA
88};
89
90enum dpcd_audio_test_pattern {
91 AUDIO_TEST_PATTERN_OPERATOR_DEFINED = 0,
92 AUDIO_TEST_PATTERN_SAWTOOTH
93};
94
95enum dpcd_audio_sampling_rate {
96 AUDIO_SAMPLING_RATE_32KHZ = 0,
97 AUDIO_SAMPLING_RATE_44_1KHZ,
98 AUDIO_SAMPLING_RATE_48KHZ,
99 AUDIO_SAMPLING_RATE_88_2KHZ,
100 AUDIO_SAMPLING_RATE_96KHZ,
101 AUDIO_SAMPLING_RATE_176_4KHZ,
102 AUDIO_SAMPLING_RATE_192KHZ
103};
104
105enum dpcd_audio_channels {
106 AUDIO_CHANNELS_1 = 0,
107 AUDIO_CHANNELS_2,
108 AUDIO_CHANNELS_3,
109 AUDIO_CHANNELS_4,
110 AUDIO_CHANNELS_5,
111 AUDIO_CHANNELS_6,
112 AUDIO_CHANNELS_7,
113 AUDIO_CHANNELS_8,
114
115 AUDIO_CHANNELS_COUNT
116};
117
118enum dpcd_audio_test_pattern_periods {
119 DPCD_AUDIO_TEST_PATTERN_PERIOD_NOTUSED = 0,
120 DPCD_AUDIO_TEST_PATTERN_PERIOD_3,
121 DPCD_AUDIO_TEST_PATTERN_PERIOD_6,
122 DPCD_AUDIO_TEST_PATTERN_PERIOD_12,
123 DPCD_AUDIO_TEST_PATTERN_PERIOD_24,
124 DPCD_AUDIO_TEST_PATTERN_PERIOD_48,
125 DPCD_AUDIO_TEST_PATTERN_PERIOD_96,
126 DPCD_AUDIO_TEST_PATTERN_PERIOD_192,
127 DPCD_AUDIO_TEST_PATTERN_PERIOD_384,
128 DPCD_AUDIO_TEST_PATTERN_PERIOD_768,
129 DPCD_AUDIO_TEST_PATTERN_PERIOD_1536
130};
131
132
133enum dpcd_training_patterns {
134 DPCD_TRAINING_PATTERN_VIDEOIDLE = 0,
135 DPCD_TRAINING_PATTERN_1,
136 DPCD_TRAINING_PATTERN_2,
137 DPCD_TRAINING_PATTERN_3,
138 DPCD_TRAINING_PATTERN_4 = 7
139};
140
141
142
143enum dpcd_psr_sink_states {
144 PSR_SINK_STATE_INACTIVE = 0,
145 PSR_SINK_STATE_ACTIVE_CAPTURE_DISPLAY_ON_SOURCE_TIMING = 1,
146 PSR_SINK_STATE_ACTIVE_DISPLAY_FROM_SINK_RFB = 2,
147 PSR_SINK_STATE_ACTIVE_CAPTURE_DISPLAY_ON_SINK_TIMING = 3,
148 PSR_SINK_STATE_ACTIVE_CAPTURE_TIMING_RESYNC = 4,
149 PSR_SINK_STATE_SINK_INTERNAL_ERROR = 7,
150};
151
152#endif
153