2 * Copyright (c) 2015-2017, ARM Limited and Contributors. All rights reserved.
4 * SPDX-License-Identifier: BSD-3-Clause
8 #include <arch_helpers.h>
11 #include <bl_common.h>
16 #include <platform_def.h>
19 /*******************************************************************************
20 * This function is responsible to:
21 * Load SCP_BL2U if platform has defined SCP_BL2U_BASE
22 * Perform platform setup.
24 ******************************************************************************/
27 NOTICE("BL2U: %s\n", version_string
);
28 NOTICE("BL2U: %s\n", build_message
);
32 /* Load the subsequent bootloader images */
33 rc
= bl2u_plat_handle_scp_bl2u();
35 ERROR("Failed to load SCP_BL2U (%i)\n", rc
);
40 /* Perform platform setup in BL2U after loading SCP_BL2U */
41 bl2u_platform_setup();
47 * For AArch32 state BL1 and BL2U share the MMU setup.
48 * Given that BL2U does not map BL1 regions, MMU needs
49 * to be disabled in order to go back to BL1.
51 disable_mmu_icache_secure();
55 * Indicate that BL2U is done and resume back to
56 * normal world via an SMC to BL1.
57 * x1 could be passed to Normal world,
58 * so DO NOT pass any secret information.
60 smc(FWU_SMC_SEC_IMAGE_DONE
, 0, 0, 0, 0, 0, 0, 0);