Roberto Vargas | 5220780 | 2017-11-17 13:22:18 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2017, ARM Limited and Contributors. All rights reserved. |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
Antonio Nino Diaz | bd7b740 | 2019-01-25 14:30:04 +0000 | [diff] [blame] | 7 | #include <plat/arm/common/plat_arm.h> |
| 8 | |
Roberto Vargas | 5220780 | 2017-11-17 13:22:18 +0000 | [diff] [blame] | 9 | #include "fvp_private.h" |
| 10 | |
| 11 | void 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 | } |