blob: 7c7a1a13c8c0453d9d58742df9a124c73c6b0e52 [file] [log] [blame]
Usama Ariff5c58af2020-04-17 16:13:39 +01001/*
Tintu Thomas8ce29a72024-07-02 16:57:05 +01002 * Copyright (c) 2024, Arm Limited. All rights reserved.
Usama Ariff5c58af2020-04-17 16:13:39 +01003 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
Usama Arif16796a22020-08-18 12:30:37 +01007#include <plat/arm/common/plat_arm.h>
Usama Ariff5c58af2020-04-17 16:13:39 +01008#include <platform_def.h>
9
Tintu Thomas8ce29a72024-07-02 16:57:05 +010010#if (TARGET_PLATFORM <= 2)
Usama Arif16796a22020-08-18 12:30:37 +010011static const arm_tzc_regions_info_t tzc_regions[] = {
Usama Arif6ec0c652021-04-09 17:07:41 +010012 TC_TZC_REGIONS_DEF,
Usama Arif16796a22020-08-18 12:30:37 +010013 {}
14};
Tintu Thomas8ce29a72024-07-02 16:57:05 +010015#endif
Usama Arif16796a22020-08-18 12:30:37 +010016
Usama Ariff5c58af2020-04-17 16:13:39 +010017/* Initialize the secure environment */
18void plat_arm_security_setup(void)
19{
Tintu Thomas8ce29a72024-07-02 16:57:05 +010020#if (TARGET_PLATFORM <= 2)
Usama Arif16796a22020-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 Thomas8ce29a72024-07-02 16:57:05 +010026#endif
Usama Ariff5c58af2020-04-17 16:13:39 +010027}