summaryrefslogtreecommitdiffstats
path: root/include/drm
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2012-09-20 16:42:45 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2012-10-02 18:06:07 +0200
commit232351777cd0fe2341f917d28bf130df2b44bf8a (patch)
treed87db183b51bc5bb848508e0436bed177c7fb2d0 /include/drm
parent7883dc55e126d49770dda49864831f5998ad12fb (diff)
downloadtalos-obmc-linux-232351777cd0fe2341f917d28bf130df2b44bf8a.tar.gz
talos-obmc-linux-232351777cd0fe2341f917d28bf130df2b44bf8a.zip
drm/dp: Make sink count DP 1.2 aware
Signed-off-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'include/drm')
-rw-r--r--include/drm/drm_dp_helper.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/drm/drm_dp_helper.h b/include/drm/drm_dp_helper.h
index 38ffcb4332aa..fe061489f91f 100644
--- a/include/drm/drm_dp_helper.h
+++ b/include/drm/drm_dp_helper.h
@@ -221,7 +221,8 @@
# define DP_PSR_FRAME_CAPTURE (1 << 3)
#define DP_SINK_COUNT 0x200
-# define DP_SINK_COUNT_MASK (31 << 0)
+/* prior to 1.2 bit 7 was reserved mbz */
+# define DP_GET_SINK_COUNT(x) ((((x) & 0x80) >> 1) | ((x) & 0x3f))
# define DP_SINK_CP_READY (1 << 6)
#define DP_DEVICE_SERVICE_IRQ_VECTOR 0x201
OpenPOWER on IntegriCloud