fvp_security.c 671 Bytes
Newer Older
1
/*
2
 * Copyright (c) 2014-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
8
#include <arm_config.h>
#include <plat_arm.h>
9
10

/*
11
 * We assume that all security programming is done by the primary core.
12
 */
13
void plat_arm_security_setup(void)
14
15
16
17
18
19
20
21
22
23
{
	/*
	 * The Base FVP has a TrustZone address space controller, the Foundation
	 * FVP does not. Trying to program the device on the foundation FVP will
	 * cause an abort.
	 *
	 * If the platform had additional peripheral specific security
	 * configurations, those would be configured here.
	 */

24
	if (get_arm_config()->flags & ARM_CONFIG_HAS_TZC)
25
		arm_tzc400_setup(NULL);
26
}