stm32mp13-tzc400.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause
  3. *
  4. * Copyright (C) 2022, STMicroelectronics - All Rights Reserved
  5. */
  6. #ifndef _DT_BINDINGS_STM32MP13_TZC400_H
  7. #define _DT_BINDINGS_STM32MP13_TZC400_H
  8. #include <drivers/arm/tzc_common.h>
  9. #define STM32MP1_TZC_A7_ID U(0)
  10. #define STM32MP1_TZC_LCD_ID U(3)
  11. #define STM32MP1_TZC_MDMA_ID U(5)
  12. #define STM32MP1_TZC_DMA_ID U(6)
  13. #define STM32MP1_TZC_USB_HOST_ID U(7)
  14. #define STM32MP1_TZC_USB_OTG_ID U(8)
  15. #define STM32MP1_TZC_SDMMC_ID U(9)
  16. #define STM32MP1_TZC_ETH_ID U(10)
  17. #define STM32MP1_TZC_DCMIPP_ID U(11)
  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_LCD_ID) | \
  22. TZC_REGION_ACCESS_RDWR(STM32MP1_TZC_MDMA_ID) | \
  23. TZC_REGION_ACCESS_RDWR(STM32MP1_TZC_DMA_ID) | \
  24. TZC_REGION_ACCESS_RDWR(STM32MP1_TZC_USB_HOST_ID) | \
  25. TZC_REGION_ACCESS_RDWR(STM32MP1_TZC_USB_OTG_ID) | \
  26. TZC_REGION_ACCESS_RDWR(STM32MP1_TZC_SDMMC_ID) | \
  27. TZC_REGION_ACCESS_RDWR(STM32MP1_TZC_ETH_ID) | \
  28. TZC_REGION_ACCESS_RDWR(STM32MP1_TZC_DCMIPP_ID) | \
  29. TZC_REGION_ACCESS_RDWR(STM32MP1_TZC_DAP_ID))
  30. #endif /* _DT_BINDINGS_STM32MP13_TZC400_H */