]> git.dujemihanovic.xyz Git - u-boot.git/commit
rockchip: video: vop: Use endpoint compatible string to find VOP mode
authorArnaud Patard (Rtp) <arnaud.patard@rtp-net.org>
Fri, 5 Mar 2021 10:27:46 +0000 (11:27 +0100)
committerAnatolij Gustschin <agust@denx.de>
Sat, 10 Apr 2021 09:51:13 +0000 (11:51 +0200)
commit7fe2ebf3a326026b9ab80ed94da3cd217c84724d
treed784f38ea20b53fb128606df03c15a861a556d02
parenta1e95e3805eacca1162f6049dceb9b1d2726cbf5
rockchip: video: vop: Use endpoint compatible string to find VOP mode

The current code is using an hard coded enum and the of node reg value of
endpoint to find out if the endpoint is mipi/hdmi/lvds/edp/dp. The order
is different between rk3288, rk3399 vop little, rk3399 vop big.

A possible solution would be to make sure that the rk3288.dtsi and
rk3399.dtsi files have "expected" reg value or an other solution is
to find the kind of endpoint by comparing the endpoint compatible value.

This patch is implementing the more flexible second solution.

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