diff options
Diffstat (limited to 'include/drm/drm_dp_helper.h')
-rw-r--r-- | include/drm/drm_dp_helper.h | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/include/drm/drm_dp_helper.h b/include/drm/drm_dp_helper.h index 91567bbdb027..93df2d72750b 100644 --- a/include/drm/drm_dp_helper.h +++ b/include/drm/drm_dp_helper.h | |||
@@ -72,8 +72,23 @@ | |||
72 | 72 | ||
73 | #define DP_MAIN_LINK_CHANNEL_CODING 0x006 | 73 | #define DP_MAIN_LINK_CHANNEL_CODING 0x006 |
74 | 74 | ||
75 | #define DP_EDP_CONFIGURATION_CAP 0x00d | ||
75 | #define DP_TRAINING_AUX_RD_INTERVAL 0x00e | 76 | #define DP_TRAINING_AUX_RD_INTERVAL 0x00e |
76 | 77 | ||
78 | #define DP_PSR_SUPPORT 0x070 | ||
79 | # define DP_PSR_IS_SUPPORTED 1 | ||
80 | #define DP_PSR_CAPS 0x071 | ||
81 | # define DP_PSR_NO_TRAIN_ON_EXIT 1 | ||
82 | # define DP_PSR_SETUP_TIME_330 (0 << 1) | ||
83 | # define DP_PSR_SETUP_TIME_275 (1 << 1) | ||
84 | # define DP_PSR_SETUP_TIME_220 (2 << 1) | ||
85 | # define DP_PSR_SETUP_TIME_165 (3 << 1) | ||
86 | # define DP_PSR_SETUP_TIME_110 (4 << 1) | ||
87 | # define DP_PSR_SETUP_TIME_55 (5 << 1) | ||
88 | # define DP_PSR_SETUP_TIME_0 (6 << 1) | ||
89 | # define DP_PSR_SETUP_TIME_MASK (7 << 1) | ||
90 | # define DP_PSR_SETUP_TIME_SHIFT 1 | ||
91 | |||
77 | /* link configuration */ | 92 | /* link configuration */ |
78 | #define DP_LINK_BW_SET 0x100 | 93 | #define DP_LINK_BW_SET 0x100 |
79 | # define DP_LINK_BW_1_62 0x06 | 94 | # define DP_LINK_BW_1_62 0x06 |
@@ -133,6 +148,20 @@ | |||
133 | #define DP_MAIN_LINK_CHANNEL_CODING_SET 0x108 | 148 | #define DP_MAIN_LINK_CHANNEL_CODING_SET 0x108 |
134 | # define DP_SET_ANSI_8B10B (1 << 0) | 149 | # define DP_SET_ANSI_8B10B (1 << 0) |
135 | 150 | ||
151 | #define DP_PSR_EN_CFG 0x170 | ||
152 | # define DP_PSR_ENABLE (1 << 0) | ||
153 | # define DP_PSR_MAIN_LINK_ACTIVE (1 << 1) | ||
154 | # define DP_PSR_CRC_VERIFICATION (1 << 2) | ||
155 | # define DP_PSR_FRAME_CAPTURE (1 << 3) | ||
156 | |||
157 | #define DP_DEVICE_SERVICE_IRQ_VECTOR 0x201 | ||
158 | # define DP_REMOTE_CONTROL_COMMAND_PENDING (1 << 0) | ||
159 | # define DP_AUTOMATED_TEST_REQUEST (1 << 1) | ||
160 | # define DP_CP_IRQ (1 << 2) | ||
161 | # define DP_SINK_SPECIFIC_IRQ (1 << 6) | ||
162 | |||
163 | #define DP_EDP_CONFIGURATION_SET 0x10a | ||
164 | |||
136 | #define DP_LANE0_1_STATUS 0x202 | 165 | #define DP_LANE0_1_STATUS 0x202 |
137 | #define DP_LANE2_3_STATUS 0x203 | 166 | #define DP_LANE2_3_STATUS 0x203 |
138 | # define DP_LANE_CR_DONE (1 << 0) | 167 | # define DP_LANE_CR_DONE (1 << 0) |
@@ -165,10 +194,45 @@ | |||
165 | # define DP_ADJUST_PRE_EMPHASIS_LANE1_MASK 0xc0 | 194 | # define DP_ADJUST_PRE_EMPHASIS_LANE1_MASK 0xc0 |
166 | # define DP_ADJUST_PRE_EMPHASIS_LANE1_SHIFT 6 | 195 | # define DP_ADJUST_PRE_EMPHASIS_LANE1_SHIFT 6 |
167 | 196 | ||
197 | #define DP_TEST_REQUEST 0x218 | ||
198 | # define DP_TEST_LINK_TRAINING (1 << 0) | ||
199 | # define DP_TEST_LINK_PATTERN (1 << 1) | ||
200 | # define DP_TEST_LINK_EDID_READ (1 << 2) | ||
201 | # define DP_TEST_LINK_PHY_TEST_PATTERN (1 << 3) /* DPCD >= 1.1 */ | ||
202 | |||
203 | #define DP_TEST_LINK_RATE 0x219 | ||
204 | # define DP_LINK_RATE_162 (0x6) | ||
205 | # define DP_LINK_RATE_27 (0xa) | ||
206 | |||
207 | #define DP_TEST_LANE_COUNT 0x220 | ||
208 | |||
209 | #define DP_TEST_PATTERN 0x221 | ||
210 | |||
211 | #define DP_TEST_RESPONSE 0x260 | ||
212 | # define DP_TEST_ACK (1 << 0) | ||
213 | # define DP_TEST_NAK (1 << 1) | ||
214 | # define DP_TEST_EDID_CHECKSUM_WRITE (1 << 2) | ||
215 | |||
168 | #define DP_SET_POWER 0x600 | 216 | #define DP_SET_POWER 0x600 |
169 | # define DP_SET_POWER_D0 0x1 | 217 | # define DP_SET_POWER_D0 0x1 |
170 | # define DP_SET_POWER_D3 0x2 | 218 | # define DP_SET_POWER_D3 0x2 |
171 | 219 | ||
220 | #define DP_PSR_ERROR_STATUS 0x2006 | ||
221 | # define DP_PSR_LINK_CRC_ERROR (1 << 0) | ||
222 | # define DP_PSR_RFB_STORAGE_ERROR (1 << 1) | ||
223 | |||
224 | #define DP_PSR_ESI 0x2007 | ||
225 | # define DP_PSR_CAPS_CHANGE (1 << 0) | ||
226 | |||
227 | #define DP_PSR_STATUS 0x2008 | ||
228 | # define DP_PSR_SINK_INACTIVE 0 | ||
229 | # define DP_PSR_SINK_ACTIVE_SRC_SYNCED 1 | ||
230 | # define DP_PSR_SINK_ACTIVE_RFB 2 | ||
231 | # define DP_PSR_SINK_ACTIVE_SINK_SYNCED 3 | ||
232 | # define DP_PSR_SINK_ACTIVE_RESYNC 4 | ||
233 | # define DP_PSR_SINK_INTERNAL_ERROR 7 | ||
234 | # define DP_PSR_SINK_STATE_MASK 0x07 | ||
235 | |||
172 | #define MODE_I2C_START 1 | 236 | #define MODE_I2C_START 1 |
173 | #define MODE_I2C_WRITE 2 | 237 | #define MODE_I2C_WRITE 2 |
174 | #define MODE_I2C_READ 4 | 238 | #define MODE_I2C_READ 4 |