2014-04-01 19:27:38 +01:00
|
|
|
/*
|
2018-03-12 03:28:26 +00:00
|
|
|
* Copyright (c) 2014-2018, ARM Limited and Contributors. All rights reserved.
|
2014-04-01 19:27:38 +01:00
|
|
|
*
|
2017-05-03 09:38:09 +01:00
|
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
2014-04-01 19:27:38 +01:00
|
|
|
*/
|
|
|
|
|
2015-03-19 19:17:53 +00:00
|
|
|
#include <arm_config.h>
|
|
|
|
#include <plat_arm.h>
|
2014-04-01 19:27:38 +01:00
|
|
|
|
|
|
|
/*
|
2015-03-19 19:17:53 +00:00
|
|
|
* We assume that all security programming is done by the primary core.
|
2014-04-01 19:27:38 +01:00
|
|
|
*/
|
2015-03-19 19:17:53 +00:00
|
|
|
void plat_arm_security_setup(void)
|
2014-04-01 19:27:38 +01:00
|
|
|
{
|
|
|
|
/*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
2015-03-19 19:17:53 +00:00
|
|
|
if (get_arm_config()->flags & ARM_CONFIG_HAS_TZC)
|
2018-03-12 03:28:26 +00:00
|
|
|
arm_tzc400_setup(NULL);
|
2014-04-01 19:27:38 +01:00
|
|
|
}
|