summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose Marinho <jose.marinho@arm.com>2021-07-14 19:26:09 +0100
committerJose Marinho <jose.marinho@arm.com>2021-07-14 19:26:09 +0100
commit4ec637200bdaed9a4ba62caff9c17f928914fd61 (patch)
treea7d4c869fb446175549a6c8eefcd3f6d9abc8c97
parentba79c7a89d5b30a6108ca91dba8c7bd24deae1c2 (diff)
TEMP correction for Qemu compilation
-rw-r--r--bl2/bl2_main.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/bl2/bl2_main.c b/bl2/bl2_main.c
index f87d2d4e2..297df1a92 100644
--- a/bl2/bl2_main.c
+++ b/bl2/bl2_main.c
@@ -75,6 +75,12 @@ void bl2_el3_setup(u_register_t arg0, u_register_t arg1, u_register_t arg2,
}
#endif /* BL2_AT_EL3 */
+#pragma weak imx8mm_set_recovery
+bool imx8mm_set_recovery(void)
+{
+ return true;
+}
+
/*******************************************************************************
* The only thing to do in BL2 is to load further images and pass control to
* next BL. The memory occupied by BL2 will be reclaimed by BL3x stages. BL2
@@ -93,7 +99,6 @@ void bl2_main(void)
fwu_init();
#endif /* PSA_FWU_SUPPORT */
- bool imx8mm_set_recovery(void);
do {
/* Perform remaining generic architectural setup in S-EL1 */
bl2_arch_setup();
@@ -120,10 +125,11 @@ void bl2_main(void)
if (!next_bl_ep_info)
{
- void udelay(uint32_t usec);
+// XXX We're using the udelay to have a visual queueu that the boot from SpiNor failed
+// void udelay(uint32_t usec);
imx8mm_set_recovery();
- udelay(1000000);
+// udelay(1000000);
}
} while (!next_bl_ep_info);