x86: Show some EFI info with the bdinfo command
authorSimon Glass <sjg@chromium.org>
Sat, 25 Sep 2021 00:30:21 +0000 (18:30 -0600)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Thu, 21 Oct 2021 01:46:03 +0000 (03:46 +0200)
commit567dfef2fe4affe28e8e65b54677f24995b98a5e
treed985e0e91639b86d1f0870cbf438ef040a1dc53d
parente70be676ebc718b7d12caf56b24e8db383ccee62
x86: Show some EFI info with the bdinfo command

It is useful to see some basic EFI info with the command as it forms part
of the information about a board.

Add a hook for this and show the table address as a start.

While here, fix an invalid cast in setup_efi_info(). Note that this
function is using a data structure defined by Linux so we cannot change
it. Also note that ulong is used since this is the standard in U-Boot
(>6k uses), despite there being quite a bit of the more verbose uintptr_t
(930 uses).

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
arch/x86/cpu/efi/payload.c
arch/x86/include/asm/efi.h
arch/x86/lib/Makefile
arch/x86/lib/bdinfo.c [new file with mode: 0644]