fvp_bl1_setup.c 1.1 KB
Newer Older
1
/*
Roberto Vargas's avatar
Roberto Vargas committed
2
 * Copyright (c) 2013-2018, ARM Limited and Contributors. All rights reserved.
3
 *
dp-arm's avatar
dp-arm committed
4
 * SPDX-License-Identifier: BSD-3-Clause
5
6
 */

7
#include <common/tbbr/tbbr_img_def.h>
8
#include <drivers/arm/sp805.h>
9
#include <plat/arm/common/plat_arm.h>
10
#include <plat/arm/common/arm_def.h>
11
12
#include <plat/common/platform.h>
#include "fvp_private.h"
13
14
15
16
17
18

/*******************************************************************************
 * Perform any BL1 specific platform actions.
 ******************************************************************************/
void bl1_early_platform_setup(void)
{
19
	arm_bl1_early_platform_setup();
20

21
	/* Initialize the platform config for future decision making */
22
	fvp_config_setup();
23

24
	/*
25
	 * Initialize Interconnect for this cluster during cold boot.
26
27
	 * No need for locks as no other CPU is active.
	 */
28
	fvp_interconnect_init();
29
	/*
30
	 * Enable coherency in Interconnect for the primary CPU's cluster.
31
	 */
32
	fvp_interconnect_enable();
33
}
34
35
36
37
38
39
40
41
42
43

void plat_arm_secure_wdt_start(void)
{
	sp805_start(ARM_SP805_TWDG_BASE, ARM_TWDG_LOAD_VAL);
}

void plat_arm_secure_wdt_stop(void)
{
	sp805_stop(ARM_SP805_TWDG_BASE);
}