mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-08-15 08:57:02 +02:00
This patch allows the ARM Platforms to specify the TZC regions to be specified to the ARM TZC helpers in arm_tzc400.c and arm_tzc_dmc500.c. If the regions are not specified then the default TZC region will be configured by these helpers. This override mechanism allows specifying special regions for TZMP1 usecase. Signed-off-by: Summer Qin <summer.qin@arm.com>
27 lines
671 B
C
27 lines
671 B
C
/*
|
|
* Copyright (c) 2014-2018, ARM Limited and Contributors. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#include <arm_config.h>
|
|
#include <plat_arm.h>
|
|
|
|
/*
|
|
* We assume that all security programming is done by the primary core.
|
|
*/
|
|
void plat_arm_security_setup(void)
|
|
{
|
|
/*
|
|
* 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.
|
|
*/
|
|
|
|
if (get_arm_config()->flags & ARM_CONFIG_HAS_TZC)
|
|
arm_tzc400_setup(NULL);
|
|
}
|