Soby Mathew | 7b75418 | 2016-07-11 14:15:27 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2016, ARM Limited and Contributors. All rights reserved. |
| 3 | * |
dp-arm | fa3cf0b | 2017-05-03 09:38:09 +0100 | [diff] [blame] | 4 | * SPDX-License-Identifier: BSD-3-Clause |
Soby Mathew | 7b75418 | 2016-07-11 14:15:27 +0100 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #include <plat_arm.h> |
| 8 | #include "../fvp_private.h" |
| 9 | |
Yatharth Kochar | 1c16a4c | 2016-06-30 14:50:58 +0100 | [diff] [blame] | 10 | void sp_min_early_platform_setup(void *from_bl2, |
| 11 | void *plat_params_from_bl2) |
Soby Mathew | 7b75418 | 2016-07-11 14:15:27 +0100 | [diff] [blame] | 12 | { |
Yatharth Kochar | 1c16a4c | 2016-06-30 14:50:58 +0100 | [diff] [blame] | 13 | arm_sp_min_early_platform_setup(from_bl2, plat_params_from_bl2); |
Soby Mathew | 7b75418 | 2016-07-11 14:15:27 +0100 | [diff] [blame] | 14 | |
| 15 | /* Initialize the platform config for future decision making */ |
| 16 | fvp_config_setup(); |
| 17 | |
| 18 | /* |
| 19 | * Initialize the correct interconnect for this cluster during cold |
| 20 | * boot. No need for locks as no other CPU is active. |
| 21 | */ |
| 22 | fvp_interconnect_init(); |
| 23 | |
| 24 | /* |
| 25 | * Enable coherency in interconnect for the primary CPU's cluster. |
| 26 | * Earlier bootloader stages might already do this (e.g. Trusted |
| 27 | * Firmware's BL1 does it) but we can't assume so. There is no harm in |
| 28 | * executing this code twice anyway. |
| 29 | * FVP PSCI code will enable coherency for other clusters. |
| 30 | */ |
| 31 | fvp_interconnect_enable(); |
| 32 | } |