diff options
author | Mark Salter <msalter@redhat.com> | 2014-04-16 03:59:30 +0200 |
---|---|---|
committer | Matt Fleming <matt.fleming@intel.com> | 2014-04-30 20:49:59 +0200 |
commit | f84d02755f5a9f3b88e8d15d6384da25ad6dcf5e (patch) | |
tree | f069e87984f66a571278e681197174c450e1a0ad /arch/arm64/include/asm/efi.h | |
parent | efi: Add shared FDT related functions for ARM/ARM64 (diff) | |
download | linux-f84d02755f5a9f3b88e8d15d6384da25ad6dcf5e.tar.xz linux-f84d02755f5a9f3b88e8d15d6384da25ad6dcf5e.zip |
arm64: add EFI runtime services
This patch adds EFI runtime support for arm64. This runtime support allows
the kernel to access various EFI runtime services provided by EFI firmware.
Things like reboot, real time clock, EFI boot variables, and others.
This functionality is supported for little endian kernels only. The UEFI
firmware standard specifies that the firmware be little endian. A future
patch is expected to add support for big endian kernels running with
little endian firmware.
Signed-off-by: Mark Salter <msalter@redhat.com>
[ Remove unnecessary cache/tlb maintenance. ]
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Diffstat (limited to 'arch/arm64/include/asm/efi.h')
-rw-r--r-- | arch/arm64/include/asm/efi.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/efi.h b/arch/arm64/include/asm/efi.h new file mode 100644 index 000000000000..5a46c4e7f539 --- /dev/null +++ b/arch/arm64/include/asm/efi.h @@ -0,0 +1,14 @@ +#ifndef _ASM_EFI_H +#define _ASM_EFI_H + +#include <asm/io.h> + +#ifdef CONFIG_EFI +extern void efi_init(void); +extern void efi_idmap_init(void); +#else +#define efi_init() +#define efi_idmap_init() +#endif + +#endif /* _ASM_EFI_H */ |