blob: 7c7a1a13c8c0453d9d58742df9a124c73c6b0e52 [file] [log] [blame]
Usama Arifbec5afd2020-04-17 16:13:39 +01001/*
Tintu Thomasecdc3162024-07-02 16:57:05 +01002 * Copyright (c) 2024, 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
Tintu Thomasecdc3162024-07-02 16:57:05 +010010#if (TARGET_PLATFORM <= 2)
Usama Arife445ff82020-08-18 12:30:37 +010011static const arm_tzc_regions_info_t tzc_regions[] = {
Usama Ariff1513622021-04-09 17:07:41 +010012 TC_TZC_REGIONS_DEF,
Usama Arife445ff82020-08-18 12:30:37 +010013 {}
14};
Tintu Thomasecdc3162024-07-02 16:57:05 +010015#endif
Usama Arife445ff82020-08-18 12:30:37 +010016
Usama Arifbec5afd2020-04-17 16:13:39 +010017/* Initialize the secure environment */
18void plat_arm_security_setup(void)
19{
Tintu Thomasecdc3162024-07-02 16:57:05 +010020#if (TARGET_PLATFORM <= 2)
Usama Arife445ff82020-08-18 12:30:37 +010021 unsigned int i;
22
23 for (i = 0U; i < TZC400_COUNT; i++) {
24 arm_tzc400_setup(TZC400_BASE(i), tzc_regions);
25 }
Tintu Thomasecdc3162024-07-02 16:57:05 +010026#endif
Usama Arifbec5afd2020-04-17 16:13:39 +010027}