arm: Use armv8_switch_to_el1 env to switch to EL1
authorPeter Hoyes <Peter.Hoyes@arm.com>
Thu, 19 Aug 2021 15:53:13 +0000 (16:53 +0100)
committerTom Rini <trini@konsulko.com>
Thu, 2 Sep 2021 14:17:45 +0000 (10:17 -0400)
commit30e5a449e8c7739965757879bb17efbd3a8f0ee2
tree7c25dabe79f3cde91ec222a33ac07fef007d3851
parentb53bbca63bf42fe6d5174122e29e371691fe6dad
arm: Use armv8_switch_to_el1 env to switch to EL1

Use the environment variable armv8_switch_to_el1 to determine whether
to switch to EL1 at runtime. This is an alternative to the
CONFIG_ARMV8_SWITCH_TO_EL1 compile-time option.

The environment variable will be ineffective if the ARMV8_MULTIENTRY
config is used.

This is required by the Armv8r64 architecture, which must be able to
boot at S-EL1 for Linux but may need to boot at other ELs for other
systems.

Signed-off-by: Peter Hoyes <Peter.Hoyes@arm.com>
arch/arm/lib/bootm.c