summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/radeon/ni_reg.h
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2015-02-24 02:24:04 +0300
committerAlex Deucher <alexander.deucher@amd.com>2015-03-19 19:26:51 +0300
commit9843ead08f18270948498f37eb95d6189eed31af (patch)
tree1453a3153aa11b3e94a1c34e7b5ac7aa1af44c41 /drivers/gpu/drm/radeon/ni_reg.h
parent8f0fc088f5fff0c2e4683bc0de7fc849e7d5357a (diff)
downloadlinux-9843ead08f18270948498f37eb95d6189eed31af.tar.xz
drm/radeon: add DisplayPort MST support (v2)
This adds initial DP 1.2 MST support to radeon, on CAYMAN and up in theory. This is off by default. v2: agd5f: - add UNIPHY3 offsets - move atom cmd table code into atombios_encoders.c - whitespace cleanup - replace some magic numbers with proper defines Signed-off-by: Dave Airlie <airlied@redhat.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/ni_reg.h')
-rw-r--r--drivers/gpu/drm/radeon/ni_reg.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/ni_reg.h b/drivers/gpu/drm/radeon/ni_reg.h
index 96c23712776e..da310a70c0f0 100644
--- a/drivers/gpu/drm/radeon/ni_reg.h
+++ b/drivers/gpu/drm/radeon/ni_reg.h
@@ -93,6 +93,8 @@
# define NI_DP_MSE_ZERO_ENCODER (((x) & 0x1) << 8)
#define NI_DP_MSE_RATE_CNTL 0x7384
+# define NI_DP_MSE_RATE_Y(x) (((x) & 0x3ffffff) << 0)
+# define NI_DP_MSE_RATE_X(x) (((x) & 0x3f) << 26)
#define NI_DP_MSE_RATE_UPDATE 0x738c
@@ -111,6 +113,11 @@
#define NI_DIG_BE_CNTL 0x7140
# define NI_DIG_FE_SOURCE_SELECT(x) (((x) & 0x7f) << 8)
# define NI_DIG_FE_DIG_MODE(x) (((x) & 0x7) << 16)
+# define NI_DIG_MODE_DP_SST 0
+# define NI_DIG_MODE_LVDS 1
+# define NI_DIG_MODE_TMDS_DVI 2
+# define NI_DIG_MODE_TMDS_HDMI 3
+# define NI_DIG_MODE_DP_MST 5
# define NI_DIG_HPD_SELECT(x) (((x) & 0x7) << 28)
#define NI_DIG_FE_CNTL 0x7000