blob: f543762036c99e94e916a246797cabf323a215f6 [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 Arif9bbebe72020-08-26 14:04:31 +010011 TC0_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}