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