drm: imx: imx-hdmi: convert imx-hdmi to drm_bridge mode
authorAndy Yan <andy.yan@rock-chips.com>
Fri, 5 Dec 2014 06:25:05 +0000 (14:25 +0800)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Tue, 6 Jan 2015 16:36:16 +0000 (17:36 +0100)
commit3d1b35a3d9f3d6de690b237995d5aa858e349648
tree341c0519e5498f911035d7035f56ba675c4764b6
parentc2c3848851a723a0e5e0fec22df395a885edf459
drm: imx: imx-hdmi: convert imx-hdmi to drm_bridge mode

IMX6 and Rockchip RK3288 and JZ4780 (Ingenic Xburst/MIPS)
use the interface compatible Designware HDMI IP, but they
also have some lightly differences, such as phy pll configuration,
register width, 4K support, clk useage, and the crtc mux configuration
is also platform specific.

To reuse the imx hdmi driver, convert it to drm_bridge

handle encoder in imx-hdmi_pltfm.c, as most of the encoder
operation are platform specific such as crtc select and
panel format set

This patch depends on Russell King's patch:
 drm: imx: convert imx-drm to use the generic DRM OF helper
 http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/2014-July/053484.html

Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Signed-off-by: Yakir Yang <ykk@rock-chips.com>
Tested-by: Russell King <rmk+kernel@arm.linux.org.uk>
Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/gpu/drm/imx/Makefile
drivers/gpu/drm/imx/imx-hdmi.c
drivers/gpu/drm/imx/imx-hdmi.h
drivers/gpu/drm/imx/imx-hdmi_pltfm.c [new file with mode: 0644]