drm/tilcdc: Add support for external tda998x encoder
authorJyri Sarha <jsarha@ti.com>
Tue, 10 Feb 2015 12:13:23 +0000 (14:13 +0200)
committerJyri Sarha <jsarha@ti.com>
Wed, 27 May 2015 10:13:32 +0000 (13:13 +0300)
commit103cd8bc1c80ec0a12ef438c4493f7c26edc71bd
treea920df6557783343097c39d5f29680e6c637fda6
parent6730201f4fdcfbb1e6ec5ec374e6ef95e5bf9662
drm/tilcdc: Add support for external tda998x encoder

Add support for an external compontised DRM encoder. The external
encoder can be connected to tilcdc trough device tree graph binding.
The binding document for tilcdc has been updated. The current
implementation supports only tda998x encoder.

To be able to filter out the unsupported video modes the tilcdc driver
needs to hijack the external connectors helper functions. The tilcdc
installes new helper functions that are otherwise identical to
orignals, but the mode_valid() call-back check the mode first localy,
before calling the original call-back. The tilcdc dirver restores the
original helper functions before it is unbound from the external
device.

I got the idea and some lines of code from Jean-Francois Moine's
"drm/tilcdc: Change the interface with the tda998x driver"-patch.

Signed-off-by: Jyri Sarha <jsarha@ti.com>
Acked-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Documentation/devicetree/bindings/drm/tilcdc/tilcdc.txt
drivers/gpu/drm/tilcdc/Makefile
drivers/gpu/drm/tilcdc/tilcdc_crtc.c
drivers/gpu/drm/tilcdc/tilcdc_drv.c
drivers/gpu/drm/tilcdc/tilcdc_drv.h
drivers/gpu/drm/tilcdc/tilcdc_external.c [new file with mode: 0644]
drivers/gpu/drm/tilcdc/tilcdc_external.h [new file with mode: 0644]