Go to the documentation of this file.
17 #define CPU_NAME "COLDFIRE(m5307)"
18 #define CPU_INSTR_PER_JIFFY 3
19 #define MCF_BUSCLK (MCF_CLK / 2)
26 #define MCFSIM_RSR (MCF_MBAR + 0x00)
27 #define MCFSIM_SYPCR (MCF_MBAR + 0x01)
28 #define MCFSIM_SWIVR (MCF_MBAR + 0x02)
29 #define MCFSIM_SWSR (MCF_MBAR + 0x03)
30 #define MCFSIM_PAR (MCF_MBAR + 0x04)
31 #define MCFSIM_IRQPAR (MCF_MBAR + 0x06)
32 #define MCFSIM_PLLCR (MCF_MBAR + 0x08)
33 #define MCFSIM_MPARK (MCF_MBAR + 0x0C)
34 #define MCFSIM_IPR (MCF_MBAR + 0x40)
35 #define MCFSIM_IMR (MCF_MBAR + 0x44)
36 #define MCFSIM_AVR (MCF_MBAR + 0x4b)
37 #define MCFSIM_ICR0 (MCF_MBAR + 0x4c)
38 #define MCFSIM_ICR1 (MCF_MBAR + 0x4d)
39 #define MCFSIM_ICR2 (MCF_MBAR + 0x4e)
40 #define MCFSIM_ICR3 (MCF_MBAR + 0x4f)
41 #define MCFSIM_ICR4 (MCF_MBAR + 0x50)
42 #define MCFSIM_ICR5 (MCF_MBAR + 0x51)
43 #define MCFSIM_ICR6 (MCF_MBAR + 0x52)
44 #define MCFSIM_ICR7 (MCF_MBAR + 0x53)
45 #define MCFSIM_ICR8 (MCF_MBAR + 0x54)
46 #define MCFSIM_ICR9 (MCF_MBAR + 0x55)
47 #define MCFSIM_ICR10 (MCF_MBAR + 0x56)
48 #define MCFSIM_ICR11 (MCF_MBAR + 0x57)
50 #define MCFSIM_CSAR0 (MCF_MBAR + 0x80)
51 #define MCFSIM_CSMR0 (MCF_MBAR + 0x84)
52 #define MCFSIM_CSCR0 (MCF_MBAR + 0x8a)
53 #define MCFSIM_CSAR1 (MCF_MBAR + 0x8c)
54 #define MCFSIM_CSMR1 (MCF_MBAR + 0x90)
55 #define MCFSIM_CSCR1 (MCF_MBAR + 0x96)
58 #define MCFSIM_CSBAR (MCF_MBAR + 0x98)
59 #define MCFSIM_CSBAMR (MCF_MBAR + 0x9c)
60 #define MCFSIM_CSMR2 (MCF_MBAR + 0x9e)
61 #define MCFSIM_CSCR2 (MCF_MBAR + 0xa2)
62 #define MCFSIM_CSMR3 (MCF_MBAR + 0xaa)
63 #define MCFSIM_CSCR3 (MCF_MBAR + 0xae)
64 #define MCFSIM_CSMR4 (MCF_MBAR + 0xb6)
65 #define MCFSIM_CSCR4 (MCF_MBAR + 0xba)
66 #define MCFSIM_CSMR5 (MCF_MBAR + 0xc2)
67 #define MCFSIM_CSCR5 (MCF_MBAR + 0xc6)
68 #define MCFSIM_CSMR6 (MCF_MBAR + 0xce)
69 #define MCFSIM_CSCR6 (MCF_MBAR + 0xd2)
70 #define MCFSIM_CSMR7 (MCF_MBAR + 0xda)
71 #define MCFSIM_CSCR7 (MCF_MBAR + 0xde)
73 #define MCFSIM_CSAR2 (MCF_MBAR + 0x98)
74 #define MCFSIM_CSMR2 (MCF_MBAR + 0x9c)
75 #define MCFSIM_CSCR2 (MCF_MBAR + 0xa2)
76 #define MCFSIM_CSAR3 (MCF_MBAR + 0xa4)
77 #define MCFSIM_CSMR3 (MCF_MBAR + 0xa8)
78 #define MCFSIM_CSCR3 (MCF_MBAR + 0xae)
79 #define MCFSIM_CSAR4 (MCF_MBAR + 0xb0)
80 #define MCFSIM_CSMR4 (MCF_MBAR + 0xb4)
81 #define MCFSIM_CSCR4 (MCF_MBAR + 0xba)
82 #define MCFSIM_CSAR5 (MCF_MBAR + 0xbc)
83 #define MCFSIM_CSMR5 (MCF_MBAR + 0xc0)
84 #define MCFSIM_CSCR5 (MCF_MBAR + 0xc6)
85 #define MCFSIM_CSAR6 (MCF_MBAR + 0xc8)
86 #define MCFSIM_CSMR6 (MCF_MBAR + 0xcc)
87 #define MCFSIM_CSCR6 (MCF_MBAR + 0xd2)
88 #define MCFSIM_CSAR7 (MCF_MBAR + 0xd4)
89 #define MCFSIM_CSMR7 (MCF_MBAR + 0xd8)
90 #define MCFSIM_CSCR7 (MCF_MBAR + 0xde)
93 #define MCFSIM_DCR (MCF_MBAR + 0x100)
94 #define MCFSIM_DACR0 (MCF_MBAR + 0x108)
95 #define MCFSIM_DMR0 (MCF_MBAR + 0x10c)
96 #define MCFSIM_DACR1 (MCF_MBAR + 0x110)
97 #define MCFSIM_DMR1 (MCF_MBAR + 0x114)
102 #define MCFTIMER_BASE1 (MCF_MBAR + 0x140)
103 #define MCFTIMER_BASE2 (MCF_MBAR + 0x180)
105 #define MCFSIM_PADDR (MCF_MBAR + 0x244)
106 #define MCFSIM_PADAT (MCF_MBAR + 0x248)
111 #define MCFDMA_BASE0 (MCF_MBAR + 0x300)
112 #define MCFDMA_BASE1 (MCF_MBAR + 0x340)
113 #define MCFDMA_BASE2 (MCF_MBAR + 0x380)
114 #define MCFDMA_BASE3 (MCF_MBAR + 0x3C0)
119 #if defined(CONFIG_NETtel) || defined(CONFIG_SECUREEDGEMP3)
120 #define MCFUART_BASE0 (MCF_MBAR + 0x200)
121 #define MCFUART_BASE1 (MCF_MBAR + 0x1c0)
123 #define MCFUART_BASE0 (MCF_MBAR + 0x1c0)
124 #define MCFUART_BASE1 (MCF_MBAR + 0x200)
130 #define MCFGPIO_PIN_MAX 16
131 #define MCFGPIO_IRQ_MAX -1
132 #define MCFGPIO_IRQ_VECBASE -1
137 #define MCF5307_CS2 (0x400000)
138 #define MCF5307_CS3 (0x600000)
139 #define MCF5307_CS4 (0x800000)
140 #define MCF5307_CS5 (0xA00000)
141 #define MCF5307_CS6 (0xC00000)
142 #define MCF5307_CS7 (0xE00000)
148 #define MCFSIM_SWDICR MCFSIM_ICR0
149 #define MCFSIM_TIMER1ICR MCFSIM_ICR1
150 #define MCFSIM_TIMER2ICR MCFSIM_ICR2
151 #define MCFSIM_UART1ICR MCFSIM_ICR4
152 #define MCFSIM_UART2ICR MCFSIM_ICR5
153 #define MCFSIM_DMA0ICR MCFSIM_ICR6
154 #define MCFSIM_DMA1ICR MCFSIM_ICR7
155 #define MCFSIM_DMA2ICR MCFSIM_ICR8
156 #define MCFSIM_DMA3ICR MCFSIM_ICR9
162 #define MCFSIM_PAR_DREQ0 0x40
164 #define MCFSIM_PAR_DREQ1 0x20
170 #define IRQ5_LEVEL4 0x80
171 #define IRQ3_LEVEL6 0x40
172 #define IRQ1_LEVEL2 0x20
177 #define MCF_IRQ_TIMER 30
178 #define MCF_IRQ_PROFILER 31
179 #define MCF_IRQ_UART0 73
180 #define MCF_IRQ_UART1 74