xref: /optee_os/core/arch/arm/plat-imx/registers/imx7.h (revision e7778701281afbc653e3c920506ddd138462211a)
1 /* SPDX-License-Identifier: BSD-2-Clause */
2 /*
3  * Copyright 2017-2019 NXP
4  */
5 #ifndef __IMX7_H__
6 #define __IMX7_H__
7 
8 #include <registers/imx7-crm.h>
9 
10 #define GIC_BASE		0x31000000
11 #define GIC_SIZE		0x8000
12 #define GICC_OFFSET		0x2000
13 #define GICD_OFFSET		0x1000
14 
15 #define CAAM_BASE		0x30900000
16 #define CAAM_SIZE		0x40000
17 #define UART1_BASE		0x30860000
18 #define UART2_BASE		0x30890000
19 #define UART3_BASE		0x30880000
20 #define UART4_BASE		0x30A60000
21 #define UART5_BASE		0x30A70000
22 
23 #define AIPS1_BASE		0x30000000
24 #define AIPS1_SIZE		0x400000
25 #define AIPS2_BASE		0x30400000
26 #define AIPS2_SIZE		0x400000
27 #define AIPS3_BASE		0x30800000
28 #define AIPS3_SIZE		0x400000
29 
30 #define WDOG_BASE		0x30280000
31 #define LPSR_BASE		0x30270000
32 #define IOMUXC_BASE		0x30330000
33 #define IOMUXC_SIZE		0x4000
34 #define IOMUXC_GPR_BASE		0x30340000
35 #define OCOTP_BASE		0x30350000
36 #define OCOTP_SIZE		0x10000
37 #define ANATOP_BASE		0x30360000
38 #define SNVS_BASE		0x30370000
39 #define SNVS_SIZE		0x10000
40 #define CCM_BASE		0x30380000
41 #define CCM_SIZE		0x10000
42 #define SRC_BASE		0x30390000
43 #define SRC_SIZE		0x4000
44 #define GPC_BASE		0x303A0000
45 #define GPC_SIZE		0x4000
46 #define CSU_BASE		0x303E0000
47 #define TZASC_BASE		0x30780000
48 #define TZASC_SIZE		0x10000
49 #define DDRC_PHY_BASE		0x30790000
50 #define MMDC_P0_BASE		0x307A0000
51 #define DDRC_BASE		0x307A0000
52 #define IRAM_BASE		0x00900000
53 #define IRAM_S_BASE		0x00180000
54 
55 #define CSU_CSL_START		0x0
56 #define CSU_CSL_END		0x100
57 #define	CSU_ACCESS_ALL		0x00FF00FF
58 #define CSU_SETTING_LOCK	0x01000100
59 #define CSU_SA			0x218
60 
61 #define TRUSTZONE_OCRAM_START	0x180000
62 
63 #define IOMUXC_GPR9_OFFSET				0x24
64 #define IOMUXC_GPR9_TZASC1_MUX_CONTROL_OFFSET		0
65 
66 #define IOMUXC_GPR11_OFFSET				0x2C
67 #define IOMUXC_GPR11_OCRAM_S_TZ_ADDR_OFFSET		11
68 #define IOMUXC_GPR11_OCRAM_S_TZ_ADDR_MASK		GENMASK_32(13, 11)
69 
70 #define IOMUXC_GPR11_OCRAM_S_TZ_EN_OFFSET		10
71 #define IOMUXC_GPR11_OCRAM_S_TZ_EN_MASK			GENMASK_32(10, 10)
72 
73 #define IOMUXC_GPR11_OCRAM_S_TZ_EN_LOCK_OFFSET		26
74 #define IOMUXC_GPR11_OCRAM_S_TZ_EN_LOCK_MASK		GENMASK_32(26, 26)
75 #define IOMUXC_GPR11_OCRAM_S_TZ_ADDR_LOCK_OFFSET	GENMASK_32(29, 27)
76 
77 #define DIGPROG_OFFSET	0x800
78 
79 #endif /* __IMX7_H__ */
80