stm32mp15-tzc400.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. /* SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause */
  2. /*
  3. * Copyright (C) 2021, STMicroelectronics - All Rights Reserved
  4. */
  5. #ifndef _DT_BINDINGS_STM32MP15_TZC400_H
  6. #define _DT_BINDINGS_STM32MP15_TZC400_H
  7. #include <drivers/arm/tzc_common.h>
  8. #define STM32MP1_TZC_A7_ID U(0)
  9. #define STM32MP1_TZC_M4_ID U(1)
  10. #define STM32MP1_TZC_LCD_ID U(3)
  11. #define STM32MP1_TZC_GPU_ID U(4)
  12. #define STM32MP1_TZC_MDMA_ID U(5)
  13. #define STM32MP1_TZC_DMA_ID U(6)
  14. #define STM32MP1_TZC_USB_HOST_ID U(7)
  15. #define STM32MP1_TZC_USB_OTG_ID U(8)
  16. #define STM32MP1_TZC_SDMMC_ID U(9)
  17. #define STM32MP1_TZC_ETH_ID U(10)
  18. #define STM32MP1_TZC_DAP_ID U(15)
  19. #define TZC_REGION_NSEC_ALL_ACCESS_RDWR \
  20. (TZC_REGION_ACCESS_RDWR(STM32MP1_TZC_A7_ID) | \
  21. TZC_REGION_ACCESS_RDWR(STM32MP1_TZC_GPU_ID) | \
  22. TZC_REGION_ACCESS_RDWR(STM32MP1_TZC_LCD_ID) | \
  23. TZC_REGION_ACCESS_RDWR(STM32MP1_TZC_MDMA_ID) | \
  24. TZC_REGION_ACCESS_RDWR(STM32MP1_TZC_M4_ID) | \
  25. TZC_REGION_ACCESS_RDWR(STM32MP1_TZC_DMA_ID) | \
  26. TZC_REGION_ACCESS_RDWR(STM32MP1_TZC_USB_HOST_ID) | \
  27. TZC_REGION_ACCESS_RDWR(STM32MP1_TZC_USB_OTG_ID) | \
  28. TZC_REGION_ACCESS_RDWR(STM32MP1_TZC_SDMMC_ID) | \
  29. TZC_REGION_ACCESS_RDWR(STM32MP1_TZC_ETH_ID) | \
  30. TZC_REGION_ACCESS_RDWR(STM32MP1_TZC_DAP_ID))
  31. #endif /* _DT_BINDINGS_STM32MP15_TZC400_H */