blob: 1cb2326ed9b578f4d209f56463285ade96d740d6 [file] [log] [blame]
Yann Gautier3a58df42020-10-16 18:59:33 +02001/*
2 * SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause
3 *
4 * Copyright (C) 2022, STMicroelectronics - All Rights Reserved
5 */
6
7#ifndef _DT_BINDINGS_STM32MP13_TZC400_H
8#define _DT_BINDINGS_STM32MP13_TZC400_H
9
10#include <drivers/arm/tzc_common.h>
11
12#define STM32MP1_TZC_A7_ID U(0)
13#define STM32MP1_TZC_LCD_ID U(3)
14#define STM32MP1_TZC_MDMA_ID U(5)
15#define STM32MP1_TZC_DMA_ID U(6)
16#define STM32MP1_TZC_USB_HOST_ID U(7)
17#define STM32MP1_TZC_USB_OTG_ID U(8)
18#define STM32MP1_TZC_SDMMC_ID U(9)
19#define STM32MP1_TZC_ETH_ID U(10)
20#define STM32MP1_TZC_DCMIPP_ID U(11)
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_LCD_ID) | \
26 TZC_REGION_ACCESS_RDWR(STM32MP1_TZC_MDMA_ID) | \
27 TZC_REGION_ACCESS_RDWR(STM32MP1_TZC_DMA_ID) | \
28 TZC_REGION_ACCESS_RDWR(STM32MP1_TZC_USB_HOST_ID) | \
29 TZC_REGION_ACCESS_RDWR(STM32MP1_TZC_USB_OTG_ID) | \
30 TZC_REGION_ACCESS_RDWR(STM32MP1_TZC_SDMMC_ID) | \
31 TZC_REGION_ACCESS_RDWR(STM32MP1_TZC_ETH_ID) | \
32 TZC_REGION_ACCESS_RDWR(STM32MP1_TZC_DCMIPP_ID) | \
33 TZC_REGION_ACCESS_RDWR(STM32MP1_TZC_DAP_ID))
34
35#endif /* _DT_BINDINGS_STM32MP13_TZC400_H */