tc0_security.c 446 Bytes
Newer Older
Usama Arif's avatar
Usama Arif committed
1
/*
Usama Arif's avatar
Usama Arif committed
2
 * Copyright (c) 2020, Arm Limited. All rights reserved.
Usama Arif's avatar
Usama Arif committed
3
4
5
6
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */

Usama Arif's avatar
Usama Arif committed
7
#include <plat/arm/common/plat_arm.h>
Usama Arif's avatar
Usama Arif committed
8
9
#include <platform_def.h>

Usama Arif's avatar
Usama Arif committed
10
static const arm_tzc_regions_info_t tzc_regions[] = {
11
	TC0_TZC_REGIONS_DEF,
Usama Arif's avatar
Usama Arif committed
12
13
14
	{}
};

Usama Arif's avatar
Usama Arif committed
15
16
17
/* Initialize the secure environment */
void plat_arm_security_setup(void)
{
Usama Arif's avatar
Usama Arif committed
18
19
20
21
22
	unsigned int i;

	for (i = 0U; i < TZC400_COUNT; i++) {
		arm_tzc400_setup(TZC400_BASE(i), tzc_regions);
	}
Usama Arif's avatar
Usama Arif committed
23
}