2 * Copyright (c) 2015-2016, ARM Limited and Contributors. All rights reserved.
4 * SPDX-License-Identifier: BSD-3-Clause
7 #include <arch_helpers.h>
11 #include <platform_def.h>
15 /* Weak definitions may be overridden in specific ARM standard platform */
16 #pragma weak bl2u_platform_setup
17 #pragma weak bl2u_early_platform_setup
18 #pragma weak bl2u_plat_arch_setup
21 * Perform ARM standard platform setup for BL2U
23 void arm_bl2u_platform_setup(void)
25 /* Initialize the secure environment */
26 plat_arm_security_setup();
29 void bl2u_platform_setup(void)
31 arm_bl2u_platform_setup();
34 void arm_bl2u_early_platform_setup(meminfo_t
*mem_layout
, void *plat_info
)
36 /* Initialize the console to provide early debug support */
37 console_init(PLAT_ARM_BOOT_UART_BASE
, PLAT_ARM_BOOT_UART_CLK_IN_HZ
,
38 ARM_CONSOLE_BAUDRATE
);
41 /*******************************************************************************
42 * BL1 can pass platform dependent information to BL2U in x1.
43 * In case of ARM CSS platforms x1 contains SCP_BL2U image info.
44 * In case of ARM FVP platforms x1 is not used.
45 * In both cases, x0 contains the extents of the memory available to BL2U
46 ******************************************************************************/
47 void bl2u_early_platform_setup(meminfo_t
*mem_layout
, void *plat_info
)
49 arm_bl2u_early_platform_setup(mem_layout
, plat_info
);
52 /*******************************************************************************
53 * Perform the very early platform specific architectural setup here. At the
54 * moment this is only initializes the mmu in a quick and dirty way.
55 * The memory that is used by BL2U is only mapped.
56 ******************************************************************************/
57 void arm_bl2u_plat_arch_setup(void)
59 arm_setup_page_tables(BL2U_BASE
,
78 void bl2u_plat_arch_setup(void)
80 arm_bl2u_plat_arch_setup();