efi_loader: AArch64: Run EFI payloads in EL2 if U-Boot runs in EL3
authorAlexander Graf <agraf@suse.de>
Thu, 17 Nov 2016 00:02:58 +0000 (01:02 +0100)
committerAlexander Graf <agraf@suse.de>
Thu, 17 Nov 2016 10:52:21 +0000 (11:52 +0100)
commit69bd459d343fe1e5a68a6f187d8c99c78c6fc6ce
treef02f29ed636d7f5660869685b23232125e0636e9
parent58ad86288fd32f1f969ac654f2074c090f0abe32
efi_loader: AArch64: Run EFI payloads in EL2 if U-Boot runs in EL3

Some boards decided not to run ATF or other secure firmware in EL3, so
they instead run U-Boot there. The uEFI spec doesn't know what EL3 is
though - it only knows about EL2 and EL1. So if we see that we're running
in EL3, let's get into EL2 to make payloads happy.

Signed-off-by: Alexander Graf <agraf@suse.de>
Reviewed-by: York Sun <york.sun@nxp.com>
cmd/bootefi.c