Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 1 | /* |
Usama Arif | e445ff8 | 2020-08-18 12:30:37 +0100 | [diff] [blame] | 2 | * Copyright (c) 2020, Arm Limited. All rights reserved. |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
Usama Arif | e445ff8 | 2020-08-18 12:30:37 +0100 | [diff] [blame] | 7 | #include <plat/arm/common/plat_arm.h> |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 8 | #include <platform_def.h> |
| 9 | |
Usama Arif | e445ff8 | 2020-08-18 12:30:37 +0100 | [diff] [blame] | 10 | static const arm_tzc_regions_info_t tzc_regions[] = { |
Usama Arif | f151362 | 2021-04-09 17:07:41 +0100 | [diff] [blame] | 11 | TC_TZC_REGIONS_DEF, |
Usama Arif | e445ff8 | 2020-08-18 12:30:37 +0100 | [diff] [blame] | 12 | {} |
| 13 | }; |
| 14 | |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 15 | /* Initialize the secure environment */ |
| 16 | void plat_arm_security_setup(void) |
| 17 | { |
Usama Arif | e445ff8 | 2020-08-18 12:30:37 +0100 | [diff] [blame] | 18 | unsigned int i; |
| 19 | |
| 20 | for (i = 0U; i < TZC400_COUNT; i++) { |
| 21 | arm_tzc400_setup(TZC400_BASE(i), tzc_regions); |
| 22 | } |
Usama Arif | bec5afd | 2020-04-17 16:13:39 +0100 | [diff] [blame] | 23 | } |