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 | |
| 7 | #include <bl_common.h> |
| 8 | #include <debug.h> |
| 9 | #include <plat_arm.h> |
| 10 | #include <sgm_plat_config.h> |
| 11 | #include <soc_css.h> |
| 12 | |
| 13 | void bl1_early_platform_setup(void) |
| 14 | { |
Nariman Poushin | c703f90 | 2018-03-07 10:29:57 +0000 | [diff] [blame] | 15 | |
Girish Pathak | 66dd23c | 2018-10-02 15:18:34 +0100 | [diff] [blame] | 16 | /* Initialize the console before anything else */ |
Nariman Poushin | c703f90 | 2018-03-07 10:29:57 +0000 | [diff] [blame] | 17 | arm_bl1_early_platform_setup(); |
| 18 | |
Girish Pathak | 66dd23c | 2018-10-02 15:18:34 +0100 | [diff] [blame] | 19 | /* Initialize the platform configuration structure */ |
| 20 | plat_config_init(); |
| 21 | |
Nariman Poushin | c703f90 | 2018-03-07 10:29:57 +0000 | [diff] [blame] | 22 | #if !HW_ASSISTED_COHERENCY |
| 23 | /* |
| 24 | * Initialize Interconnect for this cluster during cold boot. |
| 25 | * No need for locks as no other CPU is active. |
| 26 | */ |
| 27 | plat_arm_interconnect_init(); |
| 28 | /* |
| 29 | * Enable Interconnect coherency for the primary CPU's cluster. |
| 30 | */ |
| 31 | plat_arm_interconnect_enter_coherency(); |
| 32 | #endif |
| 33 | } |