summaryrefslogtreecommitdiff
path: root/arch/arm/include/asm
diff options
context:
space:
mode:
authorKeerthy <j-keerthy@ti.com>2016-09-14 10:43:32 +0530
committerTom Rini <trini@konsulko.com>2016-10-06 20:58:16 -0400
commitd31d4a2d7523c73b5da03a1697b6438e1fe1b027 (patch)
tree1bfe4392313b45845b4e4abae169f3f611852138 /arch/arm/include/asm
parent60d42e9d519857921118b91c23a0062935c9d085 (diff)
downloadu-boot-imx-d31d4a2d7523c73b5da03a1697b6438e1fe1b027.zip
u-boot-imx-d31d4a2d7523c73b5da03a1697b6438e1fe1b027.tar.gz
u-boot-imx-d31d4a2d7523c73b5da03a1697b6438e1fe1b027.tar.bz2
ARM: Introduce function to switch to hypervisor mode
On some of the SoCs one cannot enable hypervisor mode directly from the u-boot because the ROM code puts the chip to supervisor mode after it jumps to boot loader. Hence introduce a weak function which can be overridden based on the SoC type and switch to hypervisor mode in a custom way. Cc: beagleboard-x15@googlegroups.com Signed-off-by: Keerthy <j-keerthy@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'arch/arm/include/asm')
-rw-r--r--arch/arm/include/asm/system.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/include/asm/system.h b/arch/arm/include/asm/system.h
index 7b7b867..c18e1e3 100644
--- a/arch/arm/include/asm/system.h
+++ b/arch/arm/include/asm/system.h
@@ -223,6 +223,10 @@ void __noreturn psci_system_reset(bool smc);
*/
void save_boot_params_ret(void);
+#ifdef CONFIG_ARMV7_LPAE
+void switch_to_hypervisor_ret(void);
+#endif
+
#define nop() __asm__ __volatile__("mov\tr0,r0\t@ nop\n\t");
#ifdef __ARM_ARCH_7A__