]> git.dujemihanovic.xyz Git - u-boot.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)
commita0383427b33e7813999a54f19d77954dadc66ab9
tree79ba487ea4beb6426f2fe0d7f1453551be484083
parent39e521f75674e640474f9db2b6db8bf68ae59a5f
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