Nariman Poushin | c703f90 | 2018-03-07 10:29:57 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2018, ARM Limited and Contributors. All rights reserved. |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
Antonio Nino Diaz | e0f9063 | 2018-12-14 00:18:21 +0000 | [diff] [blame] | 7 | #include <common/bl_common.h> |
| 8 | #include <common/debug.h> |
Antonio Nino Diaz | bd7b740 | 2019-01-25 14:30:04 +0000 | [diff] [blame] | 9 | #include <plat/arm/common/plat_arm.h> |
| 10 | #include <plat/arm/soc/common/soc_css.h> |
Antonio Nino Diaz | e0f9063 | 2018-12-14 00:18:21 +0000 | [diff] [blame] | 11 | |
Nariman Poushin | c703f90 | 2018-03-07 10:29:57 +0000 | [diff] [blame] | 12 | #include <sgm_plat_config.h> |
Nariman Poushin | c703f90 | 2018-03-07 10:29:57 +0000 | [diff] [blame] | 13 | |
| 14 | void bl1_early_platform_setup(void) |
| 15 | { |
Nariman Poushin | c703f90 | 2018-03-07 10:29:57 +0000 | [diff] [blame] | 16 | |
Girish Pathak | 66dd23c | 2018-10-02 15:18:34 +0100 | [diff] [blame] | 17 | /* Initialize the console before anything else */ |
Nariman Poushin | c703f90 | 2018-03-07 10:29:57 +0000 | [diff] [blame] | 18 | arm_bl1_early_platform_setup(); |
| 19 | |
Girish Pathak | 66dd23c | 2018-10-02 15:18:34 +0100 | [diff] [blame] | 20 | /* Initialize the platform configuration structure */ |
| 21 | plat_config_init(); |
| 22 | |
Nariman Poushin | c703f90 | 2018-03-07 10:29:57 +0000 | [diff] [blame] | 23 | #if !HW_ASSISTED_COHERENCY |
| 24 | /* |
| 25 | * Initialize Interconnect for this cluster during cold boot. |
| 26 | * No need for locks as no other CPU is active. |
| 27 | */ |
| 28 | plat_arm_interconnect_init(); |
| 29 | /* |
| 30 | * Enable Interconnect coherency for the primary CPU's cluster. |
| 31 | */ |
| 32 | plat_arm_interconnect_enter_coherency(); |
| 33 | #endif |
| 34 | } |