efi/arm: Move FDT param discovery code out of efi.c
authorArd Biesheuvel <ardb@kernel.org>
Tue, 18 Feb 2020 08:54:05 +0000 (09:54 +0100)
committerArd Biesheuvel <ardb@kernel.org>
Sun, 23 Feb 2020 20:59:42 +0000 (21:59 +0100)
commitac5abc700a43b3d448c86932196db22af470eca1
tree4ec16c7d08661696c9725e71f6fd6605b678ea85
parent97aa276579b28b86f4a3e235b50762c0191c2ac3
efi/arm: Move FDT param discovery code out of efi.c

On ARM systems, we discover the UEFI system table address and memory
map address from the /chosen node in the device tree, or in the Xen
case, from a similar node under /hypervisor.

Before making some functional changes to that code, move it into its
own file that only gets built if CONFIG_EFI_PARAMS_FROM_FDT=y.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/firmware/efi/Makefile
drivers/firmware/efi/efi.c
drivers/firmware/efi/fdtparams.c [new file with mode: 0644]