imx6_reg.h revision 1.2 1 1.2 bouyer /* $NetBSD: imx6_reg.h,v 1.2 2023/05/04 13:28:04 bouyer Exp $ */
2 1.1 skrll
3 1.1 skrll /*-
4 1.1 skrll * Copyright (c) 2012 The NetBSD Foundation, Inc.
5 1.1 skrll * All rights reserved.
6 1.1 skrll *
7 1.1 skrll * This code is derived from software contributed to The NetBSD Foundation
8 1.1 skrll * by Matt Thomas of 3am Software Foundry.
9 1.1 skrll *
10 1.1 skrll * Redistribution and use in source and binary forms, with or without
11 1.1 skrll * modification, are permitted provided that the following conditions
12 1.1 skrll * are met:
13 1.1 skrll * 1. Redistributions of source code must retain the above copyright
14 1.1 skrll * notice, this list of conditions and the following disclaimer.
15 1.1 skrll * 2. Redistributions in binary form must reproduce the above copyright
16 1.1 skrll * notice, this list of conditions and the following disclaimer in the
17 1.1 skrll * documentation and/or other materials provided with the distribution.
18 1.1 skrll *
19 1.1 skrll * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
20 1.1 skrll * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21 1.1 skrll * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22 1.1 skrll * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
23 1.1 skrll * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24 1.1 skrll * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25 1.1 skrll * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26 1.1 skrll * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27 1.1 skrll * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28 1.1 skrll * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29 1.1 skrll * POSSIBILITY OF SUCH DAMAGE.
30 1.1 skrll */
31 1.1 skrll
32 1.1 skrll #ifndef _ARM_NXP_IMX6_REG_H_
33 1.1 skrll #define _ARM_NXP_IMX6_REG_H_
34 1.1 skrll
35 1.1 skrll #define IMX6_IOREG_PBASE IMX6_AIPS1_BASE
36 1.1 skrll #define IMX6_IOREG_SIZE (IMX6_AIPS1_SIZE + IMX6_AIPS2_SIZE)
37 1.2 bouyer #define IMX6SX_IOREG_SIZE (IMX6_AIPS1_SIZE + IMX6_AIPS2_SIZE + IMX6_AIPS3_SIZE)
38 1.1 skrll
39 1.1 skrll #define IMX6_ARMCORE_PBASE IMX6_MPCORE_BASE
40 1.1 skrll #define IMX6_ARMCORE_SIZE IMX6_MPCORE_SIZE
41 1.1 skrll
42 1.1 skrll #define IMX6_IO_SIZE (IMX6_IOREG_SIZE + IMX6_ARMCORE_SIZE)
43 1.1 skrll
44 1.1 skrll #define ARMCORE_SCU_BASE 0x00000000
45 1.1 skrll #define ARMCORE_L2C_BASE 0x00002000
46 1.1 skrll
47 1.1 skrll #define IMX6_MEM_BASE 0x10000000
48 1.1 skrll #define IMX6_MEM_SIZE 0xF0000000
49 1.1 skrll
50 1.1 skrll #define IMX6_CS0_BASE 0x08000000
51 1.1 skrll #define IMX6_CS0_SIZE 0x08000000
52 1.1 skrll
53 1.1 skrll #define IMX6_IPU2_BASE 0x02a00000
54 1.1 skrll #define IMX6_IPU1_BASE 0x02600000
55 1.1 skrll #define IMX6_IPU_SIZE 0x00400000
56 1.1 skrll
57 1.1 skrll #define IMX6_HSI_BASE 0x02208000
58 1.1 skrll #define IMX6_HSI_SIZE 0x00004000
59 1.1 skrll
60 1.1 skrll #define IMX6_OPENVG_BASE 0x02204000
61 1.1 skrll #define IMX6_OPENVG_SIZE 0x00004000
62 1.1 skrll
63 1.1 skrll #define IMX6_SATA_BASE 0x02200000
64 1.1 skrll #define IMX6_SATA_SIZE 0x00004000
65 1.1 skrll
66 1.2 bouyer #define IMX6_AIPS3_BASE 0x02200000
67 1.2 bouyer #define IMX6_AIPS3_SIZE 0x00100000
68 1.2 bouyer
69 1.1 skrll #define IMX6_AIPS2_BASE 0x02100000
70 1.1 skrll #define IMX6_AIPS2_SIZE 0x00100000
71 1.1 skrll
72 1.1 skrll #define IMX6_AIPS1_BASE 0x02000000
73 1.1 skrll #define IMX6_AIPS1_SIZE 0x00100000
74 1.1 skrll
75 1.1 skrll #define IMX6_PCIE_BASE 0x01ffc000
76 1.1 skrll #define IMX6_PCIE_SIZE 0x00004000
77 1.1 skrll
78 1.1 skrll #define IMX6_PCIEMEM_BASE 0x01000000
79 1.1 skrll #define IMX6_PCIEMEM_SIZE 0x00ffc000
80 1.1 skrll
81 1.1 skrll #define IMX6_GPV1_BASE 0x00c00000
82 1.1 skrll #define IMX6_GPV1_SIZE 0x00100000
83 1.1 skrll
84 1.1 skrll #define IMX6_GPV0_BASE 0x00b00000
85 1.1 skrll #define IMX6_GPV0_SIZE 0x00100000
86 1.1 skrll
87 1.1 skrll #define IMX6_L2CC_BASE 0x00a02000
88 1.1 skrll #define IMX6_L2CC_SIZE 0x00001000
89 1.1 skrll
90 1.1 skrll #define IMX6_MPCORE_BASE 0x00a00000
91 1.1 skrll #define IMX6_MPCORE_SIZE 0x00100000
92 1.1 skrll
93 1.1 skrll #define IMX6_OCRAM1_BASE 0x00940000
94 1.1 skrll #define IMX6_OCRAM1_SIZE 0x000c0000
95 1.1 skrll
96 1.1 skrll #define IMX6_OCRAM0_BASE 0x00900000
97 1.1 skrll #define IMX6_OCRAM0_SIZE 0x00040000
98 1.1 skrll
99 1.1 skrll #define IMX6_GPV4_BASE 0x00800000
100 1.1 skrll #define IMX6_GPV4_SIZE 0x00100000
101 1.1 skrll
102 1.1 skrll #define IMX6_GPV3_BASE 0x00300000
103 1.1 skrll #define IMX6_GPV3_SIZE 0x00100000
104 1.1 skrll
105 1.1 skrll #define IMX6_GPV2_BASE 0x00200000
106 1.1 skrll #define IMX6_GPV2_SIZE 0x00100000
107 1.1 skrll
108 1.1 skrll #define IMX6_DTPC_BASE 0x00138000
109 1.1 skrll #define IMX6_DTPC_SIZE 0x00004000
110 1.1 skrll
111 1.1 skrll #define IMX6_GPU2D_BASE 0x00134000
112 1.1 skrll #define IMX6_GPU2D_SIZE 0x00004000
113 1.1 skrll
114 1.1 skrll #define IMX6_GPU3D_BASE 0x00130000
115 1.1 skrll #define IMX6_GPU3D_SIZE 0x00004000
116 1.1 skrll
117 1.1 skrll #define IMX6_HDMI_BASE 0x00120000
118 1.1 skrll #define IMX6_HDMI_SIZE 0x00009000
119 1.1 skrll
120 1.1 skrll #define IMX6_APBHDMA_BASE 0x00110000
121 1.1 skrll #define IMX6_APBHDMA_SIZE 0x00002000
122 1.1 skrll
123 1.1 skrll #define IMX6_GPMI_BASE 0x00112000
124 1.1 skrll #define IMX6_GPMI_SIZE 0x00002000
125 1.1 skrll
126 1.1 skrll #define IMX6_BCH_BASE 0x00114000
127 1.1 skrll #define IMX6_BCH_SIZE 0x00004000
128 1.1 skrll
129 1.1 skrll #define IMX6_CAAM_BASE 0x00100000
130 1.1 skrll #define IMX6_CAAM_SIZE 0x00004000
131 1.1 skrll
132 1.1 skrll #define IMX6_ROMCP_BASE 0x00000000
133 1.1 skrll #define IMX6_ROMCP_SIZE 0x00018000
134 1.1 skrll
135 1.1 skrll #define AIPS1_SDMA_BASE 0x000ec000
136 1.1 skrll #define AIPS1_DCIC2_BASE 0x000e8000
137 1.1 skrll #define AIPS1_DCIC1_BASE 0x000e4000
138 1.1 skrll #define AIPS1_IOMUXC_BASE 0x000e0000
139 1.1 skrll #define AIPS1_IOMUXC_SIZE 0x00004000
140 1.1 skrll #define AIPS1_GPC_BASE 0x000dc000
141 1.1 skrll #define AIPS1_SRC_BASE 0x000d8000
142 1.1 skrll #define AIPS1_SRC_SIZE 0x00004000
143 1.1 skrll #define AIPS1_EPIT2_BASE 0x000d4000
144 1.1 skrll #define AIPS1_EPIT1_BASE 0x000d0000
145 1.1 skrll #define AIPS1_EPIT_SIZE 0x00000020
146 1.1 skrll #define AIPS1_SNVS_BASE 0x000cc000
147 1.1 skrll #define AIPS1_SNVS_SIZE 0x00000c00
148 1.1 skrll #define AIPS1_USBPHY2_BASE 0x000ca000
149 1.1 skrll #define AIPS1_USBPHY1_BASE 0x000c9000
150 1.1 skrll #define AIPS1_USBPHY_SIZE 0x00001000
151 1.1 skrll
152 1.1 skrll #define AIPS1_CCM_BASE 0x000c4000
153 1.1 skrll #define AIPS1_CCM_SIZE 0x00004000
154 1.1 skrll
155 1.1 skrll #define AIPS1_WDOG2_BASE 0x000c0000
156 1.1 skrll #define AIPS1_WDOG1_BASE 0x000bc000
157 1.1 skrll #define AIPS1_WDOG_SIZE 0x00000010
158 1.1 skrll #define AIPS1_KPP_BASE 0x000b8000
159 1.1 skrll #define AIPS1_ENET2_BASE 0x000b4000 /* iMX6UL */
160 1.1 skrll #define AIPS1_GPIO7_BASE 0x000b4000
161 1.1 skrll #define AIPS1_GPIO6_BASE 0x000b0000
162 1.1 skrll #define AIPS1_GPIO5_BASE 0x000ac000
163 1.1 skrll #define AIPS1_GPIO4_BASE 0x000a8000
164 1.1 skrll #define AIPS1_GPIO3_BASE 0x000a4000
165 1.1 skrll #define AIPS1_GPIO2_BASE 0x000a0000
166 1.1 skrll #define AIPS1_GPIO1_BASE 0x0009c000
167 1.1 skrll #define GPIO_NGROUPS 7
168 1.1 skrll #define AIPS1_GPT_BASE 0x00098000
169 1.1 skrll #define AIPS1_CAN2_BASE 0x00094000
170 1.1 skrll #define AIPS1_CAN1_BASE 0x00090000
171 1.1 skrll #define AIPS1_PWM4_BASE 0x0008c000
172 1.1 skrll #define AIPS1_PWM3_BASE 0x00088000
173 1.1 skrll #define AIPS1_PWM2_BASE 0x00084000
174 1.1 skrll #define AIPS1_PWM1_BASE 0x00080000
175 1.1 skrll #define AIPS1_CONFIG_BASE 0x0007c000
176 1.1 skrll #define AIPS1_VPU_BASE 0x00040000
177 1.1 skrll #define AIPS1_SPBA_BASE 0x0003c000
178 1.1 skrll #define AIPS1_ASRC_BASE 0x00034000
179 1.1 skrll #define AIPS1_SSI3_BASE 0x00030000
180 1.1 skrll #define AIPS1_SSI2_BASE 0x0002c000
181 1.1 skrll #define AIPS1_SSI1_BASE 0x00028000
182 1.1 skrll #define AIPS1_ESAI_BASE 0x00024000
183 1.1 skrll #define AIPS1_UART1_BASE 0x00020000
184 1.1 skrll #define AIPS1_UART7_BASE 0x00018000 /* iMX6UL */
185 1.1 skrll #define AIPS1_ECSPI5_BASE 0x00018000
186 1.1 skrll #define AIPS1_ECSPI4_BASE 0x00014000
187 1.1 skrll #define AIPS1_ECSPI3_BASE 0x00010000
188 1.1 skrll #define AIPS1_ECSPI2_BASE 0x0000c000
189 1.1 skrll #define AIPS1_ECSPI1_BASE 0x00008000
190 1.1 skrll #define AIPS1_SPDIF_BASE 0x00004000
191 1.1 skrll
192 1.1 skrll #define AIPS2_UART6_BASE 0x000fc000 /* iMX6UL */
193 1.1 skrll #define AIPS2_UART5_BASE 0x000f4000
194 1.1 skrll #define AIPS2_UART4_BASE 0x000f0000
195 1.1 skrll #define AIPS2_UART3_BASE 0x000ec000
196 1.1 skrll #define AIPS2_UART2_BASE 0x000e8000
197 1.1 skrll #define AIPS2_WDOG3_BASE 0x000e4000 /* iMX6UL */
198 1.1 skrll #define AIPS2_VDOA_BASE 0x000e3000
199 1.1 skrll #define AIPS2_MIPIDSI_BASE 0x000e0000
200 1.1 skrll #define AIPS2_MIPICSI_BASE 0x000dc000
201 1.1 skrll #define AIPS2_AUDMUX_BASE 0x000d8000
202 1.1 skrll #define AIPS2_TZASC2_BASE 0x000d4000
203 1.1 skrll #define AIPS2_TZASC1_BASE 0x000d0000
204 1.1 skrll #define AIPS2_CSU_BASE 0x000c0000
205 1.1 skrll #define AIPS2_OCOTP_CTRL_BASE 0x000bc000
206 1.1 skrll #define AIPS2_OCOTP_CTRL_SIZE 0x00000700
207 1.1 skrll #define AIPS2_WEIM_BASE 0x000b8000
208 1.1 skrll #define AIPS2_MMDC2_BASE 0x000b4000
209 1.1 skrll #define AIPS2_MMDC1_BASE 0x000b0000
210 1.1 skrll #define AIPS2_ROMCP_BASE 0x000ac000
211 1.1 skrll
212 1.1 skrll #define AIPS2_I2C3_BASE 0x000a8000
213 1.1 skrll #define AIPS2_I2C2_BASE 0x000a4000
214 1.1 skrll #define AIPS2_I2C1_BASE 0x000a0000
215 1.1 skrll #define I2C_SIZE 0x4000
216 1.1 skrll
217 1.1 skrll #define AIPS2_USDHC4_BASE 0x0009c000
218 1.1 skrll #define AIPS2_USDHC3_BASE 0x00098000
219 1.1 skrll #define AIPS2_USDHC2_BASE 0x00094000
220 1.1 skrll #define AIPS2_USDHC1_BASE 0x00090000
221 1.1 skrll #define AIPS2_USDHC_SIZE 0x000000d0
222 1.1 skrll #define AIPS2_MLB150_BASE 0x0008c000
223 1.1 skrll #define AIPS2_ENET_BASE 0x00088000
224 1.1 skrll #define AIPS2_USBOH_BASE 0x00084000
225 1.1 skrll #define AIPS2_USBOH_SIZE 0x00000800
226 1.1 skrll #define AIPS2_CONFIG_BASE 0x0007c000
227 1.1 skrll #define AIPS2_DAP_BASE 0x00040000
228 1.1 skrll #define AIPS2_CAAM_BASE 0x00000000
229 1.1 skrll
230 1.1 skrll #endif /* _ARM_NXP_IMX6_REG_H_ */
231