[PATCH 1/3] staging: drm/imx: set correct sync pins for parallel display

Markus Niebel list-09_linuc_arm at tqsc.de
Fri May 17 05:19:51 EDT 2013


From: Markus Niebel <Markus.Niebel at tqs.de>

partial fix of changes from
"staging: drm/imx: Add support for VGA via TVE on i.MX53"

Have to call imx_drm_crtc_panel_format_pins with the correct pins instead of (0, 0)
This enables configuration of correct waveforms for vsync / hsync

TODO: configure pins via device tree

Signed-off-by: Markus Niebel <Markus.Niebel at tqs.de>
---
 drivers/staging/imx-drm/parallel-display.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/imx-drm/parallel-display.c b/drivers/staging/imx-drm/parallel-display.c
index e7fba62..e49a906 100644
--- a/drivers/staging/imx-drm/parallel-display.c
+++ b/drivers/staging/imx-drm/parallel-display.c
@@ -114,8 +114,8 @@ static void imx_pd_encoder_prepare(struct drm_encoder *encoder)
 {
 	struct imx_parallel_display *imxpd = enc_to_imxpd(encoder);
 
-	imx_drm_crtc_panel_format(encoder->crtc, DRM_MODE_ENCODER_NONE,
-			imxpd->interface_pix_fmt);
+	imx_drm_crtc_panel_format_pins(encoder->crtc, DRM_MODE_ENCODER_NONE,
+			imxpd->interface_pix_fmt, 2, 3);
 }
 
 static void imx_pd_encoder_commit(struct drm_encoder *encoder)
-- 
1.7.9.5




More information about the linux-arm-kernel mailing list