]> git.sur5r.net Git - u-boot/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)
commitcc232a9d07e7c4d2b9e217b182c857a23a672f0c
treed7ce58ff9962aa98d1d4e58614406e5d29f889b7
parent02a7d83301d5b5dfed387b8d16ff2882f6a5d9ed
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]