drm/dp: Add DPCD defines for register 0x007
authorAdam Jackson <ajax@redhat.com>
Mon, 14 May 2012 20:05:46 +0000 (16:05 -0400)
committerDave Airlie <airlied@redhat.com>
Tue, 22 May 2012 09:18:36 +0000 (10:18 +0100)
Low four bits are downstream port count.  High bit indicates peer OUI
support.  OUI matching will allow us to do additional per-sink handling
for things like DP->VGA bandwidth limits or (hopefully) the iMac-as-
display hack.

Signed-off-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Jerome Glisse <jglisse@redhat.com>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
include/drm/drm_dp_helper.h

index 8ed85b96487d1a8be5e5f2e37bdc423b55cec098..1744b18c06b380f97ebb85ab684d1a41c63e6ebe 100644 (file)
 
 #define DP_MAIN_LINK_CHANNEL_CODING         0x006
 
+#define DP_DOWN_STREAM_PORT_COUNT          0x007
+#define  DP_PORT_COUNT_MASK                0x0f
+#define  DP_OUI_SUPPORT                            (1 << 7)
+
 #define DP_EDP_CONFIGURATION_CAP            0x00d
 #define DP_TRAINING_AUX_RD_INTERVAL         0x00e