blob: becd42116cbb70c5c0f96a543b6b5229abb34c87 [file] [log] [blame]
Stefan Roese1eac2a72006-11-29 15:42:37 +01001/*
2 * (C) Copyright 2003
3 * Ingo Assmus <ingo.assmus@keymile.com>
4 *
5 * based on - Driver for MV64460X ethernet ports
6 * Copyright (C) 2002 rabeeh@galileo.co.il
7 *
Wolfgang Denk1a459662013-07-08 09:37:19 +02008 * SPDX-License-Identifier: GPL-2.0+
Stefan Roese1eac2a72006-11-29 15:42:37 +01009 */
10
11/********************************************************************************
12* gt64460r.h - GT-64460 Internal registers definition file.
13*
14* DESCRIPTION:
15* None.
16*
17* DEPENDENCIES:
18* None.
19*
20*******************************************************************************/
21
22#ifndef __INCmv_regsh
23#define __INCmv_regsh
24
25#define MV64460
26
27/* Supported by the Atlantis */
28#define MV64460_INCLUDE_PCI_1
29#define MV64460_INCLUDE_PCI_0_ARBITER
30#define MV64460_INCLUDE_PCI_1_ARBITER
31#define MV64460_INCLUDE_SNOOP_SUPPORT
32#define MV64460_INCLUDE_P2P
33#define MV64460_INCLUDE_ETH_PORT_2
34#define MV64460_INCLUDE_CPU_MAPPING
35#define MV64460_INCLUDE_MPSC
36
37/* Not supported features */
38#undef INCLUDE_CNTMR_4_7
39#undef INCLUDE_DMA_4_7
40
41/****************************************/
42/* Processor Address Space */
43/****************************************/
44
45/* DDR SDRAM BAR and size registers */
46
47#define MV64460_CS_0_BASE_ADDR 0x008
48#define MV64460_CS_0_SIZE 0x010
49#define MV64460_CS_1_BASE_ADDR 0x208
50#define MV64460_CS_1_SIZE 0x210
51#define MV64460_CS_2_BASE_ADDR 0x018
52#define MV64460_CS_2_SIZE 0x020
53#define MV64460_CS_3_BASE_ADDR 0x218
54#define MV64460_CS_3_SIZE 0x220
55
56/* Devices BAR and size registers */
57
58#define MV64460_DEV_CS0_BASE_ADDR 0x028
59#define MV64460_DEV_CS0_SIZE 0x030
60#define MV64460_DEV_CS1_BASE_ADDR 0x228
61#define MV64460_DEV_CS1_SIZE 0x230
62#define MV64460_DEV_CS2_BASE_ADDR 0x248
63#define MV64460_DEV_CS2_SIZE 0x250
64#define MV64460_DEV_CS3_BASE_ADDR 0x038
65#define MV64460_DEV_CS3_SIZE 0x040
66#define MV64460_BOOTCS_BASE_ADDR 0x238
67#define MV64460_BOOTCS_SIZE 0x240
68
69/* PCI 0 BAR and size registers */
70
71#define MV64460_PCI_0_IO_BASE_ADDR 0x048
72#define MV64460_PCI_0_IO_SIZE 0x050
73#define MV64460_PCI_0_MEMORY0_BASE_ADDR 0x058
74#define MV64460_PCI_0_MEMORY0_SIZE 0x060
75#define MV64460_PCI_0_MEMORY1_BASE_ADDR 0x080
76#define MV64460_PCI_0_MEMORY1_SIZE 0x088
77#define MV64460_PCI_0_MEMORY2_BASE_ADDR 0x258
78#define MV64460_PCI_0_MEMORY2_SIZE 0x260
79#define MV64460_PCI_0_MEMORY3_BASE_ADDR 0x280
80#define MV64460_PCI_0_MEMORY3_SIZE 0x288
81
82/* PCI 1 BAR and size registers */
83#define MV64460_PCI_1_IO_BASE_ADDR 0x090
84#define MV64460_PCI_1_IO_SIZE 0x098
85#define MV64460_PCI_1_MEMORY0_BASE_ADDR 0x0a0
86#define MV64460_PCI_1_MEMORY0_SIZE 0x0a8
87#define MV64460_PCI_1_MEMORY1_BASE_ADDR 0x0b0
88#define MV64460_PCI_1_MEMORY1_SIZE 0x0b8
89#define MV64460_PCI_1_MEMORY2_BASE_ADDR 0x2a0
90#define MV64460_PCI_1_MEMORY2_SIZE 0x2a8
91#define MV64460_PCI_1_MEMORY3_BASE_ADDR 0x2b0
92#define MV64460_PCI_1_MEMORY3_SIZE 0x2b8
93
94/* SRAM base address */
95#define MV64460_INTEGRATED_SRAM_BASE_ADDR 0x268
96
97/* internal registers space base address */
98#define MV64460_INTERNAL_SPACE_BASE_ADDR 0x068
99
100/* Enables the CS , DEV_CS , PCI 0 and PCI 1
101 windows above */
102#define MV64460_BASE_ADDR_ENABLE 0x278
103
104/****************************************/
105/* PCI remap registers */
106/****************************************/
107 /* PCI 0 */
108#define MV64460_PCI_0_IO_ADDR_REMAP 0x0f0
109#define MV64460_PCI_0_MEMORY0_LOW_ADDR_REMAP 0x0f8
110#define MV64460_PCI_0_MEMORY0_HIGH_ADDR_REMAP 0x320
111#define MV64460_PCI_0_MEMORY1_LOW_ADDR_REMAP 0x100
112#define MV64460_PCI_0_MEMORY1_HIGH_ADDR_REMAP 0x328
113#define MV64460_PCI_0_MEMORY2_LOW_ADDR_REMAP 0x2f8
114#define MV64460_PCI_0_MEMORY2_HIGH_ADDR_REMAP 0x330
115#define MV64460_PCI_0_MEMORY3_LOW_ADDR_REMAP 0x300
116#define MV64460_PCI_0_MEMORY3_HIGH_ADDR_REMAP 0x338
117 /* PCI 1 */
118#define MV64460_PCI_1_IO_ADDR_REMAP 0x108
119#define MV64460_PCI_1_MEMORY0_LOW_ADDR_REMAP 0x110
120#define MV64460_PCI_1_MEMORY0_HIGH_ADDR_REMAP 0x340
121#define MV64460_PCI_1_MEMORY1_LOW_ADDR_REMAP 0x118
122#define MV64460_PCI_1_MEMORY1_HIGH_ADDR_REMAP 0x348
123#define MV64460_PCI_1_MEMORY2_LOW_ADDR_REMAP 0x310
124#define MV64460_PCI_1_MEMORY2_HIGH_ADDR_REMAP 0x350
125#define MV64460_PCI_1_MEMORY3_LOW_ADDR_REMAP 0x318
126#define MV64460_PCI_1_MEMORY3_HIGH_ADDR_REMAP 0x358
127
128#define MV64460_CPU_PCI_0_HEADERS_RETARGET_CONTROL 0x3b0
129#define MV64460_CPU_PCI_0_HEADERS_RETARGET_BASE 0x3b8
130#define MV64460_CPU_PCI_1_HEADERS_RETARGET_CONTROL 0x3c0
131#define MV64460_CPU_PCI_1_HEADERS_RETARGET_BASE 0x3c8
132#define MV64460_CPU_GE_HEADERS_RETARGET_CONTROL 0x3d0
133#define MV64460_CPU_GE_HEADERS_RETARGET_BASE 0x3d8
134#define MV64460_CPU_IDMA_HEADERS_RETARGET_CONTROL 0x3e0
135#define MV64460_CPU_IDMA_HEADERS_RETARGET_BASE 0x3e8
136
137/****************************************/
138/* CPU Control Registers */
139/****************************************/
140
141#define MV64460_CPU_CONFIG 0x000
142#define MV64460_CPU_MODE 0x120
143#define MV64460_CPU_MASTER_CONTROL 0x160
144#define MV64460_CPU_CROSS_BAR_CONTROL_LOW 0x150
145#define MV64460_CPU_CROSS_BAR_CONTROL_HIGH 0x158
146#define MV64460_CPU_CROSS_BAR_TIMEOUT 0x168
147
148/****************************************/
149/* SMP RegisterS */
150/****************************************/
151
152#define MV64460_SMP_WHO_AM_I 0x200
153#define MV64460_SMP_CPU0_DOORBELL 0x214
154#define MV64460_SMP_CPU0_DOORBELL_CLEAR 0x21C
155#define MV64460_SMP_CPU1_DOORBELL 0x224
156#define MV64460_SMP_CPU1_DOORBELL_CLEAR 0x22C
157#define MV64460_SMP_CPU0_DOORBELL_MASK 0x234
158#define MV64460_SMP_CPU1_DOORBELL_MASK 0x23C
159#define MV64460_SMP_SEMAPHOR0 0x244
160#define MV64460_SMP_SEMAPHOR1 0x24c
161#define MV64460_SMP_SEMAPHOR2 0x254
162#define MV64460_SMP_SEMAPHOR3 0x25c
163#define MV64460_SMP_SEMAPHOR4 0x264
164#define MV64460_SMP_SEMAPHOR5 0x26c
165#define MV64460_SMP_SEMAPHOR6 0x274
166#define MV64460_SMP_SEMAPHOR7 0x27c
167
168/****************************************/
169/* CPU Sync Barrier Register */
170/****************************************/
171
172#define MV64460_CPU_0_SYNC_BARRIER_TRIGGER 0x0c0
173#define MV64460_CPU_0_SYNC_BARRIER_VIRTUAL 0x0c8
174#define MV64460_CPU_1_SYNC_BARRIER_TRIGGER 0x0d0
175#define MV64460_CPU_1_SYNC_BARRIER_VIRTUAL 0x0d8
176
177/****************************************/
178/* CPU Access Protect */
179/****************************************/
180
181#define MV64460_CPU_PROTECT_WINDOW_0_BASE_ADDR 0x180
182#define MV64460_CPU_PROTECT_WINDOW_0_SIZE 0x188
183#define MV64460_CPU_PROTECT_WINDOW_1_BASE_ADDR 0x190
184#define MV64460_CPU_PROTECT_WINDOW_1_SIZE 0x198
185#define MV64460_CPU_PROTECT_WINDOW_2_BASE_ADDR 0x1a0
186#define MV64460_CPU_PROTECT_WINDOW_2_SIZE 0x1a8
187#define MV64460_CPU_PROTECT_WINDOW_3_BASE_ADDR 0x1b0
188#define MV64460_CPU_PROTECT_WINDOW_3_SIZE 0x1b8
189
190
191/****************************************/
192/* CPU Error Report */
193/****************************************/
194
195#define MV64460_CPU_ERROR_ADDR_LOW 0x070
196#define MV64460_CPU_ERROR_ADDR_HIGH 0x078
197#define MV64460_CPU_ERROR_DATA_LOW 0x128
198#define MV64460_CPU_ERROR_DATA_HIGH 0x130
199#define MV64460_CPU_ERROR_PARITY 0x138
200#define MV64460_CPU_ERROR_CAUSE 0x140
201#define MV64460_CPU_ERROR_MASK 0x148
202
203/****************************************/
204/* CPU Interface Debug Registers */
205/****************************************/
206
207#define MV64460_PUNIT_SLAVE_DEBUG_LOW 0x360
208#define MV64460_PUNIT_SLAVE_DEBUG_HIGH 0x368
209#define MV64460_PUNIT_MASTER_DEBUG_LOW 0x370
210#define MV64460_PUNIT_MASTER_DEBUG_HIGH 0x378
211#define MV64460_PUNIT_MMASK 0x3e4
212
213/****************************************/
214/* Integrated SRAM Registers */
215/****************************************/
216
217#define MV64460_SRAM_CONFIG 0x380
218#define MV64460_SRAM_TEST_MODE 0X3F4
219#define MV64460_SRAM_ERROR_CAUSE 0x388
220#define MV64460_SRAM_ERROR_ADDR 0x390
221#define MV64460_SRAM_ERROR_ADDR_HIGH 0X3F8
222#define MV64460_SRAM_ERROR_DATA_LOW 0x398
223#define MV64460_SRAM_ERROR_DATA_HIGH 0x3a0
224#define MV64460_SRAM_ERROR_DATA_PARITY 0x3a8
225
226/****************************************/
227/* SDRAM Configuration */
228/****************************************/
229
230#define MV64460_SDRAM_CONFIG 0x1400
231#define MV64460_D_UNIT_CONTROL_LOW 0x1404
232#define MV64460_D_UNIT_CONTROL_HIGH 0x1424
233#define MV64460_D_UNIT_MMASK 0x14B0
234#define MV64460_SDRAM_TIMING_CONTROL_LOW 0x1408
235#define MV64460_SDRAM_TIMING_CONTROL_HIGH 0x140c
236#define MV64460_SDRAM_ADDR_CONTROL 0x1410
237#define MV64460_SDRAM_OPEN_PAGES_CONTROL 0x1414
238#define MV64460_SDRAM_OPERATION 0x1418
239#define MV64460_SDRAM_MODE 0x141c
240#define MV64460_EXTENDED_DRAM_MODE 0x1420
241#define MV64460_SDRAM_CROSS_BAR_CONTROL_LOW 0x1430
242#define MV64460_SDRAM_CROSS_BAR_CONTROL_HIGH 0x1434
243#define MV64460_SDRAM_CROSS_BAR_TIMEOUT 0x1438
244#define MV64460_SDRAM_ADDR_CTRL_PADS_CALIBRATION 0x14c0
245#define MV64460_SDRAM_DATA_PADS_CALIBRATION 0x14c4
246
247/****************************************/
248/* SDRAM Error Report */
249/****************************************/
250
251#define MV64460_SDRAM_ERROR_DATA_LOW 0x1444
252#define MV64460_SDRAM_ERROR_DATA_HIGH 0x1440
253#define MV64460_SDRAM_ERROR_ADDR 0x1450
254#define MV64460_SDRAM_RECEIVED_ECC 0x1448
255#define MV64460_SDRAM_CALCULATED_ECC 0x144c
256#define MV64460_SDRAM_ECC_CONTROL 0x1454
257#define MV64460_SDRAM_ECC_ERROR_COUNTER 0x1458
258
259/******************************************/
260/* Controlled Delay Line (CDL) Registers */
261/******************************************/
262
263#define MV64460_DFCDL_CONFIG0 0x1480
264#define MV64460_DFCDL_CONFIG1 0x1484
265#define MV64460_DLL_WRITE 0x1488
266#define MV64460_DLL_READ 0x148c
267#define MV64460_SRAM_ADDR 0x1490
268#define MV64460_SRAM_DATA0 0x1494
269#define MV64460_SRAM_DATA1 0x1498
270#define MV64460_SRAM_DATA2 0x149c
271#define MV64460_DFCL_PROBE 0x14a0
272
273/******************************************/
274/* Debug Registers */
275/******************************************/
276
277#define MV64460_DUNIT_DEBUG_LOW 0x1460
278#define MV64460_DUNIT_DEBUG_HIGH 0x1464
279#define MV64460_DUNIT_MMASK 0X1b40
280
281/****************************************/
282/* Device Parameters */
283/****************************************/
284
285#define MV64460_DEVICE_BANK0_PARAMETERS 0x45c
286#define MV64460_DEVICE_BANK1_PARAMETERS 0x460
287#define MV64460_DEVICE_BANK2_PARAMETERS 0x464
288#define MV64460_DEVICE_BANK3_PARAMETERS 0x468
289#define MV64460_DEVICE_BOOT_BANK_PARAMETERS 0x46c
290#define MV64460_DEVICE_INTERFACE_CONTROL 0x4c0
291#define MV64460_DEVICE_INTERFACE_CROSS_BAR_CONTROL_LOW 0x4c8
292#define MV64460_DEVICE_INTERFACE_CROSS_BAR_CONTROL_HIGH 0x4cc
293#define MV64460_DEVICE_INTERFACE_CROSS_BAR_TIMEOUT 0x4c4
294
295/****************************************/
296/* Device interrupt registers */
297/****************************************/
298
299#define MV64460_DEVICE_INTERRUPT_CAUSE 0x4d0
300#define MV64460_DEVICE_INTERRUPT_MASK 0x4d4
301#define MV64460_DEVICE_ERROR_ADDR 0x4d8
302#define MV64460_DEVICE_ERROR_DATA 0x4dc
303#define MV64460_DEVICE_ERROR_PARITY 0x4e0
304
305/****************************************/
306/* Device debug registers */
307/****************************************/
308
309#define MV64460_DEVICE_DEBUG_LOW 0x4e4
310#define MV64460_DEVICE_DEBUG_HIGH 0x4e8
311#define MV64460_RUNIT_MMASK 0x4f0
312
313/****************************************/
314/* PCI Slave Address Decoding registers */
315/****************************************/
316
317#define MV64460_PCI_0_CS_0_BANK_SIZE 0xc08
318#define MV64460_PCI_1_CS_0_BANK_SIZE 0xc88
319#define MV64460_PCI_0_CS_1_BANK_SIZE 0xd08
320#define MV64460_PCI_1_CS_1_BANK_SIZE 0xd88
321#define MV64460_PCI_0_CS_2_BANK_SIZE 0xc0c
322#define MV64460_PCI_1_CS_2_BANK_SIZE 0xc8c
323#define MV64460_PCI_0_CS_3_BANK_SIZE 0xd0c
324#define MV64460_PCI_1_CS_3_BANK_SIZE 0xd8c
325#define MV64460_PCI_0_DEVCS_0_BANK_SIZE 0xc10
326#define MV64460_PCI_1_DEVCS_0_BANK_SIZE 0xc90
327#define MV64460_PCI_0_DEVCS_1_BANK_SIZE 0xd10
328#define MV64460_PCI_1_DEVCS_1_BANK_SIZE 0xd90
329#define MV64460_PCI_0_DEVCS_2_BANK_SIZE 0xd18
330#define MV64460_PCI_1_DEVCS_2_BANK_SIZE 0xd98
331#define MV64460_PCI_0_DEVCS_3_BANK_SIZE 0xc14
332#define MV64460_PCI_1_DEVCS_3_BANK_SIZE 0xc94
333#define MV64460_PCI_0_DEVCS_BOOT_BANK_SIZE 0xd14
334#define MV64460_PCI_1_DEVCS_BOOT_BANK_SIZE 0xd94
335#define MV64460_PCI_0_P2P_MEM0_BAR_SIZE 0xd1c
336#define MV64460_PCI_1_P2P_MEM0_BAR_SIZE 0xd9c
337#define MV64460_PCI_0_P2P_MEM1_BAR_SIZE 0xd20
338#define MV64460_PCI_1_P2P_MEM1_BAR_SIZE 0xda0
339#define MV64460_PCI_0_P2P_I_O_BAR_SIZE 0xd24
340#define MV64460_PCI_1_P2P_I_O_BAR_SIZE 0xda4
341#define MV64460_PCI_0_CPU_BAR_SIZE 0xd28
342#define MV64460_PCI_1_CPU_BAR_SIZE 0xda8
343#define MV64460_PCI_0_INTERNAL_SRAM_BAR_SIZE 0xe00
344#define MV64460_PCI_1_INTERNAL_SRAM_BAR_SIZE 0xe80
345#define MV64460_PCI_0_EXPANSION_ROM_BAR_SIZE 0xd2c
346#define MV64460_PCI_1_EXPANSION_ROM_BAR_SIZE 0xd9c
347#define MV64460_PCI_0_BASE_ADDR_REG_ENABLE 0xc3c
348#define MV64460_PCI_1_BASE_ADDR_REG_ENABLE 0xcbc
349#define MV64460_PCI_0_CS_0_BASE_ADDR_REMAP 0xc48
350#define MV64460_PCI_1_CS_0_BASE_ADDR_REMAP 0xcc8
351#define MV64460_PCI_0_CS_1_BASE_ADDR_REMAP 0xd48
352#define MV64460_PCI_1_CS_1_BASE_ADDR_REMAP 0xdc8
353#define MV64460_PCI_0_CS_2_BASE_ADDR_REMAP 0xc4c
354#define MV64460_PCI_1_CS_2_BASE_ADDR_REMAP 0xccc
355#define MV64460_PCI_0_CS_3_BASE_ADDR_REMAP 0xd4c
356#define MV64460_PCI_1_CS_3_BASE_ADDR_REMAP 0xdcc
357#define MV64460_PCI_0_CS_0_BASE_HIGH_ADDR_REMAP 0xF04
358#define MV64460_PCI_1_CS_0_BASE_HIGH_ADDR_REMAP 0xF84
359#define MV64460_PCI_0_CS_1_BASE_HIGH_ADDR_REMAP 0xF08
360#define MV64460_PCI_1_CS_1_BASE_HIGH_ADDR_REMAP 0xF88
361#define MV64460_PCI_0_CS_2_BASE_HIGH_ADDR_REMAP 0xF0C
362#define MV64460_PCI_1_CS_2_BASE_HIGH_ADDR_REMAP 0xF8C
363#define MV64460_PCI_0_CS_3_BASE_HIGH_ADDR_REMAP 0xF10
364#define MV64460_PCI_1_CS_3_BASE_HIGH_ADDR_REMAP 0xF90
365#define MV64460_PCI_0_DEVCS_0_BASE_ADDR_REMAP 0xc50
366#define MV64460_PCI_1_DEVCS_0_BASE_ADDR_REMAP 0xcd0
367#define MV64460_PCI_0_DEVCS_1_BASE_ADDR_REMAP 0xd50
368#define MV64460_PCI_1_DEVCS_1_BASE_ADDR_REMAP 0xdd0
369#define MV64460_PCI_0_DEVCS_2_BASE_ADDR_REMAP 0xd58
370#define MV64460_PCI_1_DEVCS_2_BASE_ADDR_REMAP 0xdd8
371#define MV64460_PCI_0_DEVCS_3_BASE_ADDR_REMAP 0xc54
372#define MV64460_PCI_1_DEVCS_3_BASE_ADDR_REMAP 0xcd4
373#define MV64460_PCI_0_DEVCS_BOOTCS_BASE_ADDR_REMAP 0xd54
374#define MV64460_PCI_1_DEVCS_BOOTCS_BASE_ADDR_REMAP 0xdd4
375#define MV64460_PCI_0_P2P_MEM0_BASE_ADDR_REMAP_LOW 0xd5c
376#define MV64460_PCI_1_P2P_MEM0_BASE_ADDR_REMAP_LOW 0xddc
377#define MV64460_PCI_0_P2P_MEM0_BASE_ADDR_REMAP_HIGH 0xd60
378#define MV64460_PCI_1_P2P_MEM0_BASE_ADDR_REMAP_HIGH 0xde0
379#define MV64460_PCI_0_P2P_MEM1_BASE_ADDR_REMAP_LOW 0xd64
380#define MV64460_PCI_1_P2P_MEM1_BASE_ADDR_REMAP_LOW 0xde4
381#define MV64460_PCI_0_P2P_MEM1_BASE_ADDR_REMAP_HIGH 0xd68
382#define MV64460_PCI_1_P2P_MEM1_BASE_ADDR_REMAP_HIGH 0xde8
383#define MV64460_PCI_0_P2P_I_O_BASE_ADDR_REMAP 0xd6c
384#define MV64460_PCI_1_P2P_I_O_BASE_ADDR_REMAP 0xdec
385#define MV64460_PCI_0_CPU_BASE_ADDR_REMAP_LOW 0xd70
386#define MV64460_PCI_1_CPU_BASE_ADDR_REMAP_LOW 0xdf0
387#define MV64460_PCI_0_CPU_BASE_ADDR_REMAP_HIGH 0xd74
388#define MV64460_PCI_1_CPU_BASE_ADDR_REMAP_HIGH 0xdf4
389#define MV64460_PCI_0_INTEGRATED_SRAM_BASE_ADDR_REMAP 0xf00
390#define MV64460_PCI_1_INTEGRATED_SRAM_BASE_ADDR_REMAP 0xf80
391#define MV64460_PCI_0_EXPANSION_ROM_BASE_ADDR_REMAP 0xf38
392#define MV64460_PCI_1_EXPANSION_ROM_BASE_ADDR_REMAP 0xfb8
393#define MV64460_PCI_0_ADDR_DECODE_CONTROL 0xd3c
394#define MV64460_PCI_1_ADDR_DECODE_CONTROL 0xdbc
395#define MV64460_PCI_0_HEADERS_RETARGET_CONTROL 0xF40
396#define MV64460_PCI_1_HEADERS_RETARGET_CONTROL 0xFc0
397#define MV64460_PCI_0_HEADERS_RETARGET_BASE 0xF44
398#define MV64460_PCI_1_HEADERS_RETARGET_BASE 0xFc4
399#define MV64460_PCI_0_HEADERS_RETARGET_HIGH 0xF48
400#define MV64460_PCI_1_HEADERS_RETARGET_HIGH 0xFc8
401
402/***********************************/
403/* PCI Control Register Map */
404/***********************************/
405
406#define MV64460_PCI_0_DLL_STATUS_AND_COMMAND 0x1d20
407#define MV64460_PCI_1_DLL_STATUS_AND_COMMAND 0x1da0
408#define MV64460_PCI_0_MPP_PADS_DRIVE_CONTROL 0x1d1C
409#define MV64460_PCI_1_MPP_PADS_DRIVE_CONTROL 0x1d9C
410#define MV64460_PCI_0_COMMAND 0xc00
411#define MV64460_PCI_1_COMMAND 0xc80
412#define MV64460_PCI_0_MODE 0xd00
413#define MV64460_PCI_1_MODE 0xd80
414#define MV64460_PCI_0_RETRY 0xc04
415#define MV64460_PCI_1_RETRY 0xc84
416#define MV64460_PCI_0_READ_BUFFER_DISCARD_TIMER 0xd04
417#define MV64460_PCI_1_READ_BUFFER_DISCARD_TIMER 0xd84
418#define MV64460_PCI_0_MSI_TRIGGER_TIMER 0xc38
419#define MV64460_PCI_1_MSI_TRIGGER_TIMER 0xcb8
420#define MV64460_PCI_0_ARBITER_CONTROL 0x1d00
421#define MV64460_PCI_1_ARBITER_CONTROL 0x1d80
422#define MV64460_PCI_0_CROSS_BAR_CONTROL_LOW 0x1d08
423#define MV64460_PCI_1_CROSS_BAR_CONTROL_LOW 0x1d88
424#define MV64460_PCI_0_CROSS_BAR_CONTROL_HIGH 0x1d0c
425#define MV64460_PCI_1_CROSS_BAR_CONTROL_HIGH 0x1d8c
426#define MV64460_PCI_0_CROSS_BAR_TIMEOUT 0x1d04
427#define MV64460_PCI_1_CROSS_BAR_TIMEOUT 0x1d84
428#define MV64460_PCI_0_SYNC_BARRIER_TRIGGER_REG 0x1D18
429#define MV64460_PCI_1_SYNC_BARRIER_TRIGGER_REG 0x1D98
430#define MV64460_PCI_0_SYNC_BARRIER_VIRTUAL_REG 0x1d10
431#define MV64460_PCI_1_SYNC_BARRIER_VIRTUAL_REG 0x1d90
432#define MV64460_PCI_0_P2P_CONFIG 0x1d14
433#define MV64460_PCI_1_P2P_CONFIG 0x1d94
434
435#define MV64460_PCI_0_ACCESS_CONTROL_BASE_0_LOW 0x1e00
436#define MV64460_PCI_0_ACCESS_CONTROL_BASE_0_HIGH 0x1e04
437#define MV64460_PCI_0_ACCESS_CONTROL_SIZE_0 0x1e08
438#define MV64460_PCI_0_ACCESS_CONTROL_BASE_1_LOW 0x1e10
439#define MV64460_PCI_0_ACCESS_CONTROL_BASE_1_HIGH 0x1e14
440#define MV64460_PCI_0_ACCESS_CONTROL_SIZE_1 0x1e18
441#define MV64460_PCI_0_ACCESS_CONTROL_BASE_2_LOW 0x1e20
442#define MV64460_PCI_0_ACCESS_CONTROL_BASE_2_HIGH 0x1e24
443#define MV64460_PCI_0_ACCESS_CONTROL_SIZE_2 0x1e28
444#define MV64460_PCI_0_ACCESS_CONTROL_BASE_3_LOW 0x1e30
445#define MV64460_PCI_0_ACCESS_CONTROL_BASE_3_HIGH 0x1e34
446#define MV64460_PCI_0_ACCESS_CONTROL_SIZE_3 0x1e38
447#define MV64460_PCI_0_ACCESS_CONTROL_BASE_4_LOW 0x1e40
448#define MV64460_PCI_0_ACCESS_CONTROL_BASE_4_HIGH 0x1e44
449#define MV64460_PCI_0_ACCESS_CONTROL_SIZE_4 0x1e48
450#define MV64460_PCI_0_ACCESS_CONTROL_BASE_5_LOW 0x1e50
451#define MV64460_PCI_0_ACCESS_CONTROL_BASE_5_HIGH 0x1e54
452#define MV64460_PCI_0_ACCESS_CONTROL_SIZE_5 0x1e58
453
454#define MV64460_PCI_1_ACCESS_CONTROL_BASE_0_LOW 0x1e80
455#define MV64460_PCI_1_ACCESS_CONTROL_BASE_0_HIGH 0x1e84
456#define MV64460_PCI_1_ACCESS_CONTROL_SIZE_0 0x1e88
457#define MV64460_PCI_1_ACCESS_CONTROL_BASE_1_LOW 0x1e90
458#define MV64460_PCI_1_ACCESS_CONTROL_BASE_1_HIGH 0x1e94
459#define MV64460_PCI_1_ACCESS_CONTROL_SIZE_1 0x1e98
460#define MV64460_PCI_1_ACCESS_CONTROL_BASE_2_LOW 0x1ea0
461#define MV64460_PCI_1_ACCESS_CONTROL_BASE_2_HIGH 0x1ea4
462#define MV64460_PCI_1_ACCESS_CONTROL_SIZE_2 0x1ea8
463#define MV64460_PCI_1_ACCESS_CONTROL_BASE_3_LOW 0x1eb0
464#define MV64460_PCI_1_ACCESS_CONTROL_BASE_3_HIGH 0x1eb4
465#define MV64460_PCI_1_ACCESS_CONTROL_SIZE_3 0x1eb8
466#define MV64460_PCI_1_ACCESS_CONTROL_BASE_4_LOW 0x1ec0
467#define MV64460_PCI_1_ACCESS_CONTROL_BASE_4_HIGH 0x1ec4
468#define MV64460_PCI_1_ACCESS_CONTROL_SIZE_4 0x1ec8
469#define MV64460_PCI_1_ACCESS_CONTROL_BASE_5_LOW 0x1ed0
470#define MV64460_PCI_1_ACCESS_CONTROL_BASE_5_HIGH 0x1ed4
471#define MV64460_PCI_1_ACCESS_CONTROL_SIZE_5 0x1ed8
472
473/****************************************/
474/* PCI Configuration Access Registers */
475/****************************************/
476
477#define MV64460_PCI_0_CONFIG_ADDR 0xcf8
478#define MV64460_PCI_0_CONFIG_DATA_VIRTUAL_REG 0xcfc
479#define MV64460_PCI_1_CONFIG_ADDR 0xc78
480#define MV64460_PCI_1_CONFIG_DATA_VIRTUAL_REG 0xc7c
481#define MV64460_PCI_0_INTERRUPT_ACKNOWLEDGE_VIRTUAL_REG 0xc34
482#define MV64460_PCI_1_INTERRUPT_ACKNOWLEDGE_VIRTUAL_REG 0xcb4
483
484/****************************************/
485/* PCI Error Report Registers */
486/****************************************/
487
488#define MV64460_PCI_0_SERR_MASK 0xc28
489#define MV64460_PCI_1_SERR_MASK 0xca8
490#define MV64460_PCI_0_ERROR_ADDR_LOW 0x1d40
491#define MV64460_PCI_1_ERROR_ADDR_LOW 0x1dc0
492#define MV64460_PCI_0_ERROR_ADDR_HIGH 0x1d44
493#define MV64460_PCI_1_ERROR_ADDR_HIGH 0x1dc4
494#define MV64460_PCI_0_ERROR_ATTRIBUTE 0x1d48
495#define MV64460_PCI_1_ERROR_ATTRIBUTE 0x1dc8
496#define MV64460_PCI_0_ERROR_COMMAND 0x1d50
497#define MV64460_PCI_1_ERROR_COMMAND 0x1dd0
498#define MV64460_PCI_0_ERROR_CAUSE 0x1d58
499#define MV64460_PCI_1_ERROR_CAUSE 0x1dd8
500#define MV64460_PCI_0_ERROR_MASK 0x1d5c
501#define MV64460_PCI_1_ERROR_MASK 0x1ddc
502
503/****************************************/
504/* PCI Debug Registers */
505/****************************************/
506
507#define MV64460_PCI_0_MMASK 0X1D24
508#define MV64460_PCI_1_MMASK 0X1DA4
509
510/*********************************************/
511/* PCI Configuration, Function 0, Registers */
512/*********************************************/
513
514#define MV64460_PCI_DEVICE_AND_VENDOR_ID 0x000
515#define MV64460_PCI_STATUS_AND_COMMAND 0x004
516#define MV64460_PCI_CLASS_CODE_AND_REVISION_ID 0x008
517#define MV64460_PCI_BIST_HEADER_TYPE_LATENCY_TIMER_CACHE_LINE 0x00C
518
519#define MV64460_PCI_SCS_0_BASE_ADDR_LOW 0x010
520#define MV64460_PCI_SCS_0_BASE_ADDR_HIGH 0x014
521#define MV64460_PCI_SCS_1_BASE_ADDR_LOW 0x018
522#define MV64460_PCI_SCS_1_BASE_ADDR_HIGH 0x01C
523#define MV64460_PCI_INTERNAL_REG_MEM_MAPPED_BASE_ADDR_LOW 0x020
524#define MV64460_PCI_INTERNAL_REG_MEM_MAPPED_BASE_ADDR_HIGH 0x024
525#define MV64460_PCI_SUBSYSTEM_ID_AND_SUBSYSTEM_VENDOR_ID 0x02c
526#define MV64460_PCI_EXPANSION_ROM_BASE_ADDR_REG 0x030
527#define MV64460_PCI_CAPABILTY_LIST_POINTER 0x034
528#define MV64460_PCI_INTERRUPT_PIN_AND_LINE 0x03C
529 /* capability list */
530#define MV64460_PCI_POWER_MANAGEMENT_CAPABILITY 0x040
531#define MV64460_PCI_POWER_MANAGEMENT_STATUS_AND_CONTROL 0x044
532#define MV64460_PCI_VPD_ADDR 0x048
533#define MV64460_PCI_VPD_DATA 0x04c
534#define MV64460_PCI_MSI_MESSAGE_CONTROL 0x050
535#define MV64460_PCI_MSI_MESSAGE_ADDR 0x054
536#define MV64460_PCI_MSI_MESSAGE_UPPER_ADDR 0x058
537#define MV64460_PCI_MSI_MESSAGE_DATA 0x05c
538#define MV64460_PCI_X_COMMAND 0x060
539#define MV64460_PCI_X_STATUS 0x064
540#define MV64460_PCI_COMPACT_PCI_HOT_SWAP 0x068
541
542/***********************************************/
543/* PCI Configuration, Function 1, Registers */
544/***********************************************/
545
546#define MV64460_PCI_SCS_2_BASE_ADDR_LOW 0x110
547#define MV64460_PCI_SCS_2_BASE_ADDR_HIGH 0x114
548#define MV64460_PCI_SCS_3_BASE_ADDR_LOW 0x118
549#define MV64460_PCI_SCS_3_BASE_ADDR_HIGH 0x11c
550#define MV64460_PCI_INTERNAL_SRAM_BASE_ADDR_LOW 0x120
551#define MV64460_PCI_INTERNAL_SRAM_BASE_ADDR_HIGH 0x124
552
553/***********************************************/
554/* PCI Configuration, Function 2, Registers */
555/***********************************************/
556
557#define MV64460_PCI_DEVCS_0_BASE_ADDR_LOW 0x210
558#define MV64460_PCI_DEVCS_0_BASE_ADDR_HIGH 0x214
559#define MV64460_PCI_DEVCS_1_BASE_ADDR_LOW 0x218
560#define MV64460_PCI_DEVCS_1_BASE_ADDR_HIGH 0x21c
561#define MV64460_PCI_DEVCS_2_BASE_ADDR_LOW 0x220
562#define MV64460_PCI_DEVCS_2_BASE_ADDR_HIGH 0x224
563
564/***********************************************/
565/* PCI Configuration, Function 3, Registers */
566/***********************************************/
567
568#define MV64460_PCI_DEVCS_3_BASE_ADDR_LOW 0x310
569#define MV64460_PCI_DEVCS_3_BASE_ADDR_HIGH 0x314
570#define MV64460_PCI_BOOT_CS_BASE_ADDR_LOW 0x318
571#define MV64460_PCI_BOOT_CS_BASE_ADDR_HIGH 0x31c
572#define MV64460_PCI_CPU_BASE_ADDR_LOW 0x220
573#define MV64460_PCI_CPU_BASE_ADDR_HIGH 0x224
574
575/***********************************************/
576/* PCI Configuration, Function 4, Registers */
577/***********************************************/
578
579#define MV64460_PCI_P2P_MEM0_BASE_ADDR_LOW 0x410
580#define MV64460_PCI_P2P_MEM0_BASE_ADDR_HIGH 0x414
581#define MV64460_PCI_P2P_MEM1_BASE_ADDR_LOW 0x418
582#define MV64460_PCI_P2P_MEM1_BASE_ADDR_HIGH 0x41c
583#define MV64460_PCI_P2P_I_O_BASE_ADDR 0x420
584#define MV64460_PCI_INTERNAL_REGS_I_O_MAPPED_BASE_ADDR 0x424
585
586/****************************************/
587/* Messaging Unit Registers (I20) */
588/****************************************/
589
590#define MV64460_I2O_INBOUND_MESSAGE_REG0_PCI_0_SIDE 0x010
591#define MV64460_I2O_INBOUND_MESSAGE_REG1_PCI_0_SIDE 0x014
592#define MV64460_I2O_OUTBOUND_MESSAGE_REG0_PCI_0_SIDE 0x018
593#define MV64460_I2O_OUTBOUND_MESSAGE_REG1_PCI_0_SIDE 0x01C
594#define MV64460_I2O_INBOUND_DOORBELL_REG_PCI_0_SIDE 0x020
595#define MV64460_I2O_INBOUND_INTERRUPT_CAUSE_REG_PCI_0_SIDE 0x024
596#define MV64460_I2O_INBOUND_INTERRUPT_MASK_REG_PCI_0_SIDE 0x028
597#define MV64460_I2O_OUTBOUND_DOORBELL_REG_PCI_0_SIDE 0x02C
598#define MV64460_I2O_OUTBOUND_INTERRUPT_CAUSE_REG_PCI_0_SIDE 0x030
599#define MV64460_I2O_OUTBOUND_INTERRUPT_MASK_REG_PCI_0_SIDE 0x034
600#define MV64460_I2O_INBOUND_QUEUE_PORT_VIRTUAL_REG_PCI_0_SIDE 0x040
601#define MV64460_I2O_OUTBOUND_QUEUE_PORT_VIRTUAL_REG_PCI_0_SIDE 0x044
602#define MV64460_I2O_QUEUE_CONTROL_REG_PCI_0_SIDE 0x050
603#define MV64460_I2O_QUEUE_BASE_ADDR_REG_PCI_0_SIDE 0x054
604#define MV64460_I2O_INBOUND_FREE_HEAD_POINTER_REG_PCI_0_SIDE 0x060
605#define MV64460_I2O_INBOUND_FREE_TAIL_POINTER_REG_PCI_0_SIDE 0x064
606#define MV64460_I2O_INBOUND_POST_HEAD_POINTER_REG_PCI_0_SIDE 0x068
607#define MV64460_I2O_INBOUND_POST_TAIL_POINTER_REG_PCI_0_SIDE 0x06C
608#define MV64460_I2O_OUTBOUND_FREE_HEAD_POINTER_REG_PCI_0_SIDE 0x070
609#define MV64460_I2O_OUTBOUND_FREE_TAIL_POINTER_REG_PCI_0_SIDE 0x074
610#define MV64460_I2O_OUTBOUND_POST_HEAD_POINTER_REG_PCI_0_SIDE 0x0F8
611#define MV64460_I2O_OUTBOUND_POST_TAIL_POINTER_REG_PCI_0_SIDE 0x0FC
612
613#define MV64460_I2O_INBOUND_MESSAGE_REG0_PCI_1_SIDE 0x090
614#define MV64460_I2O_INBOUND_MESSAGE_REG1_PCI_1_SIDE 0x094
615#define MV64460_I2O_OUTBOUND_MESSAGE_REG0_PCI_1_SIDE 0x098
616#define MV64460_I2O_OUTBOUND_MESSAGE_REG1_PCI_1_SIDE 0x09C
617#define MV64460_I2O_INBOUND_DOORBELL_REG_PCI_1_SIDE 0x0A0
618#define MV64460_I2O_INBOUND_INTERRUPT_CAUSE_REG_PCI_1_SIDE 0x0A4
619#define MV64460_I2O_INBOUND_INTERRUPT_MASK_REG_PCI_1_SIDE 0x0A8
620#define MV64460_I2O_OUTBOUND_DOORBELL_REG_PCI_1_SIDE 0x0AC
621#define MV64460_I2O_OUTBOUND_INTERRUPT_CAUSE_REG_PCI_1_SIDE 0x0B0
622#define MV64460_I2O_OUTBOUND_INTERRUPT_MASK_REG_PCI_1_SIDE 0x0B4
623#define MV64460_I2O_INBOUND_QUEUE_PORT_VIRTUAL_REG_PCI_1_SIDE 0x0C0
624#define MV64460_I2O_OUTBOUND_QUEUE_PORT_VIRTUAL_REG_PCI_1_SIDE 0x0C4
625#define MV64460_I2O_QUEUE_CONTROL_REG_PCI_1_SIDE 0x0D0
626#define MV64460_I2O_QUEUE_BASE_ADDR_REG_PCI_1_SIDE 0x0D4
627#define MV64460_I2O_INBOUND_FREE_HEAD_POINTER_REG_PCI_1_SIDE 0x0E0
628#define MV64460_I2O_INBOUND_FREE_TAIL_POINTER_REG_PCI_1_SIDE 0x0E4
629#define MV64460_I2O_INBOUND_POST_HEAD_POINTER_REG_PCI_1_SIDE 0x0E8
630#define MV64460_I2O_INBOUND_POST_TAIL_POINTER_REG_PCI_1_SIDE 0x0EC
631#define MV64460_I2O_OUTBOUND_FREE_HEAD_POINTER_REG_PCI_1_SIDE 0x0F0
632#define MV64460_I2O_OUTBOUND_FREE_TAIL_POINTER_REG_PCI_1_SIDE 0x0F4
633#define MV64460_I2O_OUTBOUND_POST_HEAD_POINTER_REG_PCI_1_SIDE 0x078
634#define MV64460_I2O_OUTBOUND_POST_TAIL_POINTER_REG_PCI_1_SIDE 0x07C
635
636#define MV64460_I2O_INBOUND_MESSAGE_REG0_CPU0_SIDE 0x1C10
637#define MV64460_I2O_INBOUND_MESSAGE_REG1_CPU0_SIDE 0x1C14
638#define MV64460_I2O_OUTBOUND_MESSAGE_REG0_CPU0_SIDE 0x1C18
639#define MV64460_I2O_OUTBOUND_MESSAGE_REG1_CPU0_SIDE 0x1C1C
640#define MV64460_I2O_INBOUND_DOORBELL_REG_CPU0_SIDE 0x1C20
641#define MV64460_I2O_INBOUND_INTERRUPT_CAUSE_REG_CPU0_SIDE 0x1C24
642#define MV64460_I2O_INBOUND_INTERRUPT_MASK_REG_CPU0_SIDE 0x1C28
643#define MV64460_I2O_OUTBOUND_DOORBELL_REG_CPU0_SIDE 0x1C2C
644#define MV64460_I2O_OUTBOUND_INTERRUPT_CAUSE_REG_CPU0_SIDE 0x1C30
645#define MV64460_I2O_OUTBOUND_INTERRUPT_MASK_REG_CPU0_SIDE 0x1C34
646#define MV64460_I2O_INBOUND_QUEUE_PORT_VIRTUAL_REG_CPU0_SIDE 0x1C40
647#define MV64460_I2O_OUTBOUND_QUEUE_PORT_VIRTUAL_REG_CPU0_SIDE 0x1C44
648#define MV64460_I2O_QUEUE_CONTROL_REG_CPU0_SIDE 0x1C50
649#define MV64460_I2O_QUEUE_BASE_ADDR_REG_CPU0_SIDE 0x1C54
650#define MV64460_I2O_INBOUND_FREE_HEAD_POINTER_REG_CPU0_SIDE 0x1C60
651#define MV64460_I2O_INBOUND_FREE_TAIL_POINTER_REG_CPU0_SIDE 0x1C64
652#define MV64460_I2O_INBOUND_POST_HEAD_POINTER_REG_CPU0_SIDE 0x1C68
653#define MV64460_I2O_INBOUND_POST_TAIL_POINTER_REG_CPU0_SIDE 0x1C6C
654#define MV64460_I2O_OUTBOUND_FREE_HEAD_POINTER_REG_CPU0_SIDE 0x1C70
655#define MV64460_I2O_OUTBOUND_FREE_TAIL_POINTER_REG_CPU0_SIDE 0x1C74
656#define MV64460_I2O_OUTBOUND_POST_HEAD_POINTER_REG_CPU0_SIDE 0x1CF8
657#define MV64460_I2O_OUTBOUND_POST_TAIL_POINTER_REG_CPU0_SIDE 0x1CFC
658#define MV64460_I2O_INBOUND_MESSAGE_REG0_CPU1_SIDE 0x1C90
659#define MV64460_I2O_INBOUND_MESSAGE_REG1_CPU1_SIDE 0x1C94
660#define MV64460_I2O_OUTBOUND_MESSAGE_REG0_CPU1_SIDE 0x1C98
661#define MV64460_I2O_OUTBOUND_MESSAGE_REG1_CPU1_SIDE 0x1C9C
662#define MV64460_I2O_INBOUND_DOORBELL_REG_CPU1_SIDE 0x1CA0
663#define MV64460_I2O_INBOUND_INTERRUPT_CAUSE_REG_CPU1_SIDE 0x1CA4
664#define MV64460_I2O_INBOUND_INTERRUPT_MASK_REG_CPU1_SIDE 0x1CA8
665#define MV64460_I2O_OUTBOUND_DOORBELL_REG_CPU1_SIDE 0x1CAC
666#define MV64460_I2O_OUTBOUND_INTERRUPT_CAUSE_REG_CPU1_SIDE 0x1CB0
667#define MV64460_I2O_OUTBOUND_INTERRUPT_MASK_REG_CPU1_SIDE 0x1CB4
668#define MV64460_I2O_INBOUND_QUEUE_PORT_VIRTUAL_REG_CPU1_SIDE 0x1CC0
669#define MV64460_I2O_OUTBOUND_QUEUE_PORT_VIRTUAL_REG_CPU1_SIDE 0x1CC4
670#define MV64460_I2O_QUEUE_CONTROL_REG_CPU1_SIDE 0x1CD0
671#define MV64460_I2O_QUEUE_BASE_ADDR_REG_CPU1_SIDE 0x1CD4
672#define MV64460_I2O_INBOUND_FREE_HEAD_POINTER_REG_CPU1_SIDE 0x1CE0
673#define MV64460_I2O_INBOUND_FREE_TAIL_POINTER_REG_CPU1_SIDE 0x1CE4
674#define MV64460_I2O_INBOUND_POST_HEAD_POINTER_REG_CPU1_SIDE 0x1CE8
675#define MV64460_I2O_INBOUND_POST_TAIL_POINTER_REG_CPU1_SIDE 0x1CEC
676#define MV64460_I2O_OUTBOUND_FREE_HEAD_POINTER_REG_CPU1_SIDE 0x1CF0
677#define MV64460_I2O_OUTBOUND_FREE_TAIL_POINTER_REG_CPU1_SIDE 0x1CF4
678#define MV64460_I2O_OUTBOUND_POST_HEAD_POINTER_REG_CPU1_SIDE 0x1C78
679#define MV64460_I2O_OUTBOUND_POST_TAIL_POINTER_REG_CPU1_SIDE 0x1C7C
680
681/****************************************/
682/* Ethernet Unit Registers */
683/****************************************/
684
685#define MV64460_ETH_PHY_ADDR_REG 0x2000
686#define MV64460_ETH_SMI_REG 0x2004
687#define MV64460_ETH_UNIT_DEFAULT_ADDR_REG 0x2008
688#define MV64460_ETH_UNIT_DEFAULTID_REG 0x200c
689#define MV64460_ETH_UNIT_INTERRUPT_CAUSE_REG 0x2080
690#define MV64460_ETH_UNIT_INTERRUPT_MASK_REG 0x2084
691#define MV64460_ETH_UNIT_INTERNAL_USE_REG 0x24fc
692#define MV64460_ETH_UNIT_ERROR_ADDR_REG 0x2094
693#define MV64460_ETH_BAR_0 0x2200
694#define MV64460_ETH_BAR_1 0x2208
695#define MV64460_ETH_BAR_2 0x2210
696#define MV64460_ETH_BAR_3 0x2218
697#define MV64460_ETH_BAR_4 0x2220
698#define MV64460_ETH_BAR_5 0x2228
699#define MV64460_ETH_SIZE_REG_0 0x2204
700#define MV64460_ETH_SIZE_REG_1 0x220c
701#define MV64460_ETH_SIZE_REG_2 0x2214
702#define MV64460_ETH_SIZE_REG_3 0x221c
703#define MV64460_ETH_SIZE_REG_4 0x2224
704#define MV64460_ETH_SIZE_REG_5 0x222c
705#define MV64460_ETH_HEADERS_RETARGET_BASE_REG 0x2230
706#define MV64460_ETH_HEADERS_RETARGET_CONTROL_REG 0x2234
707#define MV64460_ETH_HIGH_ADDR_REMAP_REG_0 0x2280
708#define MV64460_ETH_HIGH_ADDR_REMAP_REG_1 0x2284
709#define MV64460_ETH_HIGH_ADDR_REMAP_REG_2 0x2288
710#define MV64460_ETH_HIGH_ADDR_REMAP_REG_3 0x228c
711#define MV64460_ETH_BASE_ADDR_ENABLE_REG 0x2290
712#define MV64460_ETH_ACCESS_PROTECTION_REG(port) (0x2294 + (port<<2))
713#define MV64460_ETH_MIB_COUNTERS_BASE(port) (0x3000 + (port<<7))
714#define MV64460_ETH_PORT_CONFIG_REG(port) (0x2400 + (port<<10))
715#define MV64460_ETH_PORT_CONFIG_EXTEND_REG(port) (0x2404 + (port<<10))
716#define MV64460_ETH_MII_SERIAL_PARAMETRS_REG(port) (0x2408 + (port<<10))
717#define MV64460_ETH_GMII_SERIAL_PARAMETRS_REG(port) (0x240c + (port<<10))
718#define MV64460_ETH_VLAN_ETHERTYPE_REG(port) (0x2410 + (port<<10))
719#define MV64460_ETH_MAC_ADDR_LOW(port) (0x2414 + (port<<10))
720#define MV64460_ETH_MAC_ADDR_HIGH(port) (0x2418 + (port<<10))
721#define MV64460_ETH_SDMA_CONFIG_REG(port) (0x241c + (port<<10))
722#define MV64460_ETH_DSCP_0(port) (0x2420 + (port<<10))
723#define MV64460_ETH_DSCP_1(port) (0x2424 + (port<<10))
724#define MV64460_ETH_DSCP_2(port) (0x2428 + (port<<10))
725#define MV64460_ETH_DSCP_3(port) (0x242c + (port<<10))
726#define MV64460_ETH_DSCP_4(port) (0x2430 + (port<<10))
727#define MV64460_ETH_DSCP_5(port) (0x2434 + (port<<10))
728#define MV64460_ETH_DSCP_6(port) (0x2438 + (port<<10))
729#define MV64460_ETH_PORT_SERIAL_CONTROL_REG(port) (0x243c + (port<<10))
730#define MV64460_ETH_VLAN_PRIORITY_TAG_TO_PRIORITY(port) (0x2440 + (port<<10))
731#define MV64460_ETH_PORT_STATUS_REG(port) (0x2444 + (port<<10))
732#define MV64460_ETH_TRANSMIT_QUEUE_COMMAND_REG(port) (0x2448 + (port<<10))
733#define MV64460_ETH_TX_QUEUE_FIXED_PRIORITY(port) (0x244c + (port<<10))
734#define MV64460_ETH_PORT_TX_TOKEN_BUCKET_RATE_CONFIG(port) (0x2450 + (port<<10))
735#define MV64460_ETH_MAXIMUM_TRANSMIT_UNIT(port) (0x2458 + (port<<10))
736#define MV64460_ETH_PORT_MAXIMUM_TOKEN_BUCKET_SIZE(port) (0x245c + (port<<10))
737#define MV64460_ETH_INTERRUPT_CAUSE_REG(port) (0x2460 + (port<<10))
738#define MV64460_ETH_INTERRUPT_CAUSE_EXTEND_REG(port) (0x2464 + (port<<10))
739#define MV64460_ETH_INTERRUPT_MASK_REG(port) (0x2468 + (port<<10))
740#define MV64460_ETH_INTERRUPT_EXTEND_MASK_REG(port) (0x246c + (port<<10))
741#define MV64460_ETH_RX_FIFO_URGENT_THRESHOLD_REG(port) (0x2470 + (port<<10))
742#define MV64460_ETH_TX_FIFO_URGENT_THRESHOLD_REG(port) (0x2474 + (port<<10))
743#define MV64460_ETH_RX_MINIMAL_FRAME_SIZE_REG(port) (0x247c + (port<<10))
744#define MV64460_ETH_RX_DISCARDED_FRAMES_COUNTER(port) (0x2484 + (port<<10)
745#define MV64460_ETH_PORT_DEBUG_0_REG(port) (0x248c + (port<<10))
746#define MV64460_ETH_PORT_DEBUG_1_REG(port) (0x2490 + (port<<10))
747#define MV64460_ETH_PORT_INTERNAL_ADDR_ERROR_REG(port) (0x2494 + (port<<10))
748#define MV64460_ETH_INTERNAL_USE_REG(port) (0x24fc + (port<<10))
749#define MV64460_ETH_RECEIVE_QUEUE_COMMAND_REG(port) (0x2680 + (port<<10))
750#define MV64460_ETH_CURRENT_SERVED_TX_DESC_PTR(port) (0x2684 + (port<<10))
751#define MV64460_ETH_RX_CURRENT_QUEUE_DESC_PTR_0(port) (0x260c + (port<<10))
752#define MV64460_ETH_RX_CURRENT_QUEUE_DESC_PTR_1(port) (0x261c + (port<<10))
753#define MV64460_ETH_RX_CURRENT_QUEUE_DESC_PTR_2(port) (0x262c + (port<<10))
754#define MV64460_ETH_RX_CURRENT_QUEUE_DESC_PTR_3(port) (0x263c + (port<<10))
755#define MV64460_ETH_RX_CURRENT_QUEUE_DESC_PTR_4(port) (0x264c + (port<<10))
756#define MV64460_ETH_RX_CURRENT_QUEUE_DESC_PTR_5(port) (0x265c + (port<<10))
757#define MV64460_ETH_RX_CURRENT_QUEUE_DESC_PTR_6(port) (0x266c + (port<<10))
758#define MV64460_ETH_RX_CURRENT_QUEUE_DESC_PTR_7(port) (0x267c + (port<<10))
759#define MV64460_ETH_TX_CURRENT_QUEUE_DESC_PTR_0(port) (0x26c0 + (port<<10))
760#define MV64460_ETH_TX_CURRENT_QUEUE_DESC_PTR_1(port) (0x26c4 + (port<<10))
761#define MV64460_ETH_TX_CURRENT_QUEUE_DESC_PTR_2(port) (0x26c8 + (port<<10))
762#define MV64460_ETH_TX_CURRENT_QUEUE_DESC_PTR_3(port) (0x26cc + (port<<10))
763#define MV64460_ETH_TX_CURRENT_QUEUE_DESC_PTR_4(port) (0x26d0 + (port<<10))
764#define MV64460_ETH_TX_CURRENT_QUEUE_DESC_PTR_5(port) (0x26d4 + (port<<10))
765#define MV64460_ETH_TX_CURRENT_QUEUE_DESC_PTR_6(port) (0x26d8 + (port<<10))
766#define MV64460_ETH_TX_CURRENT_QUEUE_DESC_PTR_7(port) (0x26dc + (port<<10))
767#define MV64460_ETH_TX_QUEUE_0_TOKEN_BUCKET_COUNT(port) (0x2700 + (port<<10))
768#define MV64460_ETH_TX_QUEUE_1_TOKEN_BUCKET_COUNT(port) (0x2710 + (port<<10))
769#define MV64460_ETH_TX_QUEUE_2_TOKEN_BUCKET_COUNT(port) (0x2720 + (port<<10))
770#define MV64460_ETH_TX_QUEUE_3_TOKEN_BUCKET_COUNT(port) (0x2730 + (port<<10))
771#define MV64460_ETH_TX_QUEUE_4_TOKEN_BUCKET_COUNT(port) (0x2740 + (port<<10))
772#define MV64460_ETH_TX_QUEUE_5_TOKEN_BUCKET_COUNT(port) (0x2750 + (port<<10))
773#define MV64460_ETH_TX_QUEUE_6_TOKEN_BUCKET_COUNT(port) (0x2760 + (port<<10))
774#define MV64460_ETH_TX_QUEUE_7_TOKEN_BUCKET_COUNT(port) (0x2770 + (port<<10))
775#define MV64460_ETH_TX_QUEUE_0_TOKEN_BUCKET_CONFIG(port) (0x2704 + (port<<10))
776#define MV64460_ETH_TX_QUEUE_1_TOKEN_BUCKET_CONFIG(port) (0x2714 + (port<<10))
777#define MV64460_ETH_TX_QUEUE_2_TOKEN_BUCKET_CONFIG(port) (0x2724 + (port<<10))
778#define MV64460_ETH_TX_QUEUE_3_TOKEN_BUCKET_CONFIG(port) (0x2734 + (port<<10))
779#define MV64460_ETH_TX_QUEUE_4_TOKEN_BUCKET_CONFIG(port) (0x2744 + (port<<10))
780#define MV64460_ETH_TX_QUEUE_5_TOKEN_BUCKET_CONFIG(port) (0x2754 + (port<<10))
781#define MV64460_ETH_TX_QUEUE_6_TOKEN_BUCKET_CONFIG(port) (0x2764 + (port<<10))
782#define MV64460_ETH_TX_QUEUE_7_TOKEN_BUCKET_CONFIG(port) (0x2774 + (port<<10))
783#define MV64460_ETH_TX_QUEUE_0_ARBITER_CONFIG(port) (0x2708 + (port<<10))
784#define MV64460_ETH_TX_QUEUE_1_ARBITER_CONFIG(port) (0x2718 + (port<<10))
785#define MV64460_ETH_TX_QUEUE_2_ARBITER_CONFIG(port) (0x2728 + (port<<10))
786#define MV64460_ETH_TX_QUEUE_3_ARBITER_CONFIG(port) (0x2738 + (port<<10))
787#define MV64460_ETH_TX_QUEUE_4_ARBITER_CONFIG(port) (0x2748 + (port<<10))
788#define MV64460_ETH_TX_QUEUE_5_ARBITER_CONFIG(port) (0x2758 + (port<<10))
789#define MV64460_ETH_TX_QUEUE_6_ARBITER_CONFIG(port) (0x2768 + (port<<10))
790#define MV64460_ETH_TX_QUEUE_7_ARBITER_CONFIG(port) (0x2778 + (port<<10))
791#define MV64460_ETH_PORT_TX_TOKEN_BUCKET_COUNT(port) (0x2780 + (port<<10))
792#define MV64460_ETH_DA_FILTER_SPECIAL_MULTICAST_TABLE_BASE(port) (0x3400 + (port<<10))
793#define MV64460_ETH_DA_FILTER_OTHER_MULTICAST_TABLE_BASE(port) (0x3500 + (port<<10))
794#define MV64460_ETH_DA_FILTER_UNICAST_TABLE_BASE(port) (0x3600 + (port<<10))
795
796/*******************************************/
797/* CUNIT Registers */
798/*******************************************/
799
800 /* Address Decoding Register Map */
801
802#define MV64460_CUNIT_BASE_ADDR_REG0 0xf200
803#define MV64460_CUNIT_BASE_ADDR_REG1 0xf208
804#define MV64460_CUNIT_BASE_ADDR_REG2 0xf210
805#define MV64460_CUNIT_BASE_ADDR_REG3 0xf218
806#define MV64460_CUNIT_SIZE0 0xf204
807#define MV64460_CUNIT_SIZE1 0xf20c
808#define MV64460_CUNIT_SIZE2 0xf214
809#define MV64460_CUNIT_SIZE3 0xf21c
810#define MV64460_CUNIT_HIGH_ADDR_REMAP_REG0 0xf240
811#define MV64460_CUNIT_HIGH_ADDR_REMAP_REG1 0xf244
812#define MV64460_CUNIT_BASE_ADDR_ENABLE_REG 0xf250
813#define MV64460_MPSC0_ACCESS_PROTECTION_REG 0xf254
814#define MV64460_MPSC1_ACCESS_PROTECTION_REG 0xf258
815#define MV64460_CUNIT_INTERNAL_SPACE_BASE_ADDR_REG 0xf25C
816
817 /* Error Report Registers */
818
819#define MV64460_CUNIT_INTERRUPT_CAUSE_REG 0xf310
820#define MV64460_CUNIT_INTERRUPT_MASK_REG 0xf314
821#define MV64460_CUNIT_ERROR_ADDR 0xf318
822
823 /* Cunit Control Registers */
824
825#define MV64460_CUNIT_ARBITER_CONTROL_REG 0xf300
826#define MV64460_CUNIT_CONFIG_REG 0xb40c
827#define MV64460_CUNIT_CRROSBAR_TIMEOUT_REG 0xf304
828
829 /* Cunit Debug Registers */
830
831#define MV64460_CUNIT_DEBUG_LOW 0xf340
832#define MV64460_CUNIT_DEBUG_HIGH 0xf344
833#define MV64460_CUNIT_MMASK 0xf380
834
835 /* Cunit Base Address Enable Window Bits*/
836#define MV64460_CUNIT_BASE_ADDR_WIN_0_BIT 0x0
837#define MV64460_CUNIT_BASE_ADDR_WIN_1_BIT 0x1
838#define MV64460_CUNIT_BASE_ADDR_WIN_2_BIT 0x2
839#define MV64460_CUNIT_BASE_ADDR_WIN_3_BIT 0x3
840
841 /* MPSCs Clocks Routing Registers */
842
843#define MV64460_MPSC_ROUTING_REG 0xb400
844#define MV64460_MPSC_RX_CLOCK_ROUTING_REG 0xb404
845#define MV64460_MPSC_TX_CLOCK_ROUTING_REG 0xb408
846
847 /* MPSCs Interrupts Registers */
848
849#define MV64460_MPSC_CAUSE_REG(port) (0xb804 + (port<<3))
850#define MV64460_MPSC_MASK_REG(port) (0xb884 + (port<<3))
851
852#define MV64460_MPSC_MAIN_CONFIG_LOW(port) (0x8000 + (port<<12))
853#define MV64460_MPSC_MAIN_CONFIG_HIGH(port) (0x8004 + (port<<12))
854#define MV64460_MPSC_PROTOCOL_CONFIG(port) (0x8008 + (port<<12))
855#define MV64460_MPSC_CHANNEL_REG1(port) (0x800c + (port<<12))
856#define MV64460_MPSC_CHANNEL_REG2(port) (0x8010 + (port<<12))
857#define MV64460_MPSC_CHANNEL_REG3(port) (0x8014 + (port<<12))
858#define MV64460_MPSC_CHANNEL_REG4(port) (0x8018 + (port<<12))
859#define MV64460_MPSC_CHANNEL_REG5(port) (0x801c + (port<<12))
860#define MV64460_MPSC_CHANNEL_REG6(port) (0x8020 + (port<<12))
861#define MV64460_MPSC_CHANNEL_REG7(port) (0x8024 + (port<<12))
862#define MV64460_MPSC_CHANNEL_REG8(port) (0x8028 + (port<<12))
863#define MV64460_MPSC_CHANNEL_REG9(port) (0x802c + (port<<12))
864#define MV64460_MPSC_CHANNEL_REG10(port) (0x8030 + (port<<12))
865
866 /* MPSC0 Registers */
867
868
869/***************************************/
870/* SDMA Registers */
871/***************************************/
872
873#define MV64460_SDMA_CONFIG_REG(channel) (0x4000 + (channel<<13))
874#define MV64460_SDMA_COMMAND_REG(channel) (0x4008 + (channel<<13))
875#define MV64460_SDMA_CURRENT_RX_DESCRIPTOR_POINTER(channel) (0x4810 + (channel<<13))
876#define MV64460_SDMA_CURRENT_TX_DESCRIPTOR_POINTER(channel) (0x4c10 + (channel<<13))
877#define MV64460_SDMA_FIRST_TX_DESCRIPTOR_POINTER(channel) (0x4c14 + (channel<<13))
878
879#define MV64460_SDMA_CAUSE_REG 0xb800
880#define MV64460_SDMA_MASK_REG 0xb880
881
882
883/****************************************/
884/* SDMA Address Space Targets */
885/****************************************/
886
887#define MV64460_SDMA_DRAM_CS_0_TARGET 0x0e00
888#define MV64460_SDMA_DRAM_CS_1_TARGET 0x0d00
889#define MV64460_SDMA_DRAM_CS_2_TARGET 0x0b00
890#define MV64460_SDMA_DRAM_CS_3_TARGET 0x0700
891
892#define MV64460_SDMA_DEV_CS_0_TARGET 0x1e01
893#define MV64460_SDMA_DEV_CS_1_TARGET 0x1d01
894#define MV64460_SDMA_DEV_CS_2_TARGET 0x1b01
895#define MV64460_SDMA_DEV_CS_3_TARGET 0x1701
896
897#define MV64460_SDMA_BOOT_CS_TARGET 0x0f00
898
899#define MV64460_SDMA_SRAM_TARGET 0x0003
900#define MV64460_SDMA_60X_BUS_TARGET 0x4003
901
902#define MV64460_PCI_0_TARGET 0x0003
903#define MV64460_PCI_1_TARGET 0x0004
904
905
906/* Devices BAR and size registers */
907
908#define MV64460_DEV_CS0_BASE_ADDR 0x028
909#define MV64460_DEV_CS0_SIZE 0x030
910#define MV64460_DEV_CS1_BASE_ADDR 0x228
911#define MV64460_DEV_CS1_SIZE 0x230
912#define MV64460_DEV_CS2_BASE_ADDR 0x248
913#define MV64460_DEV_CS2_SIZE 0x250
914#define MV64460_DEV_CS3_BASE_ADDR 0x038
915#define MV64460_DEV_CS3_SIZE 0x040
916#define MV64460_BOOTCS_BASE_ADDR 0x238
917#define MV64460_BOOTCS_SIZE 0x240
918
919/* SDMA Window access protection */
920#define MV64460_SDMA_WIN_ACCESS_NOT_ALLOWED 0
921#define MV64460_SDMA_WIN_ACCESS_READ_ONLY 1
922#define MV64460_SDMA_WIN_ACCESS_FULL 2
923
924/* BRG Interrupts */
925
926#define MV64460_BRG_CONFIG_REG(brg) (0xb200 + (brg<<3))
927#define MV64460_BRG_BAUDE_TUNING_REG(brg) (0xb204 + (brg<<3))
928#define MV64460_BRG_CAUSE_REG 0xb834
929#define MV64460_BRG_MASK_REG 0xb8b4
930
931/****************************************/
932/* DMA Channel Control */
933/****************************************/
934
935#define MV64460_DMA_CHANNEL0_CONTROL 0x840
936#define MV64460_DMA_CHANNEL0_CONTROL_HIGH 0x880
937#define MV64460_DMA_CHANNEL1_CONTROL 0x844
938#define MV64460_DMA_CHANNEL1_CONTROL_HIGH 0x884
939#define MV64460_DMA_CHANNEL2_CONTROL 0x848
940#define MV64460_DMA_CHANNEL2_CONTROL_HIGH 0x888
941#define MV64460_DMA_CHANNEL3_CONTROL 0x84C
942#define MV64460_DMA_CHANNEL3_CONTROL_HIGH 0x88C
943
944
945/****************************************/
946/* IDMA Registers */
947/****************************************/
948
949#define MV64460_DMA_CHANNEL0_BYTE_COUNT 0x800
950#define MV64460_DMA_CHANNEL1_BYTE_COUNT 0x804
951#define MV64460_DMA_CHANNEL2_BYTE_COUNT 0x808
952#define MV64460_DMA_CHANNEL3_BYTE_COUNT 0x80C
953#define MV64460_DMA_CHANNEL0_SOURCE_ADDR 0x810
954#define MV64460_DMA_CHANNEL1_SOURCE_ADDR 0x814
955#define MV64460_DMA_CHANNEL2_SOURCE_ADDR 0x818
956#define MV64460_DMA_CHANNEL3_SOURCE_ADDR 0x81c
957#define MV64460_DMA_CHANNEL0_DESTINATION_ADDR 0x820
958#define MV64460_DMA_CHANNEL1_DESTINATION_ADDR 0x824
959#define MV64460_DMA_CHANNEL2_DESTINATION_ADDR 0x828
960#define MV64460_DMA_CHANNEL3_DESTINATION_ADDR 0x82C
961#define MV64460_DMA_CHANNEL0_NEXT_DESCRIPTOR_POINTER 0x830
962#define MV64460_DMA_CHANNEL1_NEXT_DESCRIPTOR_POINTER 0x834
963#define MV64460_DMA_CHANNEL2_NEXT_DESCRIPTOR_POINTER 0x838
964#define MV64460_DMA_CHANNEL3_NEXT_DESCRIPTOR_POINTER 0x83C
965#define MV64460_DMA_CHANNEL0_CURRENT_DESCRIPTOR_POINTER 0x870
966#define MV64460_DMA_CHANNEL1_CURRENT_DESCRIPTOR_POINTER 0x874
967#define MV64460_DMA_CHANNEL2_CURRENT_DESCRIPTOR_POINTER 0x878
968#define MV64460_DMA_CHANNEL3_CURRENT_DESCRIPTOR_POINTER 0x87C
969
970 /* IDMA Address Decoding Base Address Registers */
971
972#define MV64460_DMA_BASE_ADDR_REG0 0xa00
973#define MV64460_DMA_BASE_ADDR_REG1 0xa08
974#define MV64460_DMA_BASE_ADDR_REG2 0xa10
975#define MV64460_DMA_BASE_ADDR_REG3 0xa18
976#define MV64460_DMA_BASE_ADDR_REG4 0xa20
977#define MV64460_DMA_BASE_ADDR_REG5 0xa28
978#define MV64460_DMA_BASE_ADDR_REG6 0xa30
979#define MV64460_DMA_BASE_ADDR_REG7 0xa38
980
981 /* IDMA Address Decoding Size Address Register */
982
983#define MV64460_DMA_SIZE_REG0 0xa04
984#define MV64460_DMA_SIZE_REG1 0xa0c
985#define MV64460_DMA_SIZE_REG2 0xa14
986#define MV64460_DMA_SIZE_REG3 0xa1c
987#define MV64460_DMA_SIZE_REG4 0xa24
988#define MV64460_DMA_SIZE_REG5 0xa2c
989#define MV64460_DMA_SIZE_REG6 0xa34
990#define MV64460_DMA_SIZE_REG7 0xa3C
991
992 /* IDMA Address Decoding High Address Remap and Access
993 Protection Registers */
994
995#define MV64460_DMA_HIGH_ADDR_REMAP_REG0 0xa60
996#define MV64460_DMA_HIGH_ADDR_REMAP_REG1 0xa64
997#define MV64460_DMA_HIGH_ADDR_REMAP_REG2 0xa68
998#define MV64460_DMA_HIGH_ADDR_REMAP_REG3 0xa6C
999#define MV64460_DMA_BASE_ADDR_ENABLE_REG 0xa80
1000#define MV64460_DMA_CHANNEL0_ACCESS_PROTECTION_REG 0xa70
1001#define MV64460_DMA_CHANNEL1_ACCESS_PROTECTION_REG 0xa74
1002#define MV64460_DMA_CHANNEL2_ACCESS_PROTECTION_REG 0xa78
1003#define MV64460_DMA_CHANNEL3_ACCESS_PROTECTION_REG 0xa7c
1004#define MV64460_DMA_ARBITER_CONTROL 0x860
1005#define MV64460_DMA_CROSS_BAR_TIMEOUT 0x8d0
1006
1007 /* IDMA Headers Retarget Registers */
1008
1009#define MV64460_DMA_HEADERS_RETARGET_CONTROL 0xa84
1010#define MV64460_DMA_HEADERS_RETARGET_BASE 0xa88
1011
1012 /* IDMA Interrupt Register */
1013
1014#define MV64460_DMA_INTERRUPT_CAUSE_REG 0x8c0
1015#define MV64460_DMA_INTERRUPT_CAUSE_MASK 0x8c4
1016#define MV64460_DMA_ERROR_ADDR 0x8c8
1017#define MV64460_DMA_ERROR_SELECT 0x8cc
1018
1019 /* IDMA Debug Register ( for internal use ) */
1020
1021#define MV64460_DMA_DEBUG_LOW 0x8e0
1022#define MV64460_DMA_DEBUG_HIGH 0x8e4
1023#define MV64460_DMA_SPARE 0xA8C
1024
1025/****************************************/
1026/* Timer_Counter */
1027/****************************************/
1028
1029#define MV64460_TIMER_COUNTER0 0x850
1030#define MV64460_TIMER_COUNTER1 0x854
1031#define MV64460_TIMER_COUNTER2 0x858
1032#define MV64460_TIMER_COUNTER3 0x85C
1033#define MV64460_TIMER_COUNTER_0_3_CONTROL 0x864
1034#define MV64460_TIMER_COUNTER_0_3_INTERRUPT_CAUSE 0x868
1035#define MV64460_TIMER_COUNTER_0_3_INTERRUPT_MASK 0x86c
1036
1037/****************************************/
1038/* Watchdog registers */
1039/****************************************/
1040
1041#define MV64460_WATCHDOG_CONFIG_REG 0xb410
1042#define MV64460_WATCHDOG_VALUE_REG 0xb414
1043
1044/****************************************/
1045/* I2C Registers */
1046/****************************************/
1047
1048#define MV64460_I2C_SLAVE_ADDR 0xc000
1049#define MV64460_I2C_EXTENDED_SLAVE_ADDR 0xc010
1050#define MV64460_I2C_DATA 0xc004
1051#define MV64460_I2C_CONTROL 0xc008
1052#define MV64460_I2C_STATUS_BAUDE_RATE 0xc00C
1053#define MV64460_I2C_SOFT_RESET 0xc01c
1054
1055/****************************************/
1056/* GPP Interface Registers */
1057/****************************************/
1058
1059#define MV64460_GPP_IO_CONTROL 0xf100
1060#define MV64460_GPP_LEVEL_CONTROL 0xf110
1061#define MV64460_GPP_VALUE 0xf104
1062#define MV64460_GPP_INTERRUPT_CAUSE 0xf108
1063#define MV64460_GPP_INTERRUPT_MASK0 0xf10c
1064#define MV64460_GPP_INTERRUPT_MASK1 0xf114
1065#define MV64460_GPP_VALUE_SET 0xf118
1066#define MV64460_GPP_VALUE_CLEAR 0xf11c
1067
1068/****************************************/
1069/* Interrupt Controller Registers */
1070/****************************************/
1071
1072/****************************************/
1073/* Interrupts */
1074/****************************************/
1075
1076#define MV64460_MAIN_INTERRUPT_CAUSE_LOW 0x004
1077#define MV64460_MAIN_INTERRUPT_CAUSE_HIGH 0x00c
1078#define MV64460_CPU_INTERRUPT0_MASK_LOW 0x014
1079#define MV64460_CPU_INTERRUPT0_MASK_HIGH 0x01c
1080#define MV64460_CPU_INTERRUPT0_SELECT_CAUSE 0x024
1081#define MV64460_CPU_INTERRUPT1_MASK_LOW 0x034
1082#define MV64460_CPU_INTERRUPT1_MASK_HIGH 0x03c
1083#define MV64460_CPU_INTERRUPT1_SELECT_CAUSE 0x044
1084#define MV64460_INTERRUPT0_MASK_0_LOW 0x054
1085#define MV64460_INTERRUPT0_MASK_0_HIGH 0x05c
1086#define MV64460_INTERRUPT0_SELECT_CAUSE 0x064
1087#define MV64460_INTERRUPT1_MASK_0_LOW 0x074
1088#define MV64460_INTERRUPT1_MASK_0_HIGH 0x07c
1089#define MV64460_INTERRUPT1_SELECT_CAUSE 0x084
1090
1091/****************************************/
1092/* MPP Interface Registers */
1093/****************************************/
1094
1095#define MV64460_MPP_CONTROL0 0xf000
1096#define MV64460_MPP_CONTROL1 0xf004
1097#define MV64460_MPP_CONTROL2 0xf008
1098#define MV64460_MPP_CONTROL3 0xf00c
1099
1100/****************************************/
1101/* Serial Initialization registers */
1102/****************************************/
1103
1104#define MV64460_SERIAL_INIT_LAST_DATA 0xf324
1105#define MV64460_SERIAL_INIT_CONTROL 0xf328
1106#define MV64460_SERIAL_INIT_STATUS 0xf32c
1107
1108
1109#endif /* __INCgt64460rh */