[U-Boot] [PATCH v2 1/7] rockchip: video: Split out HDMI controller code

Simon Glass sjg at chromium.org
Sun Mar 26 03:47:29 UTC 2017


On 20 March 2017 at 16:01, Jernej Skrabec <jernej.skrabec at siol.net> wrote:
> 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 at siol.net>
> Tested-by: Nickey Yang <nickey.yang at rock-chips.com>
> Reviewed-by: Simon Glass <sjg at chromium.org>
> ---
> Changes in v2:
> - added tested by tag
> - added reviewed by tag
>
>  arch/arm/include/asm/arch-rockchip/hdmi_rk3288.h | 456 --------------
>  drivers/video/dw_hdmi.c                          | 764 +++++++++++++++++++++++
>  drivers/video/rockchip/Makefile                  |   2 +-
>  drivers/video/rockchip/rk_hdmi.c                 | 757 +---------------------
>  drivers/video/rockchip/rk_vop.c                  |   1 -
>  include/dw_hdmi.h                                | 486 ++++++++++++++
>  6 files changed, 1275 insertions(+), 1191 deletions(-)
>  delete mode 100644 arch/arm/include/asm/arch-rockchip/hdmi_rk3288.h
>  create mode 100644 drivers/video/dw_hdmi.c
>  create mode 100644 include/dw_hdmi.h

Tested on firefly-rk3288:
Tested-by: Simon Glass <sjg at chromium.org>
Applied to u-boot-rockchip, thanks!


More information about the U-Boot mailing list