summaryrefslogtreecommitdiff
path: root/include/drm
diff options
context:
space:
mode:
authorPeter Ujfalusi <peter.ujfalusi@ti.com>2018-06-18 16:22:34 +0300
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2019-09-20 10:37:43 +0200
commitbd435d0d4f5028c25caa0430a36445c937c3abbb (patch)
tree0c4cae4ee21440aabfca991a1a3d505657945267 /include/drm
parentc284745667cd18280f1ae684872d9ee1543579bb (diff)
drm: Add support for extracting sync signal drive edge from videomode
The sync in some panels needs to be driven by different edge of the pixel clock compared to data. This is reflected by the DISPLAY_FLAGS_SYNC_(POS|NEG)EDGE in videmode flags. Add similar similar definitions for bus_flags and convert the sync drive edge via drm_bus_flags_from_videomode(). Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com> Signed-off-by: Jyri Sarha <jsarha@ti.com> Signed-off-by: Thierry Reding <treding@nvidia.com> Link: https://patchwork.freedesktop.org/patch/msgid/20180618132242.8673-2-tomi.valkeinen@ti.com (cherry picked from commit 955f60db0f2b87094f64df3d7f608fdac4a6ebb1)
Diffstat (limited to 'include/drm')
-rw-r--r--include/drm/drm_connector.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/drm/drm_connector.h b/include/drm/drm_connector.h
index e9e6fb0ba56d..3565ca43f298 100644
--- a/include/drm/drm_connector.h
+++ b/include/drm/drm_connector.h
@@ -256,6 +256,10 @@ struct drm_display_info {
#define DRM_BUS_FLAG_DATA_MSB_TO_LSB (1<<4)
/* data is transmitted LSB to MSB on the bus */
#define DRM_BUS_FLAG_DATA_LSB_TO_MSB (1<<5)
+/* drive sync on pos. edge */
+#define DRM_BUS_FLAG_SYNC_POSEDGE (1<<6)
+/* drive sync on neg. edge */
+#define DRM_BUS_FLAG_SYNC_NEGEDGE (1<<7)
/**
* @bus_flags: Additional information (like pixel signal polarity) for