• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2014-2020, ARM Limited and Contributors. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 #include <plat/arm/common/arm_config.h>
8 #include <plat/arm/common/plat_arm.h>
9 
10 /*
11  * We assume that all security programming is done by the primary core.
12  */
plat_arm_security_setup(void)13 void plat_arm_security_setup(void)
14 {
15 	/*
16 	 * The Base FVP has a TrustZone address space controller, the Foundation
17 	 * FVP does not. Trying to program the device on the foundation FVP will
18 	 * cause an abort.
19 	 *
20 	 * If the platform had additional peripheral specific security
21 	 * configurations, those would be configured here.
22 	 */
23 
24 	if ((get_arm_config()->flags & ARM_CONFIG_HAS_TZC) != 0U)
25 		arm_tzc400_setup(PLAT_ARM_TZC_BASE, NULL);
26 }
27