imx6_reg.h revision 1.1 1 1.1 skrll /* $NetBSD: imx6_reg.h,v 1.1 2020/12/23 14:42:38 skrll 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.1 skrll
38 1.1 skrll #define IMX6_ARMCORE_PBASE IMX6_MPCORE_BASE
39 1.1 skrll #define IMX6_ARMCORE_SIZE IMX6_MPCORE_SIZE
40 1.1 skrll
41 1.1 skrll #define IMX6_IO_SIZE (IMX6_IOREG_SIZE + IMX6_ARMCORE_SIZE)
42 1.1 skrll
43 1.1 skrll #define ARMCORE_SCU_BASE 0x00000000
44 1.1 skrll #define ARMCORE_L2C_BASE 0x00002000
45 1.1 skrll
46 1.1 skrll #define IMX6_MEM_BASE 0x10000000
47 1.1 skrll #define IMX6_MEM_SIZE 0xF0000000
48 1.1 skrll
49 1.1 skrll #define IMX6_CS0_BASE 0x08000000
50 1.1 skrll #define IMX6_CS0_SIZE 0x08000000
51 1.1 skrll
52 1.1 skrll #define IMX6_IPU2_BASE 0x02a00000
53 1.1 skrll #define IMX6_IPU1_BASE 0x02600000
54 1.1 skrll #define IMX6_IPU_SIZE 0x00400000
55 1.1 skrll
56 1.1 skrll #define IMX6_HSI_BASE 0x02208000
57 1.1 skrll #define IMX6_HSI_SIZE 0x00004000
58 1.1 skrll
59 1.1 skrll #define IMX6_OPENVG_BASE 0x02204000
60 1.1 skrll #define IMX6_OPENVG_SIZE 0x00004000
61 1.1 skrll
62 1.1 skrll #define IMX6_SATA_BASE 0x02200000
63 1.1 skrll #define IMX6_SATA_SIZE 0x00004000
64 1.1 skrll
65 1.1 skrll #define IMX6_AIPS2_BASE 0x02100000
66 1.1 skrll #define IMX6_AIPS2_SIZE 0x00100000
67 1.1 skrll
68 1.1 skrll #define IMX6_AIPS1_BASE 0x02000000
69 1.1 skrll #define IMX6_AIPS1_SIZE 0x00100000
70 1.1 skrll
71 1.1 skrll #define IMX6_PCIE_BASE 0x01ffc000
72 1.1 skrll #define IMX6_PCIE_SIZE 0x00004000
73 1.1 skrll
74 1.1 skrll #define IMX6_PCIEMEM_BASE 0x01000000
75 1.1 skrll #define IMX6_PCIEMEM_SIZE 0x00ffc000
76 1.1 skrll
77 1.1 skrll #define IMX6_GPV1_BASE 0x00c00000
78 1.1 skrll #define IMX6_GPV1_SIZE 0x00100000
79 1.1 skrll
80 1.1 skrll #define IMX6_GPV0_BASE 0x00b00000
81 1.1 skrll #define IMX6_GPV0_SIZE 0x00100000
82 1.1 skrll
83 1.1 skrll #define IMX6_L2CC_BASE 0x00a02000
84 1.1 skrll #define IMX6_L2CC_SIZE 0x00001000
85 1.1 skrll
86 1.1 skrll #define IMX6_MPCORE_BASE 0x00a00000
87 1.1 skrll #define IMX6_MPCORE_SIZE 0x00100000
88 1.1 skrll
89 1.1 skrll #define IMX6_OCRAM1_BASE 0x00940000
90 1.1 skrll #define IMX6_OCRAM1_SIZE 0x000c0000
91 1.1 skrll
92 1.1 skrll #define IMX6_OCRAM0_BASE 0x00900000
93 1.1 skrll #define IMX6_OCRAM0_SIZE 0x00040000
94 1.1 skrll
95 1.1 skrll #define IMX6_GPV4_BASE 0x00800000
96 1.1 skrll #define IMX6_GPV4_SIZE 0x00100000
97 1.1 skrll
98 1.1 skrll #define IMX6_GPV3_BASE 0x00300000
99 1.1 skrll #define IMX6_GPV3_SIZE 0x00100000
100 1.1 skrll
101 1.1 skrll #define IMX6_GPV2_BASE 0x00200000
102 1.1 skrll #define IMX6_GPV2_SIZE 0x00100000
103 1.1 skrll
104 1.1 skrll #define IMX6_DTPC_BASE 0x00138000
105 1.1 skrll #define IMX6_DTPC_SIZE 0x00004000
106 1.1 skrll
107 1.1 skrll #define IMX6_GPU2D_BASE 0x00134000
108 1.1 skrll #define IMX6_GPU2D_SIZE 0x00004000
109 1.1 skrll
110 1.1 skrll #define IMX6_GPU3D_BASE 0x00130000
111 1.1 skrll #define IMX6_GPU3D_SIZE 0x00004000
112 1.1 skrll
113 1.1 skrll #define IMX6_HDMI_BASE 0x00120000
114 1.1 skrll #define IMX6_HDMI_SIZE 0x00009000
115 1.1 skrll
116 1.1 skrll #define IMX6_APBHDMA_BASE 0x00110000
117 1.1 skrll #define IMX6_APBHDMA_SIZE 0x00002000
118 1.1 skrll
119 1.1 skrll #define IMX6_GPMI_BASE 0x00112000
120 1.1 skrll #define IMX6_GPMI_SIZE 0x00002000
121 1.1 skrll
122 1.1 skrll #define IMX6_BCH_BASE 0x00114000
123 1.1 skrll #define IMX6_BCH_SIZE 0x00004000
124 1.1 skrll
125 1.1 skrll #define IMX6_CAAM_BASE 0x00100000
126 1.1 skrll #define IMX6_CAAM_SIZE 0x00004000
127 1.1 skrll
128 1.1 skrll #define IMX6_ROMCP_BASE 0x00000000
129 1.1 skrll #define IMX6_ROMCP_SIZE 0x00018000
130 1.1 skrll
131 1.1 skrll #define AIPS1_SDMA_BASE 0x000ec000
132 1.1 skrll #define AIPS1_DCIC2_BASE 0x000e8000
133 1.1 skrll #define AIPS1_DCIC1_BASE 0x000e4000
134 1.1 skrll #define AIPS1_IOMUXC_BASE 0x000e0000
135 1.1 skrll #define AIPS1_IOMUXC_SIZE 0x00004000
136 1.1 skrll #define AIPS1_GPC_BASE 0x000dc000
137 1.1 skrll #define AIPS1_SRC_BASE 0x000d8000
138 1.1 skrll #define AIPS1_SRC_SIZE 0x00004000
139 1.1 skrll #define AIPS1_EPIT2_BASE 0x000d4000
140 1.1 skrll #define AIPS1_EPIT1_BASE 0x000d0000
141 1.1 skrll #define AIPS1_EPIT_SIZE 0x00000020
142 1.1 skrll #define AIPS1_SNVS_BASE 0x000cc000
143 1.1 skrll #define AIPS1_SNVS_SIZE 0x00000c00
144 1.1 skrll #define AIPS1_USBPHY2_BASE 0x000ca000
145 1.1 skrll #define AIPS1_USBPHY1_BASE 0x000c9000
146 1.1 skrll #define AIPS1_USBPHY_SIZE 0x00001000
147 1.1 skrll
148 1.1 skrll #define AIPS1_CCM_BASE 0x000c4000
149 1.1 skrll #define AIPS1_CCM_SIZE 0x00004000
150 1.1 skrll
151 1.1 skrll #define AIPS1_WDOG2_BASE 0x000c0000
152 1.1 skrll #define AIPS1_WDOG1_BASE 0x000bc000
153 1.1 skrll #define AIPS1_WDOG_SIZE 0x00000010
154 1.1 skrll #define AIPS1_KPP_BASE 0x000b8000
155 1.1 skrll #define AIPS1_ENET2_BASE 0x000b4000 /* iMX6UL */
156 1.1 skrll #define AIPS1_GPIO7_BASE 0x000b4000
157 1.1 skrll #define AIPS1_GPIO6_BASE 0x000b0000
158 1.1 skrll #define AIPS1_GPIO5_BASE 0x000ac000
159 1.1 skrll #define AIPS1_GPIO4_BASE 0x000a8000
160 1.1 skrll #define AIPS1_GPIO3_BASE 0x000a4000
161 1.1 skrll #define AIPS1_GPIO2_BASE 0x000a0000
162 1.1 skrll #define AIPS1_GPIO1_BASE 0x0009c000
163 1.1 skrll #define GPIO_NGROUPS 7
164 1.1 skrll #define AIPS1_GPT_BASE 0x00098000
165 1.1 skrll #define AIPS1_CAN2_BASE 0x00094000
166 1.1 skrll #define AIPS1_CAN1_BASE 0x00090000
167 1.1 skrll #define AIPS1_PWM4_BASE 0x0008c000
168 1.1 skrll #define AIPS1_PWM3_BASE 0x00088000
169 1.1 skrll #define AIPS1_PWM2_BASE 0x00084000
170 1.1 skrll #define AIPS1_PWM1_BASE 0x00080000
171 1.1 skrll #define AIPS1_CONFIG_BASE 0x0007c000
172 1.1 skrll #define AIPS1_VPU_BASE 0x00040000
173 1.1 skrll #define AIPS1_SPBA_BASE 0x0003c000
174 1.1 skrll #define AIPS1_ASRC_BASE 0x00034000
175 1.1 skrll #define AIPS1_SSI3_BASE 0x00030000
176 1.1 skrll #define AIPS1_SSI2_BASE 0x0002c000
177 1.1 skrll #define AIPS1_SSI1_BASE 0x00028000
178 1.1 skrll #define AIPS1_ESAI_BASE 0x00024000
179 1.1 skrll #define AIPS1_UART1_BASE 0x00020000
180 1.1 skrll #define AIPS1_UART7_BASE 0x00018000 /* iMX6UL */
181 1.1 skrll #define AIPS1_ECSPI5_BASE 0x00018000
182 1.1 skrll #define AIPS1_ECSPI4_BASE 0x00014000
183 1.1 skrll #define AIPS1_ECSPI3_BASE 0x00010000
184 1.1 skrll #define AIPS1_ECSPI2_BASE 0x0000c000
185 1.1 skrll #define AIPS1_ECSPI1_BASE 0x00008000
186 1.1 skrll #define AIPS1_SPDIF_BASE 0x00004000
187 1.1 skrll
188 1.1 skrll #define AIPS2_UART6_BASE 0x000fc000 /* iMX6UL */
189 1.1 skrll #define AIPS2_UART5_BASE 0x000f4000
190 1.1 skrll #define AIPS2_UART4_BASE 0x000f0000
191 1.1 skrll #define AIPS2_UART3_BASE 0x000ec000
192 1.1 skrll #define AIPS2_UART2_BASE 0x000e8000
193 1.1 skrll #define AIPS2_WDOG3_BASE 0x000e4000 /* iMX6UL */
194 1.1 skrll #define AIPS2_VDOA_BASE 0x000e3000
195 1.1 skrll #define AIPS2_MIPIDSI_BASE 0x000e0000
196 1.1 skrll #define AIPS2_MIPICSI_BASE 0x000dc000
197 1.1 skrll #define AIPS2_AUDMUX_BASE 0x000d8000
198 1.1 skrll #define AIPS2_TZASC2_BASE 0x000d4000
199 1.1 skrll #define AIPS2_TZASC1_BASE 0x000d0000
200 1.1 skrll #define AIPS2_CSU_BASE 0x000c0000
201 1.1 skrll #define AIPS2_OCOTP_CTRL_BASE 0x000bc000
202 1.1 skrll #define AIPS2_OCOTP_CTRL_SIZE 0x00000700
203 1.1 skrll #define AIPS2_WEIM_BASE 0x000b8000
204 1.1 skrll #define AIPS2_MMDC2_BASE 0x000b4000
205 1.1 skrll #define AIPS2_MMDC1_BASE 0x000b0000
206 1.1 skrll #define AIPS2_ROMCP_BASE 0x000ac000
207 1.1 skrll
208 1.1 skrll #define AIPS2_I2C3_BASE 0x000a8000
209 1.1 skrll #define AIPS2_I2C2_BASE 0x000a4000
210 1.1 skrll #define AIPS2_I2C1_BASE 0x000a0000
211 1.1 skrll #define I2C_SIZE 0x4000
212 1.1 skrll
213 1.1 skrll #define AIPS2_USDHC4_BASE 0x0009c000
214 1.1 skrll #define AIPS2_USDHC3_BASE 0x00098000
215 1.1 skrll #define AIPS2_USDHC2_BASE 0x00094000
216 1.1 skrll #define AIPS2_USDHC1_BASE 0x00090000
217 1.1 skrll #define AIPS2_USDHC_SIZE 0x000000d0
218 1.1 skrll #define AIPS2_MLB150_BASE 0x0008c000
219 1.1 skrll #define AIPS2_ENET_BASE 0x00088000
220 1.1 skrll #define AIPS2_USBOH_BASE 0x00084000
221 1.1 skrll #define AIPS2_USBOH_SIZE 0x00000800
222 1.1 skrll #define AIPS2_CONFIG_BASE 0x0007c000
223 1.1 skrll #define AIPS2_DAP_BASE 0x00040000
224 1.1 skrll #define AIPS2_CAAM_BASE 0x00000000
225 1.1 skrll
226 1.1 skrll #endif /* _ARM_NXP_IMX6_REG_H_ */
227