]> git.baikalelectronics.ru Git - uboot.git/commit
toradex: tdx-cfg-block: rework display adapter name handling
authorMax Krummenacher <max.krummenacher@toradex.com>
Tue, 18 Jul 2023 09:07:34 +0000 (11:07 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 4 Aug 2023 17:32:39 +0000 (13:32 -0400)
commit78ab748426228d3d2ca0758d5dbf278915683ab5
tree79ba487ea4beb6426f2fe0d7f1453551be484083
parent75c0a00377cf1a896995e5ce6e11883438634708
toradex: tdx-cfg-block: rework display adapter name handling

Rework the rather big array of zero length strings with 4 entries of
actual display adapter names to a array of structs which ties a pid4
to its correspondent human readable string.
Provide an accessor to get the string for a given PID4.

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Signed-off-by: Andrejs Cainikovs <andrejs.cainikovs@toradex.com>
board/toradex/common/tdx-cfg-block.c
board/toradex/common/tdx-cfg-block.h