mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-16 09:34:18 +00:00

Rule 8.4: A compatible declaration shall be visible when an object or function with external linkage is defined Fixed for: make DEBUG=1 PLAT=fvp LOG_LEVEL=50 all Change-Id: I7c2ad3f5c015411c202605851240d5347e4cc8c7 Signed-off-by: Roberto Vargas <roberto.vargas@arm.com>
45 lines
1.2 KiB
C
45 lines
1.2 KiB
C
/*
|
|
* Copyright (c) 2013-2018, ARM Limited and Contributors. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#include <plat_arm.h>
|
|
#include <platform.h>
|
|
#include <tbbr_img_def.h>
|
|
#include "fvp_private.h"
|
|
|
|
|
|
/*******************************************************************************
|
|
* Perform any BL1 specific platform actions.
|
|
******************************************************************************/
|
|
void bl1_early_platform_setup(void)
|
|
{
|
|
arm_bl1_early_platform_setup();
|
|
|
|
/* Initialize the platform config for future decision making */
|
|
fvp_config_setup();
|
|
|
|
/*
|
|
* Initialize Interconnect for this cluster during cold boot.
|
|
* No need for locks as no other CPU is active.
|
|
*/
|
|
fvp_interconnect_init();
|
|
/*
|
|
* Enable coherency in Interconnect for the primary CPU's cluster.
|
|
*/
|
|
fvp_interconnect_enable();
|
|
}
|
|
|
|
/*******************************************************************************
|
|
* The following function checks if Firmware update is needed,
|
|
* by checking if TOC in FIP image is valid or not.
|
|
******************************************************************************/
|
|
unsigned int bl1_plat_get_next_image_id(void)
|
|
{
|
|
if (!arm_io_is_toc_valid())
|
|
return NS_BL1U_IMAGE_ID;
|
|
|
|
return BL2_IMAGE_ID;
|
|
}
|
|
|