armv8: psci: skip setup code if we are not EL3
authorMichael Walle <michael@walle.cc>
Mon, 28 Feb 2022 12:48:39 +0000 (13:48 +0100)
committerPriyanka Jain <priyanka.jain@nxp.com>
Tue, 26 Apr 2022 11:43:57 +0000 (17:13 +0530)
commitde58ac49a5d941a053008bf395c862efc34b5595
tree5cb54959ef4f59523e6345b6c1802923ee291b94
parentcb14cc8867cde068aa798375ba14eaef12cff6c4
armv8: psci: skip setup code if we are not EL3

If we are running in EL2 skip PSCI implementation setup. This avoids an
exception if CONFIG_ARMV8_PSCI is set, but u-boot is started by TF-A.

Signed-off-by: Michael Walle <michael@walle.cc>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
arch/arm/cpu/armv8/cpu.c