blob: 7def56a7098a72b6ceb6721989c31489ad514e00 [file] [log] [blame]
Roberto Vargas52207802017-11-17 13:22:18 +00001/*
2 * Copyright (c) 2017, ARM Limited and Contributors. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
Antonio Nino Diazbd7b7402019-01-25 14:30:04 +00007#include <plat/arm/common/plat_arm.h>
8
Roberto Vargas52207802017-11-17 13:22:18 +00009#include "fvp_private.h"
10
11void bl2_el3_early_platform_setup(u_register_t arg0 __unused,
12 u_register_t arg1 __unused,
13 u_register_t arg2 __unused,
14 u_register_t arg3 __unused)
15{
16 arm_bl2_el3_early_platform_setup();
17
18 /* Initialize the platform config for future decision making */
19 fvp_config_setup();
20
21 /*
22 * Initialize Interconnect for this cluster during cold boot.
23 * No need for locks as no other CPU is active.
24 */
25 fvp_interconnect_init();
26 /*
27 * Enable coherency in Interconnect for the primary CPU's cluster.
28 */
29 fvp_interconnect_enable();
30}