aboutsummaryrefslogtreecommitdiffstats
path: root/include/drm
diff options
context:
space:
mode:
authorJani Nikula <jani.nikula@intel.com>2015-02-27 06:11:14 -0500
committerDaniel Vetter <daniel.vetter@ffwll.ch>2015-03-10 04:59:34 -0400
commit6b1e3f615482f308ae74af13fae6c1d9191d2906 (patch)
tree94617748790401d2c1ce54ee9b1fa97af4716666 /include/drm
parent9474675afa9fe9d1145df0acb9fc15b6ad56a9f9 (diff)
drm/dp: add DPCD definitions from eDP 1.4
Add a number of DPCD definitions from eDP 1.4. v2: s/DP_ALPM_LOCK_TIMEOUT_ERROR_STATUS/DP_ALPM_LOCK_TIMEOUT_ERROR/ (Sonika) Signed-off-by: Jani Nikula <jani.nikula@intel.com> Reviewed-by: Sonika Jindal <sonika.jindal@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'include/drm')
-rw-r--r--include/drm/drm_dp_helper.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/include/drm/drm_dp_helper.h b/include/drm/drm_dp_helper.h
index 319d5edfb3b5..c5fdc2d3ca97 100644
--- a/include/drm/drm_dp_helper.h
+++ b/include/drm/drm_dp_helper.h
@@ -168,10 +168,18 @@
168#define DP_AUD_DEL_INS2 0x02d 168#define DP_AUD_DEL_INS2 0x02d
169/* End of AV_SYNC_DATA_BLOCK */ 169/* End of AV_SYNC_DATA_BLOCK */
170 170
171#define DP_RECEIVER_ALPM_CAP 0x02e /* eDP 1.4 */
172# define DP_ALPM_CAP (1 << 0)
173
174#define DP_SINK_DEVICE_AUX_FRAME_SYNC_CAP 0x02f /* eDP 1.4 */
175# define DP_AUX_FRAME_SYNC_CAP (1 << 0)
176
171#define DP_GUID 0x030 /* 1.2 */ 177#define DP_GUID 0x030 /* 1.2 */
172 178
173#define DP_PSR_SUPPORT 0x070 /* XXX 1.2? */ 179#define DP_PSR_SUPPORT 0x070 /* XXX 1.2? */
174# define DP_PSR_IS_SUPPORTED 1 180# define DP_PSR_IS_SUPPORTED 1
181# define DP_PSR2_IS_SUPPORTED 2 /* eDP 1.4 */
182
175#define DP_PSR_CAPS 0x071 /* XXX 1.2? */ 183#define DP_PSR_CAPS 0x071 /* XXX 1.2? */
176# define DP_PSR_NO_TRAIN_ON_EXIT 1 184# define DP_PSR_NO_TRAIN_ON_EXIT 1
177# define DP_PSR_SETUP_TIME_330 (0 << 1) 185# define DP_PSR_SETUP_TIME_330 (0 << 1)
@@ -211,6 +219,7 @@
211 219
212/* link configuration */ 220/* link configuration */
213#define DP_LINK_BW_SET 0x100 221#define DP_LINK_BW_SET 0x100
222# define DP_LINK_RATE_TABLE 0x00 /* eDP 1.4 */
214# define DP_LINK_BW_1_62 0x06 223# define DP_LINK_BW_1_62 0x06
215# define DP_LINK_BW_2_7 0x0a 224# define DP_LINK_BW_2_7 0x0a
216# define DP_LINK_BW_5_4 0x14 /* 1.2 */ 225# define DP_LINK_BW_5_4 0x14 /* 1.2 */
@@ -307,15 +316,30 @@
307#define DP_AUDIO_DELAY2 0x114 316#define DP_AUDIO_DELAY2 0x114
308 317
309#define DP_LINK_RATE_SET 0x115 /* eDP 1.4 */ 318#define DP_LINK_RATE_SET 0x115 /* eDP 1.4 */
319# define DP_LINK_RATE_SET_SHIFT 0
320# define DP_LINK_RATE_SET_MASK (7 << 0)
321
322#define DP_RECEIVER_ALPM_CONFIG 0x116 /* eDP 1.4 */
323# define DP_ALPM_ENABLE (1 << 0)
324# define DP_ALPM_LOCK_ERROR_IRQ_HPD_ENABLE (1 << 1)
325
326#define DP_SINK_DEVICE_AUX_FRAME_SYNC_CONF 0x117 /* eDP 1.4 */
327# define DP_AUX_FRAME_SYNC_ENABLE (1 << 0)
328# define DP_IRQ_HPD_ENABLE (1 << 1)
310 329
311#define DP_UPSTREAM_DEVICE_DP_PWR_NEED 0x118 /* 1.2 */ 330#define DP_UPSTREAM_DEVICE_DP_PWR_NEED 0x118 /* 1.2 */
312# define DP_PWR_NOT_NEEDED (1 << 0) 331# define DP_PWR_NOT_NEEDED (1 << 0)
313 332
333#define DP_AUX_FRAME_SYNC_VALUE 0x15c /* eDP 1.4 */
334# define DP_AUX_FRAME_SYNC_VALID (1 << 0)
335
314#define DP_PSR_EN_CFG 0x170 /* XXX 1.2? */ 336#define DP_PSR_EN_CFG 0x170 /* XXX 1.2? */
315# define DP_PSR_ENABLE (1 << 0) 337# define DP_PSR_ENABLE (1 << 0)
316# define DP_PSR_MAIN_LINK_ACTIVE (1 << 1) 338# define DP_PSR_MAIN_LINK_ACTIVE (1 << 1)
317# define DP_PSR_CRC_VERIFICATION (1 << 2) 339# define DP_PSR_CRC_VERIFICATION (1 << 2)
318# define DP_PSR_FRAME_CAPTURE (1 << 3) 340# define DP_PSR_FRAME_CAPTURE (1 << 3)
341# define DP_PSR_SELECTIVE_UPDATE (1 << 4)
342# define DP_PSR_IRQ_HPD_WITH_CRC_ERRORS (1 << 5)
319 343
320#define DP_ADAPTER_CTRL 0x1a0 344#define DP_ADAPTER_CTRL 0x1a0
321# define DP_ADAPTER_CTRL_FORCE_LOAD_SENSE (1 << 0) 345# define DP_ADAPTER_CTRL_FORCE_LOAD_SENSE (1 << 0)
@@ -423,6 +447,10 @@
423# define DP_SET_POWER_MASK 0x3 447# define DP_SET_POWER_MASK 0x3
424 448
425#define DP_EDP_DPCD_REV 0x700 /* eDP 1.2 */ 449#define DP_EDP_DPCD_REV 0x700 /* eDP 1.2 */
450# define DP_EDP_11 0x00
451# define DP_EDP_12 0x01
452# define DP_EDP_13 0x02
453# define DP_EDP_14 0x03
426 454
427#define DP_EDP_GENERAL_CAP_1 0x701 455#define DP_EDP_GENERAL_CAP_1 0x701
428 456
@@ -430,6 +458,8 @@
430 458
431#define DP_EDP_GENERAL_CAP_2 0x703 459#define DP_EDP_GENERAL_CAP_2 0x703
432 460
461#define DP_EDP_GENERAL_CAP_3 0x704 /* eDP 1.4 */
462
433#define DP_EDP_DISPLAY_CONTROL_REGISTER 0x720 463#define DP_EDP_DISPLAY_CONTROL_REGISTER 0x720
434 464
435#define DP_EDP_BACKLIGHT_MODE_SET_REGISTER 0x721 465#define DP_EDP_BACKLIGHT_MODE_SET_REGISTER 0x721
@@ -456,6 +486,9 @@
456#define DP_EDP_DBC_MINIMUM_BRIGHTNESS_SET 0x732 486#define DP_EDP_DBC_MINIMUM_BRIGHTNESS_SET 0x732
457#define DP_EDP_DBC_MAXIMUM_BRIGHTNESS_SET 0x733 487#define DP_EDP_DBC_MAXIMUM_BRIGHTNESS_SET 0x733
458 488
489#define DP_EDP_REGIONAL_BACKLIGHT_BASE 0x740 /* eDP 1.4 */
490#define DP_EDP_REGIONAL_BACKLIGHT_0 0x741 /* eDP 1.4 */
491
459#define DP_SIDEBAND_MSG_DOWN_REQ_BASE 0x1000 /* 1.2 MST */ 492#define DP_SIDEBAND_MSG_DOWN_REQ_BASE 0x1000 /* 1.2 MST */
460#define DP_SIDEBAND_MSG_UP_REP_BASE 0x1200 /* 1.2 MST */ 493#define DP_SIDEBAND_MSG_UP_REP_BASE 0x1200 /* 1.2 MST */
461#define DP_SIDEBAND_MSG_DOWN_REP_BASE 0x1400 /* 1.2 MST */ 494#define DP_SIDEBAND_MSG_DOWN_REP_BASE 0x1400 /* 1.2 MST */
@@ -474,6 +507,7 @@
474#define DP_PSR_ERROR_STATUS 0x2006 /* XXX 1.2? */ 507#define DP_PSR_ERROR_STATUS 0x2006 /* XXX 1.2? */
475# define DP_PSR_LINK_CRC_ERROR (1 << 0) 508# define DP_PSR_LINK_CRC_ERROR (1 << 0)
476# define DP_PSR_RFB_STORAGE_ERROR (1 << 1) 509# define DP_PSR_RFB_STORAGE_ERROR (1 << 1)
510# define DP_PSR_VSC_SDP_UNCORRECTABLE_ERROR (1 << 2) /* eDP 1.4 */
477 511
478#define DP_PSR_ESI 0x2007 /* XXX 1.2? */ 512#define DP_PSR_ESI 0x2007 /* XXX 1.2? */
479# define DP_PSR_CAPS_CHANGE (1 << 0) 513# define DP_PSR_CAPS_CHANGE (1 << 0)
@@ -487,6 +521,9 @@
487# define DP_PSR_SINK_INTERNAL_ERROR 7 521# define DP_PSR_SINK_INTERNAL_ERROR 7
488# define DP_PSR_SINK_STATE_MASK 0x07 522# define DP_PSR_SINK_STATE_MASK 0x07
489 523
524#define DP_RECEIVER_ALPM_STATUS 0x200b /* eDP 1.4 */
525# define DP_ALPM_LOCK_TIMEOUT_ERROR (1 << 0)
526
490/* DP 1.2 Sideband message defines */ 527/* DP 1.2 Sideband message defines */
491/* peer device type - DP 1.2a Table 2-92 */ 528/* peer device type - DP 1.2a Table 2-92 */
492#define DP_PEER_DEVICE_NONE 0x0 529#define DP_PEER_DEVICE_NONE 0x0