;Register definition for IXP425
;==============================
;
; name: user defined name of the register
; type: the type of the register
;	GPR	general purpose register
;	CP15	CP15 register
;	MM	memory mapped register
;	DMMx	direct memory mapped register with offset
;		x = 1..4
;		the base is defined in the configuration file
;		e.g. DMM1 0x02200000
; addr:	the number, adddress or offset of the register
; size	the size of the register (8,16 or 32)
;
;
; CP15 Registers Numbers for xScale:
;
;       +-----+-+-------+-----+-+-------+
;       |opc_2|0|  CRm  |opc_1|0|  nbr  |
;       +-----+-+-------+-----+-+-------+
;        5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
;        1 1 1 1 1 1
;
; The 16bit register number is used to build the appropriate MCR/MRC instruction.
;
;
;name		type	addr		size
;-------------------------------------------
;
id		CP15    0x0000          32      ;ID code
cache   	CP15    0x2000          32      ;Cache type
ctr             CP15    0x0001          32      ;Control
aux     	CP15    0x2001          32      ;Auxiliary Control
ttb             CP15    0x0002          32      ;Translation Table Base
dac             CP15    0x0003          32      ;Domain Access Control
fsr     	CP15    0x0005          32      ;Fault Status
far     	CP15    0x0006          32      ;Fault Address
pid        	CP15    0x000d          32      ;Process ID
cpacc      	CP15    0x010f          32      ;Coprocessor Access
;
pmnc   		CP14    0x0000          32      ;Performance Monitoring
ccnt   		CP14    0x0001          32      ;Performance Monitoring
pmn0   		CP14    0x0002          32      ;Performance Monitoring
pmn1   		CP14    0x0003          32      ;Performance Monitoring
cclkcfg		CP14    0x0006          32      ;Clock Management
pwrmode		CP14    0x0007          32      ;Power Management
;
;       Expansion bus
;
exp_cs0         MM      0xc4000000
exp_cs1         MM      0xc4000004
exp_cs2         MM      0xc4000008
exp_cs3         MM      0xc400000c
exp_cs4         MM      0xc4000010
exp_cs5         MM      0xc4000014
exp_cs6         MM      0xc4000018
exp_cs7         MM      0xc400001c
exp_cfg0        MM      0xc4000020
exp_cfg1        MM      0xc4000024
exp_cfg2        MM      0xc4000028
;
;       SDRAM Controller
;
sdr_config      MM      0xcc000000
sdr_refresh     MM      0xcc000004
sdr_ir          MM      0xcc000008
sdr_pg0         MM      0xcc00000c
sdr_pg1         MM      0xcc000010
sdr_pg2         MM      0xcc000014
sdr_pg3         MM      0xcc000018
sdr_pg4         MM      0xcc00001c
sdr_pg5         MM      0xcc000020
sdr_pg6         MM      0xcc000024
sdr_pg7         MM      0xcc000028
;
;       PCI
;
np_ad	        MM      0xc0000000
np_cbe          MM      0xc0000004
np_wdata        MM      0xc0000008
np_rdata        MM      0xc000000c
crp_ad_cbe      MM      0xc0000010
crp_wdata       MM      0xc0000014
crp_rdata       MM      0xc0000018
csr 	        MM      0xc000001c
isr  	        MM      0xc0000020
inten  	        MM      0xc0000024
dmactrl         MM      0xc0000028
ahbmembase      MM      0xc000002c
ahbiobase       MM      0xc0000030
pcimembase      MM      0xc0000034
ahbdoorbell     MM      0xc0000038
pcidoorbell     MM      0xc000003c
atpdma0_ahbaddr MM      0xc0000040
atpdma0_pciaddr MM      0xc0000044
atpdma0_length  MM      0xc0000048
atpdma1_ahbaddr MM      0xc000004c
atpdma1_pciaddr MM      0xc0000050
atpdma1_length  MM      0xc0000054
ptadma0_ahbaddr MM      0xc0000058
ptadma0_pciaddr MM      0xc000005c
ptadma0_length  MM      0xc0000060
ptadma1_ahbaddr MM      0xc0000064
ptadma1_pciaddr MM      0xc0000068
ptadma1_length  MM      0xc000006c
;
;       Queue Manager
;
qm_lowsts0      MM      0x60002400
qm_lowsts1      MM      0x60002404
qm_lowsts2      MM      0x60002408
qm_lowsts3      MM      0x6000240c
qm_undovrsts0   MM      0x60002410
qm_undovrsts1   MM      0x60002414
qm_nests        MM      0x60002418
qm_fsts         MM      0x6000241c
qm_irqflg0      MM      0x60002420
qm_irqflg1      MM      0x60002424
qm_irqflg2      MM      0x60002428
qm_irqflg3      MM      0x6000242c
qm_irqenb0      MM      0x60002430
qm_irqenb1      MM      0x60002434
qm_irqstsl      MM      0x60002438
qm_irqstsh      MM      0x6000243c
;
qm_cfg0         MM      0x60002000
qm_cfg1         MM      0x60002004
qm_cfg2         MM      0x60002008
qm_cfg3         MM      0x6000200c
qm_cfg4         MM      0x60002010
qm_cfg5         MM      0x60002014
qm_cfg6         MM      0x60002018
qm_cfg7         MM      0x6000201c
qm_cfg8         MM      0x60002020
qm_cfg9         MM      0x60002024
qm_cfg10        MM      0x60002028
qm_cfg11        MM      0x6000202c
qm_cfg12        MM      0x60002030
qm_cfg13        MM      0x60002034
qm_cfg14        MM      0x60002038
qm_cfg15        MM      0x6000203c
qm_cfg16        MM      0x60002040
qm_cfg17        MM      0x60002044
qm_cfg18        MM      0x60002048
qm_cfg19        MM      0x6000204c
qm_cfg20        MM      0x60002050
qm_cfg21        MM      0x60002054
qm_cfg22        MM      0x60002058
qm_cfg23        MM      0x6000205c
qm_cfg24        MM      0x60002060
qm_cfg25        MM      0x60002064
qm_cfg26        MM      0x60002068
qm_cfg27        MM      0x6000206c
qm_cfg28        MM      0x60002070
qm_cfg29        MM      0x60002074
qm_cfg30        MM      0x60002078
qm_cfg31        MM      0x6000207c
qm_cfg32        MM      0x60002080
qm_cfg33        MM      0x60002084
qm_cfg34        MM      0x60002088
qm_cfg35        MM      0x6000208c
qm_cfg36        MM      0x60002090
qm_cfg37        MM      0x60002094
qm_cfg38        MM      0x60002098
qm_cfg39        MM      0x6000209c
qm_cfg40        MM      0x600020a0
qm_cfg41        MM      0x600020a4
qm_cfg42        MM      0x600020a8
qm_cfg43        MM      0x600020ac
qm_cfg44        MM      0x600020b0
qm_cfg45        MM      0x600020b4
qm_cfg46        MM      0x600020b8
qm_cfg47        MM      0x600020bc
qm_cfg48        MM      0x600020c0
qm_cfg49        MM      0x600020c4
qm_cfg50        MM      0x600020c8
qm_cfg51        MM      0x600020cc
qm_cfg52        MM      0x600020d0
qm_cfg53        MM      0x600020d4
qm_cfg54        MM      0x600020d8
qm_cfg55        MM      0x600020dc
qm_cfg56        MM      0x600020e0
qm_cfg57        MM      0x600020e4
qm_cfg58        MM      0x600020e8
qm_cfg59        MM      0x600020ec
qm_cfg60        MM      0x600020f0
qm_cfg61        MM      0x600020f4
qm_cfg62        MM      0x600020f8
qm_cfg63        MM      0x600020fc
;
;       UART 1
;
uart_rbr1       MM      0xc8000000
uart_thr1       MM      0xc8000000
uart_ier1       MM      0xc8000004
uart_iir1       MM      0xc8000008
uart_fcr1       MM      0xc8000008
uart_lcr1       MM      0xc800000c
uart_mcr1       MM      0xc8000010
uart_lsr1       MM      0xc8000014
uart_msr1       MM      0xc8000018
uart_scr1       MM      0xc800001c
uart_isr1       MM      0xc8000020
;
;       UART 2
;
uart_rbr2       MM      0xc8001000
uart_thr2       MM      0xc8001000
uart_ier2       MM      0xc8001004
uart_iir2       MM      0xc8001008
uart_fcr2       MM      0xc8001008
uart_lcr2       MM      0xc800100c
uart_mcr2       MM      0xc8001010
uart_lsr2       MM      0xc8001014
uart_msr2       MM      0xc8001018
uart_scr2       MM      0xc800101c
uart_isr2       MM      0xc8001020
;
;       PMU
;
pmu_esr         MM      0xc8002000
pmu_psr         MM      0xc8002004
pmu_pec1        MM      0xc8002008
pmu_pec2        MM      0xc800200c
pmu_pec3        MM      0xc8002010
pmu_pec4        MM      0xc8002014
pmu_pec5        MM      0xc8002018
pmu_pec6        MM      0xc800201c
pmu_pec7        MM      0xc8002010
pmu_pmsr        MM      0xc8002024
;
;       Interrupt controller
;
intc_st         MM      0xc8003000
intc_en         MM      0xc8003004
intc_sel        MM      0xc8003008
intc_irqst      MM      0xc800300c
intc_fiqst      MM      0xc8003010
intc_prty       MM      0xc8003014
intc_irqencst   MM      0xc8003018
intc_fiqencst   MM      0xc800301c
;
;       GPIO
;
gpio_gpoutr     MM      0xc8004000
gpio_gpoer      MM      0xc8004004
gpio_gpinr      MM      0xc8004008
gpio_gpisr      MM      0xc800400c
gpio_gpit1r     MM      0xc8004010
gpio_gpit2r     MM      0xc8004014
gpio_gpclk      MM      0xc8004018
gpio_gpdselr    MM      0xc800401c
;
;       Timer
;
tmr_ts          MM      0xc8005000
tmr_tim0        MM      0xc8005004
tmr_tim0rl      MM      0xc8005008
tmr_tim1        MM      0xc800500c
tmr_tim1rl      MM      0xc8005010
tmr_wdog        MM      0xc8005014
tmr_wdogenab    MM      0xc8005018
tmr_wdogkey     MM      0xc800501c
tmt_sts         MM      0xc8005020
;
;       Execution Control & Debug PSMA
;
psma_addrreg    MM      0xc8006000
psma_datareg    MM      0xc8006004
psma_ctrlreg    MM      0xc8006008
psma_excntreg   MM      0xc800600c
psma_apreg0     MM      0xc8006010
psma_apreg1     MM      0xc8006014
psma_apreg2     MM      0xc8006018
psma_apreg3     MM      0xc800601c
psma_wfiforeg   MM      0xc8006020
psma_wcntreg    MM      0xc8006024
psma_pcntreg    MM      0xc8006028
psma_msgstatre  MM      0xc800602c
psma_msgctrlre  MM      0xc8006030
psma_msgmboxre  MM      0xc8006034
psma_msgfifore  MM      0xc8006038
;
;       Execution Control & Debug PSMB
;
psmb_addrreg    MM      0xc8007000
psmb_datareg    MM      0xc8007004
psmb_ctrlreg    MM      0xc8007008
psmb_excntreg   MM      0xc800700c
psmb_apreg0     MM      0xc8007010
psmb_apreg1     MM      0xc8007014
psmb_apreg2     MM      0xc8007018
psmb_apreg3     MM      0xc800701c
psmb_wfiforeg   MM      0xc8007020
psmb_wcntreg    MM      0xc8007024
psmb_pcntreg    MM      0xc8007028
psmb_msgstatre  MM      0xc800702c
psmb_msgctrlre  MM      0xc8007030
psmb_msgmboxre  MM      0xc8007034
psmb_msgfifore  MM      0xc8007038
;
;       Execution Control & Debug PSMC
;
psmc_addrreg    MM      0xc8008000
psmc_datareg    MM      0xc8008004
psmc_ctrlreg    MM      0xc8008008
psmc_excntreg   MM      0xc800800c
psmc_apreg0     MM      0xc8008010
psmc_apreg1     MM      0xc8008014
psmc_apreg2     MM      0xc8008018
psmc_apreg3     MM      0xc800801c
psmc_wfiforeg   MM      0xc8008020
psmc_wcntreg    MM      0xc8008024
psmc_pcntreg    MM      0xc8008028
psmc_msgstatre  MM      0xc800802c
psmc_msgctrlre  MM      0xc8008030
psmc_msgmboxre  MM      0xc8008034
psmc_msgfifore  MM      0xc8008038

