efi: add helper function to get UEFI params from FDT
authorMark Salter <msalter@redhat.com>
Mon, 30 Dec 2013 17:12:12 +0000 (12:12 -0500)
committerMark Brown <broonie@linaro.org>
Mon, 16 Jun 2014 20:35:23 +0000 (21:35 +0100)
commit37d133e5122b80b5a13b2658b15baf695d3fda19
tree0dc6db6442029c57ec8b85936b6e04a03f63243f
parent8ef5a88c0bdda0b47913f82a1fc6f28e481a486d
efi: add helper function to get UEFI params from FDT

ARM and ARM64 architectures use the device tree to pass UEFI parameters
from stub to kernel. These parameters are things known to the stub but
not discoverable by the kernel after the stub calls ExitBootSerives().
There is a helper function in:

   drivers/firmware/efi/fdt.c

which the stub uses to add the UEFI parameters to the device tree.
This patch adds a complimentary helper function which UEFI runtime
support may use to retrieve the parameters from the device tree.
If an architecture wants to use this helper, it should select
CONFIG_EFI_PARAMS_FROM_FDT.

Signed-off-by: Mark Salter <msalter@redhat.com>
Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
(cherry picked from commit 0302f71c0aa59571ac306f93068fbbfe65ea349b)
Signed-off-by: Mark Brown <broonie@linaro.org>
Conflicts:
drivers/firmware/efi/Kconfig
drivers/firmware/efi/Kconfig
drivers/firmware/efi/efi.c
include/linux/efi.h