efi: Add shared FDT related functions for ARM/ARM64
authorRoy Franz <roy.franz@linaro.org>
Thu, 9 Jan 2014 01:54:19 +0000 (17:54 -0800)
committerMark Brown <broonie@linaro.org>
Mon, 16 Jun 2014 20:35:34 +0000 (21:35 +0100)
commit6dda02e0d57abbdaf7bd0c6a89622a5cba415087
treee52a58bbca311bef2ad207b2692bb31a882abd42
parent37d133e5122b80b5a13b2658b15baf695d3fda19
efi: Add shared FDT related functions for ARM/ARM64

Both ARM and ARM64 stubs will update the device tree that they pass to
the kernel.  In both cases they primarily need to add the same UEFI
related information, so the function can be shared.  Create a new FDT
related file for this to avoid use of architecture #ifdefs in
efi-stub-helper.c.

Signed-off-by: Roy Franz <roy.franz@linaro.org>
[ Fixed memory node deletion code. ]
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
Acked-by: Grant Likely <grant.likely@linaro.org>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
(cherry picked from commit 263b4a30bfdb0d756ae9c70c6ff2eef1eb951770)
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/firmware/efi/fdt.c [new file with mode: 0644]
include/linux/efi.h