1
2
3
4
5
6
7
8
9
10
11
12 #ifndef m5272sim_h
13 #define m5272sim_h
14
15
16 #define CPU_NAME "COLDFIRE(m5272)"
17 #define CPU_INSTR_PER_JIFFY 3
18 #define MCF_BUSCLK MCF_CLK
19
20 #include <asm/m52xxacr.h>
21
22
23
24
25 #define MCFSIM_SCR (MCF_MBAR + 0x04)
26 #define MCFSIM_SPR (MCF_MBAR + 0x06)
27 #define MCFSIM_PMR (MCF_MBAR + 0x08)
28 #define MCFSIM_APMR (MCF_MBAR + 0x0e)
29 #define MCFSIM_DIR (MCF_MBAR + 0x10)
30
31 #define MCFSIM_ICR1 (MCF_MBAR + 0x20)
32 #define MCFSIM_ICR2 (MCF_MBAR + 0x24)
33 #define MCFSIM_ICR3 (MCF_MBAR + 0x28)
34 #define MCFSIM_ICR4 (MCF_MBAR + 0x2c)
35
36 #define MCFSIM_ISR (MCF_MBAR + 0x30)
37 #define MCFSIM_PITR (MCF_MBAR + 0x34)
38 #define MCFSIM_PIWR (MCF_MBAR + 0x38)
39 #define MCFSIM_PIVR (MCF_MBAR + 0x3f)
40
41 #define MCFSIM_WRRR (MCF_MBAR + 0x280)
42 #define MCFSIM_WIRR (MCF_MBAR + 0x284)
43 #define MCFSIM_WCR (MCF_MBAR + 0x288)
44 #define MCFSIM_WER (MCF_MBAR + 0x28c)
45
46 #define MCFSIM_CSBR0 (MCF_MBAR + 0x40)
47 #define MCFSIM_CSOR0 (MCF_MBAR + 0x44)
48 #define MCFSIM_CSBR1 (MCF_MBAR + 0x48)
49 #define MCFSIM_CSOR1 (MCF_MBAR + 0x4c)
50 #define MCFSIM_CSBR2 (MCF_MBAR + 0x50)
51 #define MCFSIM_CSOR2 (MCF_MBAR + 0x54)
52 #define MCFSIM_CSBR3 (MCF_MBAR + 0x58)
53 #define MCFSIM_CSOR3 (MCF_MBAR + 0x5c)
54 #define MCFSIM_CSBR4 (MCF_MBAR + 0x60)
55 #define MCFSIM_CSOR4 (MCF_MBAR + 0x64)
56 #define MCFSIM_CSBR5 (MCF_MBAR + 0x68)
57 #define MCFSIM_CSOR5 (MCF_MBAR + 0x6c)
58 #define MCFSIM_CSBR6 (MCF_MBAR + 0x70)
59 #define MCFSIM_CSOR6 (MCF_MBAR + 0x74)
60 #define MCFSIM_CSBR7 (MCF_MBAR + 0x78)
61 #define MCFSIM_CSOR7 (MCF_MBAR + 0x7c)
62
63 #define MCFSIM_SDCR (MCF_MBAR + 0x180)
64 #define MCFSIM_SDTR (MCF_MBAR + 0x184)
65 #define MCFSIM_DCAR0 (MCF_MBAR + 0x4c)
66 #define MCFSIM_DCMR0 (MCF_MBAR + 0x50)
67 #define MCFSIM_DCCR0 (MCF_MBAR + 0x57)
68 #define MCFSIM_DCAR1 (MCF_MBAR + 0x58)
69 #define MCFSIM_DCMR1 (MCF_MBAR + 0x5c)
70 #define MCFSIM_DCCR1 (MCF_MBAR + 0x63)
71
72 #define MCFUART_BASE0 (MCF_MBAR + 0x100)
73 #define MCFUART_BASE1 (MCF_MBAR + 0x140)
74
75 #define MCFSIM_PACNT (MCF_MBAR + 0x80)
76 #define MCFSIM_PADDR (MCF_MBAR + 0x84)
77 #define MCFSIM_PADAT (MCF_MBAR + 0x86)
78 #define MCFSIM_PBCNT (MCF_MBAR + 0x88)
79 #define MCFSIM_PBDDR (MCF_MBAR + 0x8c)
80 #define MCFSIM_PBDAT (MCF_MBAR + 0x8e)
81 #define MCFSIM_PCDDR (MCF_MBAR + 0x94)
82 #define MCFSIM_PCDAT (MCF_MBAR + 0x96)
83 #define MCFSIM_PDCNT (MCF_MBAR + 0x98)
84
85 #define MCFDMA_BASE0 (MCF_MBAR + 0xe0)
86
87 #define MCFTIMER_BASE1 (MCF_MBAR + 0x200)
88 #define MCFTIMER_BASE2 (MCF_MBAR + 0x220)
89 #define MCFTIMER_BASE3 (MCF_MBAR + 0x240)
90 #define MCFTIMER_BASE4 (MCF_MBAR + 0x260)
91
92 #define MCFFEC_BASE0 (MCF_MBAR + 0x840)
93 #define MCFFEC_SIZE0 0x1d0
94
95
96
97
98 #define MCFINT_VECBASE 64
99 #define MCF_IRQ_SPURIOUS 64
100 #define MCF_IRQ_EINT1 65
101 #define MCF_IRQ_EINT2 66
102 #define MCF_IRQ_EINT3 67
103 #define MCF_IRQ_EINT4 68
104 #define MCF_IRQ_TIMER1 69
105 #define MCF_IRQ_TIMER2 70
106 #define MCF_IRQ_TIMER3 71
107 #define MCF_IRQ_TIMER4 72
108 #define MCF_IRQ_UART0 73
109 #define MCF_IRQ_UART1 74
110 #define MCF_IRQ_PLIP 75
111 #define MCF_IRQ_PLIA 76
112 #define MCF_IRQ_USB0 77
113 #define MCF_IRQ_USB1 78
114 #define MCF_IRQ_USB2 79
115 #define MCF_IRQ_USB3 80
116 #define MCF_IRQ_USB4 81
117 #define MCF_IRQ_USB5 82
118 #define MCF_IRQ_USB6 83
119 #define MCF_IRQ_USB7 84
120 #define MCF_IRQ_DMA 85
121 #define MCF_IRQ_FECRX0 86
122 #define MCF_IRQ_FECTX0 87
123 #define MCF_IRQ_FECENTC0 88
124 #define MCF_IRQ_QSPI 89
125 #define MCF_IRQ_EINT5 90
126 #define MCF_IRQ_EINT6 91
127 #define MCF_IRQ_SWTO 92
128 #define MCFINT_VECMAX 95
129
130 #define MCF_IRQ_TIMER MCF_IRQ_TIMER1
131 #define MCF_IRQ_PROFILER MCF_IRQ_TIMER2
132
133
134
135
136 #define MCFGPIO_PIN_MAX 48
137 #define MCFGPIO_IRQ_MAX -1
138 #define MCFGPIO_IRQ_VECBASE -1
139
140
141 #endif