tc_security.c 513 B

123456789101112131415161718192021222324252627
  1. /*
  2. * Copyright (c) 2024, Arm Limited. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #include <plat/arm/common/plat_arm.h>
  7. #include <platform_def.h>
  8. #if (TARGET_PLATFORM <= 2)
  9. static const arm_tzc_regions_info_t tzc_regions[] = {
  10. TC_TZC_REGIONS_DEF,
  11. {}
  12. };
  13. #endif
  14. /* Initialize the secure environment */
  15. void plat_arm_security_setup(void)
  16. {
  17. #if (TARGET_PLATFORM <= 2)
  18. unsigned int i;
  19. for (i = 0U; i < TZC400_COUNT; i++) {
  20. arm_tzc400_setup(TZC400_BASE(i), tzc_regions);
  21. }
  22. #endif
  23. }