summaryrefslogtreecommitdiff
path: root/bl2u/bl2u_main.c
diff options
context:
space:
mode:
authorYatharth Kochar <yatharth.kochar@arm.com>2016-11-22 11:06:03 +0000
committerdp-arm <dimitris.papastamos@arm.com>2017-05-15 16:35:29 +0100
commit1bd61d0aa2e135259c2584d712443149b792c52e (patch)
tree7ab27ba99a1c27e45dcf2f5f84ade6b42af561d3 /bl2u/bl2u_main.c
parenta44090080308beefe64d302bcc76de70f0d1d280 (diff)
AArch32: Add BL2U support
Add support for firmware upgrade on AArch32. This patch has been tested on the FVP models. NOTE: Firmware upgrade on Juno AArch32 is not currently supported. Change-Id: I1ca8078214eaf86b46463edd14740120af930aec Signed-off-by: dp-arm <dimitris.papastamos@arm.com> Co-Authored-By: Yatharth Kochar <yatharth.kochar@arm.com>
Diffstat (limited to 'bl2u/bl2u_main.c')
-rw-r--r--bl2u/bl2u_main.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/bl2u/bl2u_main.c b/bl2u/bl2u_main.c
index 2504668f..820da100 100644
--- a/bl2u/bl2u_main.c
+++ b/bl2u/bl2u_main.c
@@ -42,6 +42,15 @@ void bl2u_main(void)
console_flush();
+#ifdef AARCH32
+ /*
+ * For AArch32 state BL1 and BL2U share the MMU setup.
+ * Given that BL2U does not map BL1 regions, MMU needs
+ * to be disabled in order to go back to BL1.
+ */
+ disable_mmu_icache_secure();
+#endif /* AARCH32 */
+
/*
* Indicate that BL2U is done and resume back to
* normal world via an SMC to BL1.