Enable the SMC instruction so that the kernel can use the psci code Signed-off-by: Arnab Basu <arnab_b...@rocketmail.com> Cc: Bhupesh Sharma <bhupesh.sha...@freescale.com> Cc: Marc Zyngier <marc.zyng...@arm.com> --- arch/arm/include/asm/macro.h | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/arch/arm/include/asm/macro.h b/arch/arm/include/asm/macro.h index 1c8c425..e36f043 100644 --- a/arch/arm/include/asm/macro.h +++ b/arch/arm/include/asm/macro.h @@ -106,8 +106,13 @@ lr .req x30 .endm .macro armv8_switch_to_el2_m, xreg1 +#ifdef CONFIG_ARMV8_PSCI + /* 64bit EL2 | HCE | RES1 (Bits[5:4]) | Non-secure EL0/EL1 */ + mov \xreg1, #0x531 +#else /* 64bit EL2 | HCE | SMD | RES1 (Bits[5:4]) | Non-secure EL0/EL1 */ mov \xreg1, #0x5b1 +#endif msr scr_el3, \xreg1 msr cptr_el3, xzr /* Disable coprocessor traps to EL3 */ mov \xreg1, #0x33ff -- 1.9.1 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot