]> git.dujemihanovic.xyz Git - u-boot.git/commit
rockchip: video: edp: Add rk3399 support
authorArnaud Patard (Rtp) <arnaud.patard@rtp-net.org>
Fri, 5 Mar 2021 10:27:47 +0000 (11:27 +0100)
committerAnatolij Gustschin <agust@denx.de>
Sat, 10 Apr 2021 09:51:56 +0000 (11:51 +0200)
commit04d67ceb1c62012822430135be31e18c9c176d85
treebda8ef019999b4fbbe782647b698a9c1df3cd20d
parent7fe2ebf3a326026b9ab80ed94da3cd217c84724d
rockchip: video: edp: Add rk3399 support

According to linux commit "drm/rockchip: analogix_dp: add rk3399 eDP
support" (82872e42bb1501dd9e60ca430f4bae45a469aa64), rk3288 and rk3399
eDP IPs are nearly the same, the difference is in the grf register
(SOC_CON6 versus SOC_CON20). So, change the code to use the right
register on each IP.

The clocks don't seem to be the same, the eDP clock is not at index 1
on rk3399, so don't try changing the clock at index 1 to rate 0 on
rk3399.

Signed-off-by: Arnaud Patard <arnaud.patard@rtp-net.org>
Tested-by: Peter Robinson <pbrobinson@gmail.com>
arch/arm/include/asm/arch-rockchip/edp_rk3288.h
drivers/video/rockchip/rk_edp.c