summaryrefslogtreecommitdiff
path: root/arch/arm/cpu/armv8/cpu.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2022-04-27 09:19:41 -0400
committerTom Rini <trini@konsulko.com>2022-04-27 09:19:41 -0400
commit8b2b125e95c44bb007b4573945f4aedb8a56222c (patch)
tree0eed8a3f6e53131583134e00258984f144845f31 /arch/arm/cpu/armv8/cpu.c
parent24df831cd4ab70fe526e561b07ca37c8b8aa544c (diff)
parent182d45ddff8944e291c805d94a01d7dd29d0d3b6 (diff)
Merge https://gitlab.denx.de/u-boot/custodians/u-boot-mpc85xx
fsl-qoriq: Fixes and updates on fsl-layerscape mpc85xx: fixes and code cleanup
Diffstat (limited to 'arch/arm/cpu/armv8/cpu.c')
-rw-r--r--arch/arm/cpu/armv8/cpu.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv8/cpu.c b/arch/arm/cpu/armv8/cpu.c
index ea40c55dd2c..db5d460eb46 100644
--- a/arch/arm/cpu/armv8/cpu.c
+++ b/arch/arm/cpu/armv8/cpu.c
@@ -79,6 +79,9 @@ static void relocate_secure_section(void)
void armv8_setup_psci(void)
{
+ if (current_el() != 3)
+ return;
+
relocate_secure_section();
secure_ram_addr(psci_setup_vectors)();
secure_ram_addr(psci_arch_init)();