xref: /openbmc/u-boot/board/micronas/vct/vcth/reg_ebi.h (revision ee7bb5be)
1 /*
2  * (C) Copyright 2008 Stefan Roese <sr@denx.de>, DENX Software Engineering
3  *
4  * Copyright (C) 2006 Micronas GmbH
5  *
6  * SPDX-License-Identifier:	GPL-2.0+
7  */
8 
9 #ifndef _REG_EBI_PREMIUM_H_
10 #define _REG_EBI_PREMIUM_H_
11 
12 #define EBI_BASE			0x00000000
13 
14 /*  Relative offsets of the register adresses */
15 
16 #define EBI_CPU_IO_ACCS_OFFS		0x00000000
17 #define EBI_CPU_IO_ACCS(base)		((base) + EBI_CPU_IO_ACCS_OFFS)
18 #define EBI_IO_ACCS_DATA_OFFS		0x00000004
19 #define EBI_IO_ACCS_DATA(base)		((base) + EBI_IO_ACCS_DATA_OFFS)
20 #define EBI_CTRL_OFFS			0x00000008
21 #define EBI_CTRL(base)			((base) + EBI_CTRL_OFFS)
22 #define EBI_IRQ_MASK_OFFS		0x00000010
23 #define EBI_IRQ_MASK(base)		((base) + EBI_IRQ_MASK_OFFS)
24 #define EBI_TAG1_SYS_ID_OFFS		0x00000030
25 #define EBI_TAG1_SYS_ID(base)		((base) + EBI_TAG1_SYS_ID_OFFS)
26 #define EBI_TAG2_SYS_ID_OFFS		0x00000040
27 #define EBI_TAG2_SYS_ID(base)		((base) + EBI_TAG2_SYS_ID_OFFS)
28 #define EBI_TAG3_SYS_ID_OFFS		0x00000050
29 #define EBI_TAG3_SYS_ID(base)		((base) + EBI_TAG3_SYS_ID_OFFS)
30 #define EBI_TAG4_SYS_ID_OFFS		0x00000060
31 #define EBI_TAG4_SYS_ID(base)		((base) + EBI_TAG4_SYS_ID_OFFS)
32 #define EBI_GEN_DMA_CTRL_OFFS		0x00000070
33 #define EBI_GEN_DMA_CTRL(base)		((base) + EBI_GEN_DMA_CTRL_OFFS)
34 #define EBI_STATUS_OFFS			0x00000080
35 #define EBI_STATUS(base)		((base) + EBI_STATUS_OFFS)
36 #define EBI_STATUS_DMA_CNT_OFFS		0x00000084
37 #define EBI_STATUS_DMA_CNT(base)	((base) + EBI_STATUS_DMA_CNT_OFFS)
38 #define EBI_SIG_LEVEL_OFFS		0x00000088
39 #define EBI_SIG_LEVEL(base)		((base) + EBI_SIG_LEVEL_OFFS)
40 #define EBI_CTRL_SIG_ACTLV_OFFS		0x0000008C
41 #define EBI_CTRL_SIG_ACTLV(base)	((base) + EBI_CTRL_SIG_ACTLV_OFFS)
42 #define EBI_EXT_ADDR_OFFS		0x000000A0
43 #define EBI_EXT_ADDR(base)		((base) + EBI_EXT_ADDR_OFFS)
44 #define EBI_IRQ_STATUS_OFFS		0x000000B0
45 #define EBI_IRQ_STATUS(base)		((base) + EBI_IRQ_STATUS_OFFS)
46 #define EBI_DEV1_DMA_EXT_ADDR_OFFS	0x00000100
47 #define EBI_DEV1_DMA_EXT_ADDR(base)	((base) + EBI_DEV1_DMA_EXT_ADDR_OFFS)
48 #define EBI_DEV1_EXT_ACC_OFFS		0x00000104
49 #define EBI_DEV1_EXT_ACC(base)		((base) + EBI_DEV1_EXT_ACC_OFFS)
50 #define EBI_DEV1_CONFIG1_OFFS		0x00000108
51 #define EBI_DEV1_CONFIG1(base)		((base) + EBI_DEV1_CONFIG1_OFFS)
52 #define EBI_DEV1_CONFIG2_OFFS		0x0000010C
53 #define EBI_DEV1_CONFIG2(base)		((base) + EBI_DEV1_CONFIG2_OFFS)
54 #define EBI_DEV1_FIFO_CONFIG_OFFS	0x00000110
55 #define EBI_DEV1_FIFO_CONFIG(base) 	((base) + EBI_DEV1_FIFO_CONFIG_OFFS)
56 #define EBI_DEV1_FLASH_CONF_ST_OFFS	0x00000114
57 #define EBI_DEV1_FLASH_CONF_ST(base)	((base) + EBI_DEV1_FLASH_CONF_ST_OFFS)
58 #define EBI_DEV1_DMA_CONFIG1_OFFS	0x00000118
59 #define EBI_DEV1_DMA_CONFIG1(base)	((base) + EBI_DEV1_DMA_CONFIG1_OFFS)
60 #define EBI_DEV1_DMA_CONFIG2_OFFS	0x0000011C
61 #define EBI_DEV1_DMA_CONFIG2(base)	((base) + EBI_DEV1_DMA_CONFIG2_OFFS)
62 #define EBI_DEV1_TIM1_RD1_OFFS		0x00000124
63 #define EBI_DEV1_TIM1_RD1(base)		((base) + EBI_DEV1_TIM1_RD1_OFFS)
64 #define EBI_DEV1_TIM1_RD2_OFFS		0x00000128
65 #define EBI_DEV1_TIM1_RD2(base)		((base) + EBI_DEV1_TIM1_RD2_OFFS)
66 #define EBI_DEV1_TIM1_WR1_OFFS		0x0000012C
67 #define EBI_DEV1_TIM1_WR1(base)		((base) + EBI_DEV1_TIM1_WR1_OFFS)
68 #define EBI_DEV1_TIM1_WR2_OFFS		0x00000130
69 #define EBI_DEV1_TIM1_WR2(base)		((base) + EBI_DEV1_TIM1_WR2_OFFS)
70 #define EBI_DEV1_TIM_EXT_OFFS		0x00000134
71 #define EBI_DEV1_TIM_EXT(base)		((base) + EBI_DEV1_TIM_EXT_OFFS)
72 #define EBI_DEV1_TIM2_CFI_RD1_OFFS	0x00000138
73 #define EBI_DEV1_TIM2_CFI_RD1(base)	((base) + EBI_DEV1_TIM2_CFI_RD1_OFFS)
74 #define EBI_DEV1_TIM2_CFI_RD2_OFFS	0x0000013C
75 #define EBI_DEV1_TIM2_CFI_RD2(base)	((base) + EBI_DEV1_TIM2_CFI_RD2_OFFS)
76 #define EBI_DEV1_TIM3_DMA1_OFFS		0x00000140
77 #define EBI_DEV1_TIM3_DMA1(base)	((base) + EBI_DEV1_TIM3_DMA1_OFFS)
78 #define EBI_DEV1_TIM3_DMA2_OFFS		0x00000144
79 #define EBI_DEV1_TIM3_DMA2(base)	((base) + EBI_DEV1_TIM3_DMA2_OFFS)
80 #define EBI_DEV1_ACK_RM_CNT_OFFS	0x00000150
81 #define EBI_DEV1_ACK_RM_CNT(base)	((base) + EBI_DEV1_ACK_RM_CNT_OFFS)
82 #define EBI_DEV2_DMA_EXT_ADDR_OFFS	0x00000200
83 #define EBI_DEV2_DMA_EXT_ADDR(base)	((base) + EBI_DEV2_DMA_EXT_ADDR_OFFS)
84 #define EBI_DEV2_EXT_ACC_OFFS		0x00000204
85 #define EBI_DEV2_EXT_ACC(base)		((base) + EBI_DEV2_EXT_ACC_OFFS)
86 #define EBI_DEV2_CONFIG1_OFFS		0x00000208
87 #define EBI_DEV2_CONFIG1(base)		((base) + EBI_DEV2_CONFIG1_OFFS)
88 #define EBI_DEV2_CONFIG2_OFFS		0x0000020C
89 #define EBI_DEV2_CONFIG2(base)		((base) + EBI_DEV2_CONFIG2_OFFS)
90 #define EBI_DEV2_FIFO_CONFIG_OFFS	0x00000210
91 #define EBI_DEV2_FIFO_CONFIG(base)	((base) + EBI_DEV2_FIFO_CONFIG_OFFS)
92 #define EBI_DEV2_FLASH_CONF_ST_OFFS	0x00000214
93 #define EBI_DEV2_FLASH_CONF_ST(base)	((base) + EBI_DEV2_FLASH_CONF_ST_OFFS)
94 #define EBI_DEV2_DMA_CONFIG1_OFFS	0x00000218
95 #define EBI_DEV2_DMA_CONFIG1(base)	((base) + EBI_DEV2_DMA_CONFIG1_OFFS)
96 #define EBI_DEV2_DMA_CONFIG2_OFFS	0x0000021C
97 #define EBI_DEV2_DMA_CONFIG2(base)	((base) + EBI_DEV2_DMA_CONFIG2_OFFS)
98 #define EBI_DEV2_TIM1_RD1_OFFS		0x00000224
99 #define EBI_DEV2_TIM1_RD1(base)		((base) + EBI_DEV2_TIM1_RD1_OFFS)
100 #define EBI_DEV2_TIM1_RD2_OFFS		0x00000228
101 #define EBI_DEV2_TIM1_RD2(base)		((base) + EBI_DEV2_TIM1_RD2_OFFS)
102 #define EBI_DEV2_TIM1_WR1_OFFS		0x0000022C
103 #define EBI_DEV2_TIM1_WR1(base)		((base) + EBI_DEV2_TIM1_WR1_OFFS)
104 #define EBI_DEV2_TIM1_WR2_OFFS		0x00000230
105 #define EBI_DEV2_TIM1_WR2(base)		((base) + EBI_DEV2_TIM1_WR2_OFFS)
106 #define EBI_DEV2_TIM_EXT_OFFS		0x00000234
107 #define EBI_DEV2_TIM_EXT(base)		((base) + EBI_DEV2_TIM_EXT_OFFS)
108 #define EBI_DEV2_TIM2_CFI_RD1_OFFS	0x00000238
109 #define EBI_DEV2_TIM2_CFI_RD1(base)	((base) + EBI_DEV2_TIM2_CFI_RD1_OFFS)
110 #define EBI_DEV2_TIM2_CFI_RD2_OFFS	0x0000023C
111 #define EBI_DEV2_TIM2_CFI_RD2(base)	((base) + EBI_DEV2_TIM2_CFI_RD2_OFFS)
112 #define EBI_DEV2_TIM3_DMA1_OFFS		0x00000240
113 #define EBI_DEV2_TIM3_DMA1(base)	((base) + EBI_DEV2_TIM3_DMA1_OFFS)
114 #define EBI_DEV2_TIM3_DMA2_OFFS		0x00000244
115 #define EBI_DEV2_TIM3_DMA2(base)	((base) + EBI_DEV2_TIM3_DMA2_OFFS)
116 #define EBI_DEV2_ACK_RM_CNT_OFFS	0x00000250
117 #define EBI_DEV2_ACK_RM_CNT(base)	((base) + EBI_DEV2_ACK_RM_CNT_OFFS)
118 #define EBI_DEV3_DMA_EXT_ADDR_OFFS	0x00000300
119 #define EBI_DEV3_DMA_EXT_ADDR(base)	((base) + EBI_DEV3_DMA_EXT_ADDR_OFFS)
120 #define EBI_DEV3_EXT_ACC_OFFS		0x00000304
121 #define EBI_DEV3_EXT_ACC(base)		((base) + EBI_DEV3_EXT_ACC_OFFS)
122 #define EBI_DEV3_CONFIG1_OFFS		0x00000308
123 #define EBI_DEV3_CONFIG1(base)		((base) + EBI_DEV3_CONFIG1_OFFS)
124 #define EBI_DEV3_CONFIG2_OFFS		0x0000030C
125 #define EBI_DEV3_CONFIG2(base)		((base) + EBI_DEV3_CONFIG2_OFFS)
126 #define EBI_DEV3_FIFO_CONFIG_OFFS	0x00000310
127 #define EBI_DEV3_FIFO_CONFIG(base)	((base) + EBI_DEV3_FIFO_CONFIG_OFFS)
128 #define EBI_DEV3_FLASH_CONF_ST_OFFS	0x00000314
129 #define EBI_DEV3_FLASH_CONF_ST(base)	((base) + EBI_DEV3_FLASH_CONF_ST_OFFS)
130 #define EBI_DEV3_DMA_CONFIG1_OFFS	0x00000318
131 #define EBI_DEV3_DMA_CONFIG1(base)	((base) + EBI_DEV3_DMA_CONFIG1_OFFS)
132 #define EBI_DEV3_DMA_CONFIG2_OFFS	0x0000031C
133 #define EBI_DEV3_DMA_CONFIG2(base)	((base) + EBI_DEV3_DMA_CONFIG2_OFFS)
134 #define EBI_DEV3_TIM1_RD1_OFFS		0x00000324
135 #define EBI_DEV3_TIM1_RD1(base)		((base) + EBI_DEV3_TIM1_RD1_OFFS)
136 #define EBI_DEV3_TIM1_RD2_OFFS		0x00000328
137 #define EBI_DEV3_TIM1_RD2(base)		((base) + EBI_DEV3_TIM1_RD2_OFFS)
138 #define EBI_DEV3_TIM1_WR1_OFFS		0x0000032C
139 #define EBI_DEV3_TIM1_WR1(base)		((base) + EBI_DEV3_TIM1_WR1_OFFS)
140 #define EBI_DEV3_TIM1_WR2_OFFS		0x00000330
141 #define EBI_DEV3_TIM1_WR2(base)		((base) + EBI_DEV3_TIM1_WR2_OFFS)
142 #define EBI_DEV3_TIM_EXT_OFFS		0x00000334
143 #define EBI_DEV3_TIM_EXT(base)		((base) + EBI_DEV3_TIM_EXT_OFFS)
144 #define EBI_DEV3_TIM2_CFI_RD1_OFFS	0x00000338
145 #define EBI_DEV3_TIM2_CFI_RD1(base)	((base) + EBI_DEV3_TIM2_CFI_RD1_OFFS)
146 #define EBI_DEV3_TIM2_CFI_RD2_OFFS	0x0000033C
147 #define EBI_DEV3_TIM2_CFI_RD2(base)	((base) + EBI_DEV3_TIM2_CFI_RD2_OFFS)
148 #define EBI_DEV3_TIM3_DMA1_OFFS		0x00000340
149 #define EBI_DEV3_TIM3_DMA1(base)	((base) + EBI_DEV3_TIM3_DMA1_OFFS)
150 #define EBI_DEV3_TIM3_DMA2_OFFS		0x00000344
151 #define EBI_DEV3_TIM3_DMA2(base)	((base) + EBI_DEV3_TIM3_DMA2_OFFS)
152 #define EBI_DEV3_ACK_RM_CNT_OFFS	0x00000350
153 #define EBI_DEV3_ACK_RM_CNT(base)	((base) + EBI_DEV3_ACK_RM_CNT_OFFS)
154 #define EBI_DEV4_DMA_EXT_ADDR_OFFS	0x00000400
155 #define EBI_DEV4_DMA_EXT_ADDR(base)	((base) + EBI_DEV4_DMA_EXT_ADDR_OFFS)
156 #define EBI_DEV4_EXT_ACC_OFFS		0x00000404
157 #define EBI_DEV4_EXT_ACC(base)		((base) + EBI_DEV4_EXT_ACC_OFFS)
158 #define EBI_DEV4_CONFIG1_OFFS		0x00000408
159 #define EBI_DEV4_CONFIG1(base)		((base) + EBI_DEV4_CONFIG1_OFFS)
160 #define EBI_DEV4_CONFIG2_OFFS		0x0000040C
161 #define EBI_DEV4_CONFIG2(base)		((base) + EBI_DEV4_CONFIG2_OFFS)
162 #define EBI_DEV4_FIFO_CONFIG_OFFS	0x00000410
163 #define EBI_DEV4_FIFO_CONFIG(base)	((base) + EBI_DEV4_FIFO_CONFIG_OFFS)
164 #define EBI_DEV4_FLASH_CONF_ST_OFFS	0x00000414
165 #define EBI_DEV4_FLASH_CONF_ST(base)	((base) + EBI_DEV4_FLASH_CONF_ST_OFFS)
166 #define EBI_DEV4_DMA_CONFIG1_OFFS	0x00000418
167 #define EBI_DEV4_DMA_CONFIG1(base)	((base) + EBI_DEV4_DMA_CONFIG1_OFFS)
168 #define EBI_DEV4_DMA_CONFIG2_OFFS	0x0000041C
169 #define EBI_DEV4_DMA_CONFIG2(base)	((base) + EBI_DEV4_DMA_CONFIG2_OFFS)
170 #define EBI_DEV4_TIM1_RD1_OFFS		0x00000424
171 #define EBI_DEV4_TIM1_RD1(base)		((base) + EBI_DEV4_TIM1_RD1_OFFS)
172 #define EBI_DEV4_TIM1_RD2_OFFS		0x00000428
173 #define EBI_DEV4_TIM1_RD2(base)		((base) + EBI_DEV4_TIM1_RD2_OFFS)
174 #define EBI_DEV4_TIM1_WR1_OFFS		0x0000042C
175 #define EBI_DEV4_TIM1_WR1(base)		((base) + EBI_DEV4_TIM1_WR1_OFFS)
176 #define EBI_DEV4_TIM1_WR2_OFFS		0x00000430
177 #define EBI_DEV4_TIM1_WR2(base)		((base) + EBI_DEV4_TIM1_WR2_OFFS)
178 #define EBI_DEV4_TIM_EXT_OFFS		0x00000434
179 #define EBI_DEV4_TIM_EXT(base)		((base) + EBI_DEV4_TIM_EXT_OFFS)
180 #define EBI_DEV4_TIM2_CFI_RD1_OFFS	0x00000438
181 #define EBI_DEV4_TIM2_CFI_RD1(base)	((base) + EBI_DEV4_TIM2_CFI_RD1_OFFS)
182 #define EBI_DEV4_TIM2_CFI_RD2_OFFS	0x0000043C
183 #define EBI_DEV4_TIM2_CFI_RD2(base)	((base) + EBI_DEV4_TIM2_CFI_RD2_OFFS)
184 #define EBI_DEV4_TIM3_DMA1_OFFS		0x00000440
185 #define EBI_DEV4_TIM3_DMA1(base)	((base) + EBI_DEV4_TIM3_DMA1_OFFS)
186 #define EBI_DEV4_TIM3_DMA2_OFFS		0x00000444
187 #define EBI_DEV4_TIM3_DMA2(base)	((base) + EBI_DEV4_TIM3_DMA2_OFFS)
188 #define EBI_DEV4_ACK_RM_CNT_OFFS	0x00000450
189 #define EBI_DEV4_ACK_RM_CNT(base)	((base) + EBI_DEV4_ACK_RM_CNT_OFFS)
190 #define EBI_CNT_FL_PROGR_OFFS		0x00000904
191 #define EBI_CNT_FL_PROGR(base)		((base) + EBI_CNT_FL_PROGR_OFFS)
192 #define EBI_CNT_EXT_PAGE_SZ_OFFS	0x0000090C
193 #define EBI_CNT_EXT_PAGE_SZ(base)	((base) + EBI_CNT_EXT_PAGE_SZ_OFFS)
194 #define EBI_CNT_WAIT_RDY_OFFS		0x00000914
195 #define EBI_CNT_WAIT_RDY(base)		((base) + EBI_CNT_WAIT_RDY_OFFS)
196 #define EBI_CNT_ACK_OFFS		0x00000918
197 #define EBI_CNT_ACK(base)		((base) + EBI_CNT_ACK_OFFS)
198 #define EBI_GENIO1_CONFIG1_OFFS		0x00000A00
199 #define EBI_GENIO1_CONFIG1(base)	((base) + EBI_GENIO1_CONFIG1_OFFS)
200 #define EBI_GENIO1_CONFIG2_OFFS		0x00000A04
201 #define EBI_GENIO1_CONFIG2(base)	((base) + EBI_GENIO1_CONFIG2_OFFS)
202 #define EBI_GENIO1_CONFIG3_OFFS		0x00000A08
203 #define EBI_GENIO1_CONFIG3(base)	((base) + EBI_GENIO1_CONFIG3_OFFS)
204 #define EBI_GENIO2_CONFIG1_OFFS		0x00000A10
205 #define EBI_GENIO2_CONFIG1(base)	((base) + EBI_GENIO2_CONFIG1_OFFS)
206 #define EBI_GENIO2_CONFIG2_OFFS		0x00000A14
207 #define EBI_GENIO2_CONFIG2(base)	((base) + EBI_GENIO2_CONFIG2_OFFS)
208 #define EBI_GENIO2_CONFIG3_OFFS		0x00000A18
209 #define EBI_GENIO2_CONFIG3(base)	((base) + EBI_GENIO2_CONFIG3_OFFS)
210 #define EBI_GENIO3_CONFIG1_OFFS		0x00000A20
211 #define EBI_GENIO3_CONFIG1(base)	((base) + EBI_GENIO3_CONFIG1_OFFS)
212 #define EBI_GENIO3_CONFIG2_OFFS		0x00000A24
213 #define EBI_GENIO3_CONFIG2(base)	((base) + EBI_GENIO3_CONFIG2_OFFS)
214 #define EBI_GENIO3_CONFIG3_OFFS		0x00000A28
215 #define EBI_GENIO3_CONFIG3(base)	((base) + EBI_GENIO3_CONFIG3_OFFS)
216 #define EBI_GENIO4_CONFIG1_OFFS		0x00000A30
217 #define EBI_GENIO4_CONFIG1(base)	((base) + EBI_GENIO4_CONFIG1_OFFS)
218 #define EBI_GENIO4_CONFIG2_OFFS		0x00000A34
219 #define EBI_GENIO4_CONFIG2(base)	((base) + EBI_GENIO4_CONFIG2_OFFS)
220 #define EBI_GENIO4_CONFIG3_OFFS		0x00000A38
221 #define EBI_GENIO4_CONFIG3(base)	((base) + EBI_GENIO4_CONFIG3_OFFS)
222 #define EBI_GENIO5_CONFIG1_OFFS		0x00000A40
223 #define EBI_GENIO5_CONFIG1(base)	((base) + EBI_GENIO5_CONFIG1_OFFS)
224 #define EBI_GENIO5_CONFIG2_OFFS		0x00000A44
225 #define EBI_GENIO5_CONFIG2(base)	((base) + EBI_GENIO5_CONFIG2_OFFS)
226 #define EBI_GENIO5_CONFIG3_OFFS		0x00000A48
227 #define EBI_GENIO5_CONFIG3(base)	((base) + EBI_GENIO5_CONFIG3_OFFS)
228 
229 #endif
230