Go to the documentation of this file.
15 #define CPU_NAME "COLDFIRE(m525x)"
16 #define CPU_INSTR_PER_JIFFY 3
17 #define MCF_BUSCLK (MCF_CLK / 2)
24 #define MCF_MBAR2 0x80000000
29 #define MCFSIM_RSR (MCF_MBAR + 0x00)
30 #define MCFSIM_SYPCR (MCF_MBAR + 0x01)
31 #define MCFSIM_SWIVR (MCF_MBAR + 0x02)
32 #define MCFSIM_SWSR (MCF_MBAR + 0x03)
33 #define MCFSIM_MPARK (MCF_MBAR + 0x0C)
34 #define MCFSIM_IPR (MCF_MBAR + 0x40)
35 #define MCFSIM_IMR (MCF_MBAR + 0x44)
36 #define MCFSIM_ICR0 (MCF_MBAR + 0x4c)
37 #define MCFSIM_ICR1 (MCF_MBAR + 0x4d)
38 #define MCFSIM_ICR2 (MCF_MBAR + 0x4e)
39 #define MCFSIM_ICR3 (MCF_MBAR + 0x4f)
40 #define MCFSIM_ICR4 (MCF_MBAR + 0x50)
41 #define MCFSIM_ICR5 (MCF_MBAR + 0x51)
42 #define MCFSIM_ICR6 (MCF_MBAR + 0x52)
43 #define MCFSIM_ICR7 (MCF_MBAR + 0x53)
44 #define MCFSIM_ICR8 (MCF_MBAR + 0x54)
45 #define MCFSIM_ICR9 (MCF_MBAR + 0x55)
46 #define MCFSIM_ICR10 (MCF_MBAR + 0x56)
47 #define MCFSIM_ICR11 (MCF_MBAR + 0x57)
49 #define MCFSIM_CSAR0 (MCF_MBAR + 0x80)
50 #define MCFSIM_CSMR0 (MCF_MBAR + 0x84)
51 #define MCFSIM_CSCR0 (MCF_MBAR + 0x8a)
52 #define MCFSIM_CSAR1 (MCF_MBAR + 0x8c)
53 #define MCFSIM_CSMR1 (MCF_MBAR + 0x90)
54 #define MCFSIM_CSCR1 (MCF_MBAR + 0x96)
55 #define MCFSIM_CSAR2 (MCF_MBAR + 0x98)
56 #define MCFSIM_CSMR2 (MCF_MBAR + 0x9c)
57 #define MCFSIM_CSCR2 (MCF_MBAR + 0xa2)
58 #define MCFSIM_CSAR3 (MCF_MBAR + 0xa4)
59 #define MCFSIM_CSMR3 (MCF_MBAR + 0xa8)
60 #define MCFSIM_CSCR3 (MCF_MBAR + 0xae)
61 #define MCFSIM_CSAR4 (MCF_MBAR + 0xb0)
62 #define MCFSIM_CSMR4 (MCF_MBAR + 0xb4)
63 #define MCFSIM_CSCR4 (MCF_MBAR + 0xba)
65 #define MCFSIM_DCR (MCF_MBAR + 0x100)
66 #define MCFSIM_DACR0 (MCF_MBAR + 0x108)
67 #define MCFSIM_DMR0 (MCF_MBAR + 0x10c)
72 #define MCFINTC2_INTBASE (MCF_MBAR2 + 0x168)
73 #define MCFINTC2_INTPRI1 (MCF_MBAR2 + 0x140)
74 #define MCFINTC2_INTPRI2 (MCF_MBAR2 + 0x144)
75 #define MCFINTC2_INTPRI3 (MCF_MBAR2 + 0x148)
76 #define MCFINTC2_INTPRI4 (MCF_MBAR2 + 0x14c)
77 #define MCFINTC2_INTPRI5 (MCF_MBAR2 + 0x150)
78 #define MCFINTC2_INTPRI6 (MCF_MBAR2 + 0x154)
79 #define MCFINTC2_INTPRI7 (MCF_MBAR2 + 0x158)
80 #define MCFINTC2_INTPRI8 (MCF_MBAR2 + 0x15c)
82 #define MCFINTC2_INTPRI_REG(i) (MCFINTC2_INTPRI1 + \
83 ((((i) - MCFINTC2_VECBASE) / 8) * 4))
84 #define MCFINTC2_INTPRI_BITS(b, i) ((b) << (((i) % 8) * 4))
89 #define MCFTIMER_BASE1 (MCF_MBAR + 0x140)
90 #define MCFTIMER_BASE2 (MCF_MBAR + 0x180)
95 #define MCFUART_BASE0 (MCF_MBAR + 0x1c0)
96 #define MCFUART_BASE1 (MCF_MBAR + 0x200)
101 #define MCFQSPI_BASE (MCF_MBAR + 0x300)
102 #define MCFQSPI_SIZE 0x40
105 #define MCFQSPI_CS0 15
106 #define MCFQSPI_CS1 16
107 #define MCFQSPI_CS2 24
108 #define MCFQSPI_CS3 28
113 #define MCFI2C_BASE0 (MCF_MBAR + 0x280)
114 #define MCFI2C_SIZE0 0x20
116 #define MCFI2C_BASE1 (MCF_MBAR2 + 0x440)
117 #define MCFI2C_SIZE1 0x20
121 #define MCFDMA_BASE0 (MCF_MBAR + 0x300)
122 #define MCFDMA_BASE1 (MCF_MBAR + 0x340)
123 #define MCFDMA_BASE2 (MCF_MBAR + 0x380)
124 #define MCFDMA_BASE3 (MCF_MBAR + 0x3C0)
129 #define MCFSIM_SWDICR MCFSIM_ICR0
130 #define MCFSIM_TIMER1ICR MCFSIM_ICR1
131 #define MCFSIM_TIMER2ICR MCFSIM_ICR2
132 #define MCFSIM_I2CICR MCFSIM_ICR3
133 #define MCFSIM_UART1ICR MCFSIM_ICR4
134 #define MCFSIM_UART2ICR MCFSIM_ICR5
135 #define MCFSIM_DMA0ICR MCFSIM_ICR6
136 #define MCFSIM_DMA1ICR MCFSIM_ICR7
137 #define MCFSIM_DMA2ICR MCFSIM_ICR8
138 #define MCFSIM_DMA3ICR MCFSIM_ICR9
139 #define MCFSIM_QSPIICR MCFSIM_ICR10
144 #define MCF_IRQ_QSPI 28
145 #define MCF_IRQ_I2C0 29
146 #define MCF_IRQ_TIMER 30
147 #define MCF_IRQ_PROFILER 31
149 #define MCF_IRQ_UART0 73
150 #define MCF_IRQ_UART1 74
157 #define MCFINTC2_VECBASE 128
159 #define MCF_IRQ_GPIO0 (MCFINTC2_VECBASE + 32)
160 #define MCF_IRQ_GPIO1 (MCFINTC2_VECBASE + 33)
161 #define MCF_IRQ_GPIO2 (MCFINTC2_VECBASE + 34)
162 #define MCF_IRQ_GPIO3 (MCFINTC2_VECBASE + 35)
163 #define MCF_IRQ_GPIO4 (MCFINTC2_VECBASE + 36)
164 #define MCF_IRQ_GPIO5 (MCFINTC2_VECBASE + 37)
165 #define MCF_IRQ_GPIO6 (MCFINTC2_VECBASE + 38)
167 #define MCF_IRQ_USBWUP (MCFINTC2_VECBASE + 40)
168 #define MCF_IRQ_I2C1 (MCFINTC2_VECBASE + 62)
173 #define MCFSIM2_GPIOREAD (MCF_MBAR2 + 0x000)
174 #define MCFSIM2_GPIOWRITE (MCF_MBAR2 + 0x004)
175 #define MCFSIM2_GPIOENABLE (MCF_MBAR2 + 0x008)
176 #define MCFSIM2_GPIOFUNC (MCF_MBAR2 + 0x00C)
177 #define MCFSIM2_GPIO1READ (MCF_MBAR2 + 0x0B0)
178 #define MCFSIM2_GPIO1WRITE (MCF_MBAR2 + 0x0B4)
179 #define MCFSIM2_GPIO1ENABLE (MCF_MBAR2 + 0x0B8)
180 #define MCFSIM2_GPIO1FUNC (MCF_MBAR2 + 0x0BC)
182 #define MCFSIM2_GPIOINTSTAT (MCF_MBAR2 + 0xc0)
183 #define MCFSIM2_GPIOINTCLEAR (MCF_MBAR2 + 0xc0)
184 #define MCFSIM2_GPIOINTENABLE (MCF_MBAR2 + 0xc4)
189 #define MCFGPIO_PIN_MAX 64
190 #define MCFGPIO_IRQ_MAX 7
191 #define MCFGPIO_IRQ_VECBASE MCF_IRQ_GPIO0