drm: Add support for extracting sync signal drive edge from videomode
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Mon, 18 Jun 2018 13:22:34 +0000 (16:22 +0300)
committerThierry Reding <treding@nvidia.com>
Tue, 10 Jul 2018 15:59:05 +0000 (17:59 +0200)
commit955f60db0f2b87094f64df3d7f608fdac4a6ebb1
tree652c5509ac0abde4dd02d18ee3ccf58fea565251
parentae8cf41b6a5e3a0847cf5ef9bf6feb82e75ab5eb
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
drivers/gpu/drm/drm_modes.c
include/drm/drm_connector.h