]> git.baikalelectronics.ru Git - uboot.git/commit
rockchip: video: Split out HDMI controller code
authorJernej Skrabec <jernej.skrabec@siol.net>
Mon, 20 Mar 2017 22:01:22 +0000 (23:01 +0100)
committerSimon Glass <sjg@chromium.org>
Wed, 5 Apr 2017 02:01:57 +0000 (20:01 -0600)
commit8224ff66090d910bdf5388dc65bc67dd0fc90399
treed7ce58ff9962aa98d1d4e58614406e5d29f889b7
parent30f458f436a4df4fb31e6d61fc80bceb78c98bed
rockchip: video: Split out HDMI controller code

Designware HDMI controller and phy are used in other SoCs as well. Split
out platform independent code.

DW HDMI has 8 bit registers but they can be represented as 32 bit
registers as well. Add support to select access mode.

EDID reading code use reading by blocks which is not supported by other
SoCs in general. Make it more general using byte by byte approach, which
is also used in Linux driver.

Finally, not all DW HDMI controllers are accompanied with DW HDMI phy.
Support custom phys by making controller code independent from phy code.

Signed-off-by: Jernej Skrabec <jernej.skrabec@siol.net>
Tested-by: Nickey Yang <nickey.yang@rock-chips.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/arm/include/asm/arch-rockchip/hdmi_rk3288.h [deleted file]
drivers/video/dw_hdmi.c [new file with mode: 0644]
drivers/video/rockchip/Makefile
drivers/video/rockchip/rk_hdmi.c
drivers/video/rockchip/rk_vop.c
include/dw_hdmi.h [new file with mode: 0644]