[PATCH V2 1/4] board: rockchip: Refactor panel auto-detect code
Simon Glass
sjg at chromium.org
Sat Nov 18 18:10:04 CET 2023
Hi Chris,
On Fri, 17 Nov 2023 at 14:15, Chris Morgan <macroalpha82 at gmail.com> wrote:
>
> From: Chris Morgan <macromorgan at hotmail.com>
>
> 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 at hotmail.com>
> ---
> board/anbernic/rgxx3_rk3566/rgxx3-rk3566.c | 115 +++++++++++++--------
> 1 file changed, 74 insertions(+), 41 deletions(-)
Reviewed-by: Simon Glass <sjg at chromium.org>
This seems similar to the extension_board command in some ways.
Raspberry Pi has some vaguely similar logic.
I wonder if we could figure out a generic way of handling this?
Regards,
Simon
More information about the U-Boot
mailing list