]> xenbits.xensource.com Git - people/julieng/linux-arm.git/commit
arm64/efi: move EFI init before early FDT processing
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Sun, 10 May 2015 12:03:31 +0000 (14:03 +0200)
committerJulien Grall <julien.grall@citrix.com>
Mon, 28 Sep 2015 11:05:14 +0000 (12:05 +0100)
commit6b49b1cb94fb130d2ba71c0a150e8d190d16bdb9
tree84a90a5a4d36ac344a535e12e0ff0391d7caa071
parentd1909e2f546174c0deff0f483ec67cc2b9a16639
arm64/efi: move EFI init before early FDT processing

The early FDT processing is responsible for enumerating the
DT memory nodes and installing them as memblocks. This should
only be done if we are not booting via EFI, but at this point,
we don't know yet if that is the case or not.

So move the EFI init to before the early FDT processing. This involves
making some changes to the way EFI discovers the locations of the
EFI system table and the memory map, since those values are retrieved
from the FDT as well. Instead the of_scan infrastructure, it now uses
libfdt directly to access the /chosen node.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Robert Richter <rrichter@cavium.com>
Signed-off-by: Vadim Lomovtsev <Vadim.Lomovtsev@caviumnetworks.com>
arch/arm64/include/asm/efi.h
arch/arm64/kernel/efi.c
arch/arm64/kernel/setup.c
drivers/firmware/efi/Makefile
drivers/firmware/efi/efi-fdt.c
include/linux/efi.h