This patch sets the values of VSYNC and VBLANK in Xilinx VTC. The patch was tested using a modified version of this driver and using an HDMI compliance equipment. There is still missing the polarity settings for H/V which would require a change in the interface of this driver. Signed-off-by: Jose Abreu <joabreu@xxxxxxxxxxxx> Cc: Carlos Palminha <palminha@xxxxxxxxxxxx> Cc: Hyun Kwon <hyun.kwon@xxxxxxxxxx> Cc: Laurent Pinchart <laurent.pinchart@xxxxxxxxxxxxxxxx> Cc: Mauro Carvalho Chehab <mchehab@xxxxxxxxxxxxxxx> Cc: linux-media@xxxxxxxxxxxxxxx --- drivers/media/platform/xilinx/xilinx-vtc.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/xilinx/xilinx-vtc.c b/drivers/media/platform/xilinx/xilinx-vtc.c index 01c750e..49e82f2 100644 --- a/drivers/media/platform/xilinx/xilinx-vtc.c +++ b/drivers/media/platform/xilinx/xilinx-vtc.c @@ -211,11 +211,15 @@ int xvtc_generator_start(struct xvtc_device *xvtc, xvtc_gen_write(xvtc, XVTC_HSYNC, (config->hsync_end << XVTC_HSYNC_END_SHIFT) | (config->hsync_start << XVTC_HSYNC_START_SHIFT)); - xvtc_gen_write(xvtc, XVTC_F0_VBLANK_H, 0); + xvtc_gen_write(xvtc, XVTC_F0_VBLANK_H, + (config->hsync_start << XVTC_F0_VBLANK_HEND_SHIFT) | + (config->hsync_start << XVTC_F0_VBLANK_HSTART_SHIFT)); xvtc_gen_write(xvtc, XVTC_F0_VSYNC_V, (config->vsync_end << XVTC_F0_VSYNC_VEND_SHIFT) | (config->vsync_start << XVTC_F0_VSYNC_VSTART_SHIFT)); - xvtc_gen_write(xvtc, XVTC_F0_VSYNC_H, 0); + xvtc_gen_write(xvtc, XVTC_F0_VSYNC_H, + (config->hsync_start << XVTC_F0_VSYNC_HEND_SHIFT) | + (config->hsync_start << XVTC_F0_VSYNC_HSTART_SHIFT)); /* Enable the generator. Set the source of all generator parameters to * generator registers. -- 2.1.4 -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html