blob: 6a345010ac66e7b92c0acbcd5166c325607ec93d [file] [log] [blame]
Usama Arifbec5afd2020-04-17 16:13:39 +01001/*
Usama Arife445ff82020-08-18 12:30:37 +01002 * Copyright (c) 2020, Arm Limited. All rights reserved.
Usama Arifbec5afd2020-04-17 16:13:39 +01003 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
Usama Arife445ff82020-08-18 12:30:37 +01007#include <plat/arm/common/plat_arm.h>
Usama Arifbec5afd2020-04-17 16:13:39 +01008#include <platform_def.h>
9
Usama Arife445ff82020-08-18 12:30:37 +010010static const arm_tzc_regions_info_t tzc_regions[] = {
Usama Ariff1513622021-04-09 17:07:41 +010011 TC_TZC_REGIONS_DEF,
Usama Arife445ff82020-08-18 12:30:37 +010012 {}
13};
14
Usama Arifbec5afd2020-04-17 16:13:39 +010015/* Initialize the secure environment */
16void plat_arm_security_setup(void)
17{
Usama Arife445ff82020-08-18 12:30:37 +010018 unsigned int i;
19
20 for (i = 0U; i < TZC400_COUNT; i++) {
21 arm_tzc400_setup(TZC400_BASE(i), tzc_regions);
22 }
Usama Arifbec5afd2020-04-17 16:13:39 +010023}