OSDN Git Service

drm: bridge/dw_hdmi: add support for interlaced video modes
authorRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 21 Jul 2015 10:08:25 +0000 (11:08 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 6 Oct 2015 18:58:40 +0000 (19:58 +0100)
commite80b9f4eea2649f67edc05d4f2e7ddc250f91453
treedad7bb6bc27bf38af019c3777865953f3ac0a90b
parentaefa627fa3f231c5d86aeb229f15e8478cb6e910
drm: bridge/dw_hdmi: add support for interlaced video modes

Add support for interlaced video modes to the dw_hdmi bridge.  This
mainly involves halving the vertical parameters to be programmed into
the bridge registers, and setting the interlace_allowed connector flag.

This brings working 1080i support.  However, 480i and 576i fail to
work due to the lack of proper pixel repetition support, which is not
trivial to add due to the tabular PLL parameterisation.  Hence, we
filter out these modes in our mode_valid() method.

Tested-by: Philipp Zabel <p.zabel@pengutronix.de>
Reviewed-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/gpu/drm/bridge/dw_hdmi.c