sgm_bl1_setup.c 746 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/*
 * Copyright (c) 2018, ARM Limited and Contributors. All rights reserved.
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */

#include <bl_common.h>
#include <debug.h>
#include <plat_arm.h>
#include <sgm_plat_config.h>
#include <soc_css.h>

void bl1_early_platform_setup(void)
{

16
	/* Initialize the console before anything else */
17
18
	arm_bl1_early_platform_setup();

19
20
21
	/* Initialize the platform configuration structure */
	plat_config_init();

22
23
24
25
26
27
28
29
30
31
32
33
#if !HW_ASSISTED_COHERENCY
	/*
	 * Initialize Interconnect for this cluster during cold boot.
	 * No need for locks as no other CPU is active.
	 */
	plat_arm_interconnect_init();
	/*
	 * Enable Interconnect coherency for the primary CPU's cluster.
	 */
	plat_arm_interconnect_enter_coherency();
#endif
}