]> git.baikalelectronics.ru Git - uboot.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)
commitc09d4a1e0939cdc0c9ac09c7e1a212840b2f0b6b
treed784f38ea20b53fb128606df03c15a861a556d02
parentde3c47451e2c5c38944577223bd74e20b3d9add4
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