]> git.dujemihanovic.xyz Git - u-boot.git/commit
board: rockchip: Refactor panel auto-detect code
authorChris Morgan <macromorgan@hotmail.com>
Tue, 2 Jan 2024 15:46:48 +0000 (09:46 -0600)
committerKever Yang <kever.yang@rock-chips.com>
Fri, 19 Jan 2024 02:57:36 +0000 (10:57 +0800)
commit4913ce37c4400e44598a8dfe2162f4351c4c025e
tree5f49dd310e991f390865a77db9191c3324816fc1
parent5708e8eeae53ad8ce605afdf61e5a83162dc5131
board: rockchip: Refactor panel auto-detect code

Make the inability to detect a panel using the auto detection code not
fail the entire boot process. This means that if the panel ID cannot
be read we don't set an environment variable for the panel, and if an
environment variable for the panel is not set we don't attempt to
update the compatible string. Changes to the code also ensure that
when there are multiple compatible strings required for the panel
we use them both, which solves some issues that will pop up soon
for the Linux driver.

Signed-off-by: Chris Morgan <macromorgan@hotmail.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
board/anbernic/rgxx3_rk3566/rgxx3-rk3566.c