2 * ColdFire Internal Memory Map and Defines
4 * Copyright (C) 2004-2007 Freescale Semiconductor, Inc.
7 * See file CREDITS for list of people who contributed to this
10 * This program is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License as
12 * published by the Free Software Foundation; either version 2 of
13 * the License, or (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
30 #include <asm/immap_5227x.h>
31 #include <asm/m5227x.h>
33 #define CFG_UART_BASE (MMAP_UART0 + (CFG_UART_PORT * 0x4000))
35 #define CFG_MCFRTC_BASE (MMAP_RTC)
38 #define CFG_LCD_BASE (MMAP_LCD)
43 #define CFG_UDELAY_BASE (MMAP_DTMR0)
44 #define CFG_TMR_BASE (MMAP_DTMR1)
45 #define CFG_TMRPND_REG (((volatile int0_t *)(CFG_INTR_BASE))->iprh0)
46 #define CFG_TMRINTR_NO (INT0_HI_DTMR1)
47 #define CFG_TMRINTR_MASK (INTC_IPRH_INT33)
48 #define CFG_TMRINTR_PEND (CFG_TMRINTR_MASK)
49 #define CFG_TMRINTR_PRI (6)
50 #define CFG_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8)
54 #define CFG_UDELAY_BASE (MMAP_PIT0)
55 #define CFG_PIT_BASE (MMAP_PIT1)
56 #define CFG_PIT_PRESCALE (6)
59 #define CFG_INTR_BASE (MMAP_INTC0)
60 #define CFG_NUM_IRQS (128)
61 #endif /* CONFIG_M52277 */
64 #include <asm/immap_5235.h>
65 #include <asm/m5235.h>
67 #define CFG_FEC0_IOBASE (MMAP_FEC)
68 #define CFG_UART_BASE (MMAP_UART0 + (CFG_UART_PORT * 0x40))
72 #define CFG_UDELAY_BASE (MMAP_DTMR0)
73 #define CFG_TMR_BASE (MMAP_DTMR3)
74 #define CFG_TMRPND_REG (((volatile int0_t *)(CFG_INTR_BASE))->iprl0)
75 #define CFG_TMRINTR_NO (INT0_LO_DTMR3)
76 #define CFG_TMRINTR_MASK (INTC_IPRL_INT22)
77 #define CFG_TMRINTR_PEND (CFG_TMRINTR_MASK)
78 #define CFG_TMRINTR_PRI (0x1E) /* Level must include inorder to work */
79 #define CFG_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8)
83 #define CFG_UDELAY_BASE (MMAP_PIT0)
84 #define CFG_PIT_BASE (MMAP_PIT1)
85 #define CFG_PIT_PRESCALE (6)
88 #define CFG_INTR_BASE (MMAP_INTC0)
89 #define CFG_NUM_IRQS (128)
90 #endif /* CONFIG_M5235 */
93 #include <asm/immap_5249.h>
94 #include <asm/m5249.h>
96 #define CFG_UART_BASE (MMAP_UART0 + (CFG_UART_PORT * 0x40))
98 #define CFG_INTR_BASE (MMAP_INTC)
99 #define CFG_NUM_IRQS (64)
103 #define CFG_UDELAY_BASE (MMAP_DTMR0)
104 #define CFG_TMR_BASE (MMAP_DTMR1)
105 #define CFG_TMRPND_REG (mbar_readLong(MCFSIM_IPR))
106 #define CFG_TMRINTR_NO (31)
107 #define CFG_TMRINTR_MASK (0x00000400)
108 #define CFG_TMRINTR_PEND (CFG_TMRINTR_MASK)
109 #define CFG_TMRINTR_PRI (MCFSIM_ICR_AUTOVEC | MCFSIM_ICR_LEVEL7 | MCFSIM_ICR_PRI3)
110 #define CFG_TIMER_PRESCALER (((gd->bus_clk / 2000000) - 1) << 8)
112 #endif /* CONFIG_M5249 */
115 #include <asm/immap_5253.h>
116 #include <asm/m5249.h>
117 #include <asm/m5253.h>
119 #define CFG_UART_BASE (MMAP_UART0 + (CFG_UART_PORT * 0x40))
121 #define CFG_INTR_BASE (MMAP_INTC)
122 #define CFG_NUM_IRQS (64)
126 #define CFG_UDELAY_BASE (MMAP_DTMR0)
127 #define CFG_TMR_BASE (MMAP_DTMR1)
128 #define CFG_TMRPND_REG (mbar_readLong(MCFSIM_IPR))
129 #define CFG_TMRINTR_NO (27)
130 #define CFG_TMRINTR_MASK (0x00000400)
131 #define CFG_TMRINTR_PEND (CFG_TMRINTR_MASK)
132 #define CFG_TMRINTR_PRI (MCFSIM_ICR_AUTOVEC | MCFSIM_ICR_LEVEL3 | MCFSIM_ICR_PRI3)
133 #define CFG_TIMER_PRESCALER (((gd->bus_clk / 2000000) - 1) << 8)
135 #endif /* CONFIG_M5253 */
138 #include <asm/immap_5271.h>
139 #include <asm/m5271.h>
141 #define CFG_FEC0_IOBASE (MMAP_FEC)
142 #define CFG_UART_BASE (MMAP_UART0 + (CFG_UART_PORT * 0x40))
146 #define CFG_UDELAY_BASE (MMAP_DTMR0)
147 #define CFG_TMR_BASE (MMAP_DTMR3)
148 #define CFG_TMRPND_REG (((volatile int0_t *)(CFG_INTR_BASE))->iprl0)
149 #define CFG_TMRINTR_NO (INT0_LO_DTMR3)
150 #define CFG_TMRINTR_MASK (INTC_IPRL_INT22)
151 #define CFG_TMRINTR_PEND (CFG_TMRINTR_MASK)
152 #define CFG_TMRINTR_PRI (0) /* Level must include inorder to work */
153 #define CFG_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8)
156 #define CFG_INTR_BASE (MMAP_INTC0)
157 #define CFG_NUM_IRQS (128)
158 #endif /* CONFIG_M5271 */
161 #include <asm/immap_5272.h>
162 #include <asm/m5272.h>
164 #define CFG_FEC0_IOBASE (MMAP_FEC)
165 #define CFG_UART_BASE (MMAP_UART0 + (CFG_UART_PORT * 0x40))
167 #define CFG_INTR_BASE (MMAP_INTC)
168 #define CFG_NUM_IRQS (64)
172 #define CFG_UDELAY_BASE (MMAP_TMR0)
173 #define CFG_TMR_BASE (MMAP_TMR3)
174 #define CFG_TMRPND_REG (((volatile intctrl_t *)(CFG_INTR_BASE))->int_isr)
175 #define CFG_TMRINTR_NO (INT_TMR3)
176 #define CFG_TMRINTR_MASK (INT_ISR_INT24)
177 #define CFG_TMRINTR_PEND (0)
178 #define CFG_TMRINTR_PRI (INT_ICR1_TMR3PI | INT_ICR1_TMR3IPL(5))
179 #define CFG_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8)
181 #endif /* CONFIG_M5272 */
184 #include <asm/immap_5282.h>
185 #include <asm/m5282.h>
187 #define CFG_FEC0_IOBASE (MMAP_FEC)
188 #define CFG_UART_BASE (MMAP_UART0 + (CFG_UART_PORT * 0x40))
190 #define CFG_INTR_BASE (MMAP_INTC0)
191 #define CFG_NUM_IRQS (128)
195 #define CFG_UDELAY_BASE (MMAP_DTMR0)
196 #define CFG_TMR_BASE (MMAP_DTMR3)
197 #define CFG_TMRPND_REG (((volatile int0_t *)(CFG_INTR_BASE))->iprl0)
198 #define CFG_TMRINTR_NO (INT0_LO_DTMR3)
199 #define CFG_TMRINTR_MASK (1 << INT0_LO_DTMR3)
200 #define CFG_TMRINTR_PEND (CFG_TMRINTR_MASK)
201 #define CFG_TMRINTR_PRI (0x1E) /* Level must include inorder to work */
202 #define CFG_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8)
204 #endif /* CONFIG_M5282 */
206 #if defined(CONFIG_M5329) || defined(CONFIG_M5373)
207 #include <asm/immap_5329.h>
208 #include <asm/m5329.h>
210 #define CFG_FEC0_IOBASE (MMAP_FEC)
211 #define CFG_UART_BASE (MMAP_UART0 + (CFG_UART_PORT * 0x4000))
212 #define CFG_MCFRTC_BASE (MMAP_RTC)
216 #define CFG_UDELAY_BASE (MMAP_DTMR0)
217 #define CFG_TMR_BASE (MMAP_DTMR1)
218 #define CFG_TMRPND_REG (((volatile int0_t *)(CFG_INTR_BASE))->iprh0)
219 #define CFG_TMRINTR_NO (INT0_HI_DTMR1)
220 #define CFG_TMRINTR_MASK (INTC_IPRH_INT33)
221 #define CFG_TMRINTR_PEND (CFG_TMRINTR_MASK)
222 #define CFG_TMRINTR_PRI (6)
223 #define CFG_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8)
227 #define CFG_UDELAY_BASE (MMAP_PIT0)
228 #define CFG_PIT_BASE (MMAP_PIT1)
229 #define CFG_PIT_PRESCALE (6)
232 #define CFG_INTR_BASE (MMAP_INTC0)
233 #define CFG_NUM_IRQS (128)
234 #endif /* CONFIG_M5329 && CONFIG_M5373 */
237 #include <asm/immap_5445x.h>
238 #include <asm/m5445x.h>
240 #define CFG_FEC0_IOBASE (MMAP_FEC0)
241 #define CFG_FEC1_IOBASE (MMAP_FEC1)
243 #define CFG_UART_BASE (MMAP_UART0 + (CFG_UART_PORT * 0x4000))
245 #define CFG_MCFRTC_BASE (MMAP_RTC)
249 #define CFG_UDELAY_BASE (MMAP_DTMR0)
250 #define CFG_TMR_BASE (MMAP_DTMR1)
251 #define CFG_TMRPND_REG (((volatile int0_t *)(CFG_INTR_BASE))->iprh0)
252 #define CFG_TMRINTR_NO (INT0_HI_DTMR1)
253 #define CFG_TMRINTR_MASK (INTC_IPRH_INT33)
254 #define CFG_TMRINTR_PEND (CFG_TMRINTR_MASK)
255 #define CFG_TMRINTR_PRI (6)
256 #define CFG_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8)
260 #define CFG_UDELAY_BASE (MMAP_PIT0)
261 #define CFG_PIT_BASE (MMAP_PIT1)
262 #define CFG_PIT_PRESCALE (6)
265 #define CFG_INTR_BASE (MMAP_INTC0)
266 #define CFG_NUM_IRQS (128)
269 #define CFG_PCI_BAR0 (CFG_MBAR)
270 #define CFG_PCI_BAR5 (CFG_SDRAM_BASE)
271 #define CFG_PCI_TBATR0 (CFG_MBAR)
272 #define CFG_PCI_TBATR5 (CFG_SDRAM_BASE)
274 #endif /* CONFIG_M54455 */
277 #include <asm/immap_547x_8x.h>
278 #include <asm/m547x_8x.h>
280 #ifdef CONFIG_FSLDMAFEC
281 #define CFG_FEC0_IOBASE (MMAP_FEC0)
282 #define CFG_FEC1_IOBASE (MMAP_FEC1)
284 #define FEC0_RX_TASK 0
285 #define FEC0_TX_TASK 1
286 #define FEC0_RX_PRIORITY 6
287 #define FEC0_TX_PRIORITY 7
288 #define FEC0_RX_INIT 16
289 #define FEC0_TX_INIT 17
290 #define FEC1_RX_TASK 2
291 #define FEC1_TX_TASK 3
292 #define FEC1_RX_PRIORITY 6
293 #define FEC1_TX_PRIORITY 7
294 #define FEC1_RX_INIT 30
295 #define FEC1_TX_INIT 31
298 #define CFG_UART_BASE (MMAP_UART0 + (CFG_UART_PORT * 0x100))
301 #define CFG_UDELAY_BASE (MMAP_SLT1)
302 #define CFG_TMR_BASE (MMAP_SLT0)
303 #define CFG_TMRPND_REG (((volatile int0_t *)(CFG_INTR_BASE))->iprh0)
304 #define CFG_TMRINTR_NO (INT0_HI_SLT0)
305 #define CFG_TMRINTR_MASK (INTC_IPRH_INT54)
306 #define CFG_TMRINTR_PEND (CFG_TMRINTR_MASK)
307 #define CFG_TMRINTR_PRI (0x1E)
308 #define CFG_TIMER_PRESCALER (gd->bus_clk / 1000000)
311 #define CFG_INTR_BASE (MMAP_INTC0)
312 #define CFG_NUM_IRQS (128)
315 #define CFG_PCI_BAR0 (0x40000000)
316 #define CFG_PCI_BAR1 (CFG_SDRAM_BASE)
317 #define CFG_PCI_TBATR0 (CFG_MBAR)
318 #define CFG_PCI_TBATR1 (CFG_SDRAM_BASE)
320 #endif /* CONFIG_M547x */
323 #include <asm/immap_547x_8x.h>
324 #include <asm/m547x_8x.h>
326 #ifdef CONFIG_FSLDMAFEC
327 #define CFG_FEC0_IOBASE (MMAP_FEC0)
328 #define CFG_FEC1_IOBASE (MMAP_FEC1)
330 #define FEC0_RX_TASK 0
331 #define FEC0_TX_TASK 1
332 #define FEC0_RX_PRIORITY 6
333 #define FEC0_TX_PRIORITY 7
334 #define FEC0_RX_INIT 16
335 #define FEC0_TX_INIT 17
336 #define FEC1_RX_TASK 2
337 #define FEC1_TX_TASK 3
338 #define FEC1_RX_PRIORITY 6
339 #define FEC1_TX_PRIORITY 7
340 #define FEC1_RX_INIT 30
341 #define FEC1_TX_INIT 31
344 #define CFG_UART_BASE (MMAP_UART0 + (CFG_UART_PORT * 0x100))
348 #define CFG_UDELAY_BASE (MMAP_SLT1)
349 #define CFG_TMR_BASE (MMAP_SLT0)
350 #define CFG_TMRPND_REG (((volatile int0_t *)(CFG_INTR_BASE))->iprh0)
351 #define CFG_TMRINTR_NO (INT0_HI_SLT0)
352 #define CFG_TMRINTR_MASK (INTC_IPRH_INT54)
353 #define CFG_TMRINTR_PEND (CFG_TMRINTR_MASK)
354 #define CFG_TMRINTR_PRI (0x1E)
355 #define CFG_TIMER_PRESCALER (gd->bus_clk / 1000000)
358 #define CFG_INTR_BASE (MMAP_INTC0)
359 #define CFG_NUM_IRQS (128)
362 #define CFG_PCI_BAR0 (CFG_MBAR)
363 #define CFG_PCI_BAR1 (CFG_SDRAM_BASE)
364 #define CFG_PCI_TBATR0 (CFG_MBAR)
365 #define CFG_PCI_TBATR1 (CFG_SDRAM_BASE)
367 #endif /* CONFIG_M548x */
369 #endif /* __IMMAP_H */