Go to the documentation of this file.
17 #define CPU_NAME "COLDFIRE(m5407)"
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)
57 #define MCFSIM_CSAR2 (MCF_MBAR + 0x98)
58 #define MCFSIM_CSMR2 (MCF_MBAR + 0x9c)
59 #define MCFSIM_CSCR2 (MCF_MBAR + 0xa2)
60 #define MCFSIM_CSAR3 (MCF_MBAR + 0xa4)
61 #define MCFSIM_CSMR3 (MCF_MBAR + 0xa8)
62 #define MCFSIM_CSCR3 (MCF_MBAR + 0xae)
63 #define MCFSIM_CSAR4 (MCF_MBAR + 0xb0)
64 #define MCFSIM_CSMR4 (MCF_MBAR + 0xb4)
65 #define MCFSIM_CSCR4 (MCF_MBAR + 0xba)
66 #define MCFSIM_CSAR5 (MCF_MBAR + 0xbc)
67 #define MCFSIM_CSMR5 (MCF_MBAR + 0xc0)
68 #define MCFSIM_CSCR5 (MCF_MBAR + 0xc6)
69 #define MCFSIM_CSAR6 (MCF_MBAR + 0xc8)
70 #define MCFSIM_CSMR6 (MCF_MBAR + 0xcc)
71 #define MCFSIM_CSCR6 (MCF_MBAR + 0xd2)
72 #define MCFSIM_CSAR7 (MCF_MBAR + 0xd4)
73 #define MCFSIM_CSMR7 (MCF_MBAR + 0xd8)
74 #define MCFSIM_CSCR7 (MCF_MBAR + 0xde)
76 #define MCFSIM_DCR (MCF_MBAR + 0x100)
77 #define MCFSIM_DACR0 (MCF_MBAR + 0x108)
78 #define MCFSIM_DMR0 (MCF_MBAR + 0x10c)
79 #define MCFSIM_DACR1 (MCF_MBAR + 0x110)
80 #define MCFSIM_DMR1 (MCF_MBAR + 0x114)
85 #define MCFTIMER_BASE1 (MCF_MBAR + 0x140)
86 #define MCFTIMER_BASE2 (MCF_MBAR + 0x180)
88 #define MCFUART_BASE0 (MCF_MBAR + 0x1c0)
89 #define MCFUART_BASE1 (MCF_MBAR + 0x200)
91 #define MCFSIM_PADDR (MCF_MBAR + 0x244)
92 #define MCFSIM_PADAT (MCF_MBAR + 0x248)
97 #define MCFDMA_BASE0 (MCF_MBAR + 0x300)
98 #define MCFDMA_BASE1 (MCF_MBAR + 0x340)
99 #define MCFDMA_BASE2 (MCF_MBAR + 0x380)
100 #define MCFDMA_BASE3 (MCF_MBAR + 0x3C0)
105 #define MCFGPIO_PIN_MAX 16
106 #define MCFGPIO_IRQ_MAX -1
107 #define MCFGPIO_IRQ_VECBASE -1
112 #define MCFSIM_SWDICR MCFSIM_ICR0
113 #define MCFSIM_TIMER1ICR MCFSIM_ICR1
114 #define MCFSIM_TIMER2ICR MCFSIM_ICR2
115 #define MCFSIM_UART1ICR MCFSIM_ICR4
116 #define MCFSIM_UART2ICR MCFSIM_ICR5
117 #define MCFSIM_DMA0ICR MCFSIM_ICR6
118 #define MCFSIM_DMA1ICR MCFSIM_ICR7
119 #define MCFSIM_DMA2ICR MCFSIM_ICR8
120 #define MCFSIM_DMA3ICR MCFSIM_ICR9
125 #define MCFSIM_PAR_DREQ0 0x40
127 #define MCFSIM_PAR_DREQ1 0x20
133 #define IRQ5_LEVEL4 0x80
134 #define IRQ3_LEVEL6 0x40
135 #define IRQ1_LEVEL2 0x20
140 #define MCF_IRQ_TIMER 30
141 #define MCF_IRQ_PROFILER 31
142 #define MCF_IRQ_UART0 73
143 #define MCF_IRQ_UART1 74