blob: f0a76f43778914f233bcdb6f9a03df2d05136b13 [file] [log] [blame]
TsiChungLiew48dbfea2007-07-05 22:39:07 -05001/*
2 * ColdFire Internal Memory Map and Defines
3 *
Alison Wang45370e12012-10-18 19:25:51 +00004 * Copyright 2004-2012 Freescale Semiconductor, Inc.
TsiChungLiew48dbfea2007-07-05 22:39:07 -05005 * TsiChung Liew (Tsi-Chung.Liew@freescale.com)
6 *
Wolfgang Denk1a459662013-07-08 09:37:19 +02007 * SPDX-License-Identifier: GPL-2.0+
TsiChungLiew48dbfea2007-07-05 22:39:07 -05008 */
9
10#ifndef __IMMAP_H
11#define __IMMAP_H
Stefan Roesec883f6e2007-07-16 13:11:12 +020012
TsiChung Liewbf9a5212009-06-12 11:29:00 +000013#if defined(CONFIG_MCF520x)
14#include <asm/immap_520x.h>
15#include <asm/m520x.h>
16
17#define CONFIG_SYS_FEC0_IOBASE (MMAP_FEC0)
18#define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x4000))
19
20/* Timer */
21#ifdef CONFIG_MCFTMR
22#define CONFIG_SYS_UDELAY_BASE (MMAP_DTMR0)
23#define CONFIG_SYS_TMR_BASE (MMAP_DTMR1)
24#define CONFIG_SYS_TMRPND_REG (((volatile int0_t *)(CONFIG_SYS_INTR_BASE))->iprh0)
25#define CONFIG_SYS_TMRINTR_NO (INT0_HI_DTMR1)
26#define CONFIG_SYS_TMRINTR_MASK (INTC_IPRH_INT33)
27#define CONFIG_SYS_TMRINTR_PEND (CONFIG_SYS_TMRINTR_MASK)
28#define CONFIG_SYS_TMRINTR_PRI (6)
29#define CONFIG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8)
30#endif
31
32#ifdef CONFIG_MCFPIT
33#define CONFIG_SYS_UDELAY_BASE (MMAP_PIT0)
34#define CONFIG_SYS_PIT_BASE (MMAP_PIT1)
35#define CONFIG_SYS_PIT_PRESCALE (6)
36#endif
37
38#define CONFIG_SYS_INTR_BASE (MMAP_INTC0)
39#define CONFIG_SYS_NUM_IRQS (128)
40#endif /* CONFIG_M520x */
41
TsiChungLiew1552af72008-01-14 17:43:33 -060042#ifdef CONFIG_M52277
43#include <asm/immap_5227x.h>
44#include <asm/m5227x.h>
45
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +020046#define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x4000))
TsiChungLiew1552af72008-01-14 17:43:33 -060047
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +020048#define CONFIG_SYS_MCFRTC_BASE (MMAP_RTC)
TsiChungLiew1552af72008-01-14 17:43:33 -060049
50#ifdef CONFIG_LCD
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +020051#define CONFIG_SYS_LCD_BASE (MMAP_LCD)
TsiChungLiew1552af72008-01-14 17:43:33 -060052#endif
53
54/* Timer */
55#ifdef CONFIG_MCFTMR
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +020056#define CONFIG_SYS_UDELAY_BASE (MMAP_DTMR0)
57#define CONFIG_SYS_TMR_BASE (MMAP_DTMR1)
58#define CONFIG_SYS_TMRPND_REG (((volatile int0_t *)(CONFIG_SYS_INTR_BASE))->iprh0)
59#define CONFIG_SYS_TMRINTR_NO (INT0_HI_DTMR1)
60#define CONFIG_SYS_TMRINTR_MASK (INTC_IPRH_INT33)
61#define CONFIG_SYS_TMRINTR_PEND (CONFIG_SYS_TMRINTR_MASK)
62#define CONFIG_SYS_TMRINTR_PRI (6)
63#define CONFIG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8)
TsiChungLiew1552af72008-01-14 17:43:33 -060064#endif
65
66#ifdef CONFIG_MCFPIT
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +020067#define CONFIG_SYS_UDELAY_BASE (MMAP_PIT0)
68#define CONFIG_SYS_PIT_BASE (MMAP_PIT1)
69#define CONFIG_SYS_PIT_PRESCALE (6)
TsiChungLiew1552af72008-01-14 17:43:33 -060070#endif
71
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +020072#define CONFIG_SYS_INTR_BASE (MMAP_INTC0)
73#define CONFIG_SYS_NUM_IRQS (128)
TsiChungLiew1552af72008-01-14 17:43:33 -060074#endif /* CONFIG_M52277 */
75
TsiChungLiew4a442d32007-08-16 19:23:50 -050076#ifdef CONFIG_M5235
77#include <asm/immap_5235.h>
78#include <asm/m5235.h>
79
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +020080#define CONFIG_SYS_FEC0_IOBASE (MMAP_FEC)
81#define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x40))
TsiChungLiew4a442d32007-08-16 19:23:50 -050082
83/* Timer */
84#ifdef CONFIG_MCFTMR
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +020085#define CONFIG_SYS_UDELAY_BASE (MMAP_DTMR0)
86#define CONFIG_SYS_TMR_BASE (MMAP_DTMR3)
87#define CONFIG_SYS_TMRPND_REG (((volatile int0_t *)(CONFIG_SYS_INTR_BASE))->iprl0)
88#define CONFIG_SYS_TMRINTR_NO (INT0_LO_DTMR3)
89#define CONFIG_SYS_TMRINTR_MASK (INTC_IPRL_INT22)
90#define CONFIG_SYS_TMRINTR_PEND (CONFIG_SYS_TMRINTR_MASK)
91#define CONFIG_SYS_TMRINTR_PRI (0x1E) /* Level must include inorder to work */
92#define CONFIG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8)
TsiChungLiew4a442d32007-08-16 19:23:50 -050093#endif
94
95#ifdef CONFIG_MCFPIT
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +020096#define CONFIG_SYS_UDELAY_BASE (MMAP_PIT0)
97#define CONFIG_SYS_PIT_BASE (MMAP_PIT1)
98#define CONFIG_SYS_PIT_PRESCALE (6)
TsiChungLiew4a442d32007-08-16 19:23:50 -050099#endif
100
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200101#define CONFIG_SYS_INTR_BASE (MMAP_INTC0)
102#define CONFIG_SYS_NUM_IRQS (128)
TsiChungLiew4a442d32007-08-16 19:23:50 -0500103#endif /* CONFIG_M5235 */
104
TsiChungLiew56115662007-08-15 19:38:15 -0500105#ifdef CONFIG_M5249
106#include <asm/immap_5249.h>
107#include <asm/m5249.h>
108
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200109#define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x40))
TsiChungLiew56115662007-08-15 19:38:15 -0500110
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200111#define CONFIG_SYS_INTR_BASE (MMAP_INTC)
112#define CONFIG_SYS_NUM_IRQS (64)
TsiChungLiew56115662007-08-15 19:38:15 -0500113
114/* Timer */
115#ifdef CONFIG_MCFTMR
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200116#define CONFIG_SYS_UDELAY_BASE (MMAP_DTMR0)
117#define CONFIG_SYS_TMR_BASE (MMAP_DTMR1)
118#define CONFIG_SYS_TMRPND_REG (mbar_readLong(MCFSIM_IPR))
119#define CONFIG_SYS_TMRINTR_NO (31)
120#define CONFIG_SYS_TMRINTR_MASK (0x00000400)
121#define CONFIG_SYS_TMRINTR_PEND (CONFIG_SYS_TMRINTR_MASK)
122#define CONFIG_SYS_TMRINTR_PRI (MCFSIM_ICR_AUTOVEC | MCFSIM_ICR_LEVEL7 | MCFSIM_ICR_PRI3)
123#define CONFIG_SYS_TIMER_PRESCALER (((gd->bus_clk / 2000000) - 1) << 8)
TsiChungLiew56115662007-08-15 19:38:15 -0500124#endif
125#endif /* CONFIG_M5249 */
126
TsiChungLiewa1436a82007-08-16 13:20:50 -0500127#ifdef CONFIG_M5253
128#include <asm/immap_5253.h>
129#include <asm/m5249.h>
130#include <asm/m5253.h>
131
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200132#define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x40))
TsiChungLiewa1436a82007-08-16 13:20:50 -0500133
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200134#define CONFIG_SYS_INTR_BASE (MMAP_INTC)
135#define CONFIG_SYS_NUM_IRQS (64)
TsiChungLiewa1436a82007-08-16 13:20:50 -0500136
137/* Timer */
138#ifdef CONFIG_MCFTMR
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200139#define CONFIG_SYS_UDELAY_BASE (MMAP_DTMR0)
140#define CONFIG_SYS_TMR_BASE (MMAP_DTMR1)
141#define CONFIG_SYS_TMRPND_REG (mbar_readLong(MCFSIM_IPR))
142#define CONFIG_SYS_TMRINTR_NO (27)
143#define CONFIG_SYS_TMRINTR_MASK (0x00000400)
144#define CONFIG_SYS_TMRINTR_PEND (CONFIG_SYS_TMRINTR_MASK)
145#define CONFIG_SYS_TMRINTR_PRI (MCFSIM_ICR_AUTOVEC | MCFSIM_ICR_LEVEL3 | MCFSIM_ICR_PRI3)
146#define CONFIG_SYS_TIMER_PRESCALER (((gd->bus_clk / 2000000) - 1) << 8)
TsiChungLiewa1436a82007-08-16 13:20:50 -0500147#endif
148#endif /* CONFIG_M5253 */
149
TsiChungLiew56115662007-08-15 19:38:15 -0500150#ifdef CONFIG_M5271
151#include <asm/immap_5271.h>
152#include <asm/m5271.h>
153
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200154#define CONFIG_SYS_FEC0_IOBASE (MMAP_FEC)
155#define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x40))
TsiChungLiew56115662007-08-15 19:38:15 -0500156
157/* Timer */
158#ifdef CONFIG_MCFTMR
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200159#define CONFIG_SYS_UDELAY_BASE (MMAP_DTMR0)
160#define CONFIG_SYS_TMR_BASE (MMAP_DTMR3)
161#define CONFIG_SYS_TMRPND_REG (((volatile int0_t *)(CONFIG_SYS_INTR_BASE))->iprl0)
162#define CONFIG_SYS_TMRINTR_NO (INT0_LO_DTMR3)
163#define CONFIG_SYS_TMRINTR_MASK (INTC_IPRL_INT22)
164#define CONFIG_SYS_TMRINTR_PEND (CONFIG_SYS_TMRINTR_MASK)
Richard Retanubun59272622009-03-26 15:26:01 -0400165#define CONFIG_SYS_TMRINTR_PRI (0x1E) /* Interrupt level 3, priority 6 */
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200166#define CONFIG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8)
TsiChungLiew56115662007-08-15 19:38:15 -0500167#endif
168
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200169#define CONFIG_SYS_INTR_BASE (MMAP_INTC0)
170#define CONFIG_SYS_NUM_IRQS (128)
TsiChungLiew56115662007-08-15 19:38:15 -0500171#endif /* CONFIG_M5271 */
172
173#ifdef CONFIG_M5272
174#include <asm/immap_5272.h>
175#include <asm/m5272.h>
176
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200177#define CONFIG_SYS_FEC0_IOBASE (MMAP_FEC)
178#define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x40))
TsiChungLiew56115662007-08-15 19:38:15 -0500179
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200180#define CONFIG_SYS_INTR_BASE (MMAP_INTC)
181#define CONFIG_SYS_NUM_IRQS (64)
TsiChungLiew56115662007-08-15 19:38:15 -0500182
183/* Timer */
184#ifdef CONFIG_MCFTMR
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200185#define CONFIG_SYS_UDELAY_BASE (MMAP_TMR0)
186#define CONFIG_SYS_TMR_BASE (MMAP_TMR3)
187#define CONFIG_SYS_TMRPND_REG (((volatile intctrl_t *)(CONFIG_SYS_INTR_BASE))->int_isr)
188#define CONFIG_SYS_TMRINTR_NO (INT_TMR3)
189#define CONFIG_SYS_TMRINTR_MASK (INT_ISR_INT24)
190#define CONFIG_SYS_TMRINTR_PEND (0)
191#define CONFIG_SYS_TMRINTR_PRI (INT_ICR1_TMR3PI | INT_ICR1_TMR3IPL(5))
192#define CONFIG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8)
TsiChungLiew56115662007-08-15 19:38:15 -0500193#endif
194#endif /* CONFIG_M5272 */
195
Matthew Fettkef71d9d92008-02-04 15:38:20 -0600196#ifdef CONFIG_M5275
197#include <asm/immap_5275.h>
198#include <asm/m5275.h>
199
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200200#define CONFIG_SYS_FEC0_IOBASE (MMAP_FEC0)
201#define CONFIG_SYS_FEC1_IOBASE (MMAP_FEC1)
202#define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x40))
Matthew Fettkef71d9d92008-02-04 15:38:20 -0600203
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200204#define CONFIG_SYS_INTR_BASE (MMAP_INTC0)
205#define CONFIG_SYS_NUM_IRQS (192)
Matthew Fettkef71d9d92008-02-04 15:38:20 -0600206
207/* Timer */
208#ifdef CONFIG_MCFTMR
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200209#define CONFIG_SYS_UDELAY_BASE (MMAP_DTMR0)
210#define CONFIG_SYS_TMR_BASE (MMAP_DTMR3)
211#define CONFIG_SYS_TMRPND_REG (((volatile int0_t *)(CONFIG_SYS_INTR_BASE))->iprl0)
212#define CONFIG_SYS_TMRINTR_NO (INT0_LO_DTMR3)
213#define CONFIG_SYS_TMRINTR_MASK (INTC_IPRL_INT22)
214#define CONFIG_SYS_TMRINTR_PEND (CONFIG_SYS_TMRINTR_MASK)
215#define CONFIG_SYS_TMRINTR_PRI (0x1E)
216#define CONFIG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8)
Matthew Fettkef71d9d92008-02-04 15:38:20 -0600217#endif
218#endif /* CONFIG_M5275 */
219
TsiChungLiew56115662007-08-15 19:38:15 -0500220#ifdef CONFIG_M5282
221#include <asm/immap_5282.h>
222#include <asm/m5282.h>
223
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200224#define CONFIG_SYS_FEC0_IOBASE (MMAP_FEC)
225#define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x40))
TsiChungLiew56115662007-08-15 19:38:15 -0500226
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200227#define CONFIG_SYS_INTR_BASE (MMAP_INTC0)
228#define CONFIG_SYS_NUM_IRQS (128)
TsiChungLiew56115662007-08-15 19:38:15 -0500229
230/* Timer */
231#ifdef CONFIG_MCFTMR
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200232#define CONFIG_SYS_UDELAY_BASE (MMAP_DTMR0)
233#define CONFIG_SYS_TMR_BASE (MMAP_DTMR3)
234#define CONFIG_SYS_TMRPND_REG (((volatile int0_t *)(CONFIG_SYS_INTR_BASE))->iprl0)
235#define CONFIG_SYS_TMRINTR_NO (INT0_LO_DTMR3)
236#define CONFIG_SYS_TMRINTR_MASK (1 << INT0_LO_DTMR3)
237#define CONFIG_SYS_TMRINTR_PEND (CONFIG_SYS_TMRINTR_MASK)
238#define CONFIG_SYS_TMRINTR_PRI (0x1E) /* Level must include inorder to work */
239#define CONFIG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8)
TsiChungLiew56115662007-08-15 19:38:15 -0500240#endif
241#endif /* CONFIG_M5282 */
242
TsiChung Liew536e7da2008-10-22 11:38:21 +0000243#if defined(CONFIG_MCF5301x)
244#include <asm/immap_5301x.h>
245#include <asm/m5301x.h>
246
247#define CONFIG_SYS_FEC0_IOBASE (MMAP_FEC0)
248#define CONFIG_SYS_FEC1_IOBASE (MMAP_FEC1)
249#define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x4000))
250
251#define CONFIG_SYS_MCFRTC_BASE (MMAP_RTC)
252
253/* Timer */
254#ifdef CONFIG_MCFTMR
255#define CONFIG_SYS_UDELAY_BASE (MMAP_DTMR0)
256#define CONFIG_SYS_TMR_BASE (MMAP_DTMR1)
257#define CONFIG_SYS_TMRPND_REG (((volatile int0_t *)(CONFIG_SYS_INTR_BASE))->iprh0)
258#define CONFIG_SYS_TMRINTR_NO (INT0_HI_DTMR1)
259#define CONFIG_SYS_TMRINTR_MASK (INTC_IPRH_INT33)
260#define CONFIG_SYS_TMRINTR_PEND (CONFIG_SYS_TMRINTR_MASK)
261#define CONFIG_SYS_TMRINTR_PRI (6)
262#define CONFIG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8)
263#endif
264
265#ifdef CONFIG_MCFPIT
266#define CONFIG_SYS_UDELAY_BASE (MMAP_PIT0)
267#define CONFIG_SYS_PIT_BASE (MMAP_PIT1)
268#define CONFIG_SYS_PIT_PRESCALE (6)
269#endif
270
271#define CONFIG_SYS_INTR_BASE (MMAP_INTC0)
272#define CONFIG_SYS_NUM_IRQS (128)
273#endif /* CONFIG_M5301x */
274
TsiChungLiewaa5f1f92008-01-14 17:23:08 -0600275#if defined(CONFIG_M5329) || defined(CONFIG_M5373)
TsiChungLiew48dbfea2007-07-05 22:39:07 -0500276#include <asm/immap_5329.h>
277#include <asm/m5329.h>
278
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200279#define CONFIG_SYS_FEC0_IOBASE (MMAP_FEC)
280#define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x4000))
281#define CONFIG_SYS_MCFRTC_BASE (MMAP_RTC)
TsiChungLiew48dbfea2007-07-05 22:39:07 -0500282
283/* Timer */
284#ifdef CONFIG_MCFTMR
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200285#define CONFIG_SYS_UDELAY_BASE (MMAP_DTMR0)
286#define CONFIG_SYS_TMR_BASE (MMAP_DTMR1)
287#define CONFIG_SYS_TMRPND_REG (((volatile int0_t *)(CONFIG_SYS_INTR_BASE))->iprh0)
288#define CONFIG_SYS_TMRINTR_NO (INT0_HI_DTMR1)
289#define CONFIG_SYS_TMRINTR_MASK (INTC_IPRH_INT33)
290#define CONFIG_SYS_TMRINTR_PEND (CONFIG_SYS_TMRINTR_MASK)
291#define CONFIG_SYS_TMRINTR_PRI (6)
292#define CONFIG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8)
TsiChungLiew48dbfea2007-07-05 22:39:07 -0500293#endif
294
295#ifdef CONFIG_MCFPIT
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200296#define CONFIG_SYS_UDELAY_BASE (MMAP_PIT0)
297#define CONFIG_SYS_PIT_BASE (MMAP_PIT1)
298#define CONFIG_SYS_PIT_PRESCALE (6)
TsiChungLiew48dbfea2007-07-05 22:39:07 -0500299#endif
300
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200301#define CONFIG_SYS_INTR_BASE (MMAP_INTC0)
302#define CONFIG_SYS_NUM_IRQS (128)
TsiChungLiewaa5f1f92008-01-14 17:23:08 -0600303#endif /* CONFIG_M5329 && CONFIG_M5373 */
Stefan Roesec883f6e2007-07-16 13:11:12 +0200304
Alison Wang45370e12012-10-18 19:25:51 +0000305#if defined(CONFIG_M54418)
306#include <asm/immap_5441x.h>
307#include <asm/m5441x.h>
308
309#define CONFIG_SYS_FEC0_IOBASE (MMAP_FEC0)
310#define CONFIG_SYS_FEC1_IOBASE (MMAP_FEC1)
311
312#if (CONFIG_SYS_UART_PORT < 4)
313#define CONFIG_SYS_UART_BASE (MMAP_UART0 + \
314 (CONFIG_SYS_UART_PORT * 0x4000))
315#else
316#define CONFIG_SYS_UART_BASE (MMAP_UART4 + \
317 ((CONFIG_SYS_UART_PORT - 4) * 0x4000))
318#endif
319
320#define MMAP_DSPI MMAP_DSPI0
321#define CONFIG_SYS_MCFRTC_BASE (MMAP_RTC)
322
323/* Timer */
324#ifdef CONFIG_MCFTMR
325#define CONFIG_SYS_UDELAY_BASE (MMAP_DTMR0)
326#define CONFIG_SYS_TMR_BASE (MMAP_DTMR1)
327#define CONFIG_SYS_TMRPND_REG (((int0_t *)(CONFIG_SYS_INTR_BASE))->iprh0)
328#define CONFIG_SYS_TMRINTR_NO (INT0_HI_DTMR1)
329#define CONFIG_SYS_TMRINTR_MASK (INTC_IPRH_INT33)
330#define CONFIG_SYS_TMRINTR_PEND (CONFIG_SYS_TMRINTR_MASK)
331#define CONFIG_SYS_TMRINTR_PRI (6)
332#define CONFIG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8)
333#endif
334
335#ifdef CONFIG_MCFPIT
336#define CONFIG_SYS_UDELAY_BASE (MMAP_PIT0)
337#define CONFIG_SYS_PIT_BASE (MMAP_PIT1)
338#define CONFIG_SYS_PIT_PRESCALE (6)
339#endif
340
341#define CONFIG_SYS_INTR_BASE (MMAP_INTC0)
342#define CONFIG_SYS_NUM_IRQS (128)
343
344#endif /* CONFIG_M54418 */
345
TsiChung Liew05316f82008-08-11 13:41:49 +0000346#if defined(CONFIG_M54451) || defined(CONFIG_M54455)
TsiChungLiew8ae158c2007-08-16 15:05:11 -0500347#include <asm/immap_5445x.h>
348#include <asm/m5445x.h>
349
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200350#define CONFIG_SYS_FEC0_IOBASE (MMAP_FEC0)
TsiChung Liew05316f82008-08-11 13:41:49 +0000351#if defined(CONFIG_M54455EVB)
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200352#define CONFIG_SYS_FEC1_IOBASE (MMAP_FEC1)
TsiChung Liew05316f82008-08-11 13:41:49 +0000353#endif
TsiChungLiew8ae158c2007-08-16 15:05:11 -0500354
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200355#define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x4000))
TsiChungLiew8ae158c2007-08-16 15:05:11 -0500356
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200357#define CONFIG_SYS_MCFRTC_BASE (MMAP_RTC)
TsiChungLiew8ae158c2007-08-16 15:05:11 -0500358
359/* Timer */
360#ifdef CONFIG_MCFTMR
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200361#define CONFIG_SYS_UDELAY_BASE (MMAP_DTMR0)
362#define CONFIG_SYS_TMR_BASE (MMAP_DTMR1)
363#define CONFIG_SYS_TMRPND_REG (((volatile int0_t *)(CONFIG_SYS_INTR_BASE))->iprh0)
364#define CONFIG_SYS_TMRINTR_NO (INT0_HI_DTMR1)
365#define CONFIG_SYS_TMRINTR_MASK (INTC_IPRH_INT33)
366#define CONFIG_SYS_TMRINTR_PEND (CONFIG_SYS_TMRINTR_MASK)
367#define CONFIG_SYS_TMRINTR_PRI (6)
368#define CONFIG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8)
TsiChungLiew8ae158c2007-08-16 15:05:11 -0500369#endif
370
371#ifdef CONFIG_MCFPIT
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200372#define CONFIG_SYS_UDELAY_BASE (MMAP_PIT0)
373#define CONFIG_SYS_PIT_BASE (MMAP_PIT1)
374#define CONFIG_SYS_PIT_PRESCALE (6)
TsiChungLiew8ae158c2007-08-16 15:05:11 -0500375#endif
376
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200377#define CONFIG_SYS_INTR_BASE (MMAP_INTC0)
378#define CONFIG_SYS_NUM_IRQS (128)
TsiChungLiew8ae158c2007-08-16 15:05:11 -0500379
380#ifdef CONFIG_PCI
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200381#define CONFIG_SYS_PCI_BAR0 (CONFIG_SYS_MBAR)
382#define CONFIG_SYS_PCI_BAR5 (CONFIG_SYS_SDRAM_BASE)
383#define CONFIG_SYS_PCI_TBATR0 (CONFIG_SYS_MBAR)
384#define CONFIG_SYS_PCI_TBATR5 (CONFIG_SYS_SDRAM_BASE)
TsiChungLiew8ae158c2007-08-16 15:05:11 -0500385#endif
TsiChung Liew05316f82008-08-11 13:41:49 +0000386#endif /* CONFIG_M54451 || CONFIG_M54455 */
TsiChungLiew8ae158c2007-08-16 15:05:11 -0500387
TsiChungLiew4621fc32008-01-15 13:39:44 -0600388#ifdef CONFIG_M547x
389#include <asm/immap_547x_8x.h>
390#include <asm/m547x_8x.h>
391
392#ifdef CONFIG_FSLDMAFEC
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200393#define CONFIG_SYS_FEC0_IOBASE (MMAP_FEC0)
394#define CONFIG_SYS_FEC1_IOBASE (MMAP_FEC1)
TsiChungLiew4621fc32008-01-15 13:39:44 -0600395
396#define FEC0_RX_TASK 0
397#define FEC0_TX_TASK 1
398#define FEC0_RX_PRIORITY 6
399#define FEC0_TX_PRIORITY 7
400#define FEC0_RX_INIT 16
401#define FEC0_TX_INIT 17
402#define FEC1_RX_TASK 2
403#define FEC1_TX_TASK 3
404#define FEC1_RX_PRIORITY 6
405#define FEC1_TX_PRIORITY 7
406#define FEC1_RX_INIT 30
407#define FEC1_TX_INIT 31
408#endif
409
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200410#define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x100))
TsiChungLiew4621fc32008-01-15 13:39:44 -0600411
412#ifdef CONFIG_SLTTMR
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200413#define CONFIG_SYS_UDELAY_BASE (MMAP_SLT1)
414#define CONFIG_SYS_TMR_BASE (MMAP_SLT0)
415#define CONFIG_SYS_TMRPND_REG (((volatile int0_t *)(CONFIG_SYS_INTR_BASE))->iprh0)
416#define CONFIG_SYS_TMRINTR_NO (INT0_HI_SLT0)
417#define CONFIG_SYS_TMRINTR_MASK (INTC_IPRH_INT54)
418#define CONFIG_SYS_TMRINTR_PEND (CONFIG_SYS_TMRINTR_MASK)
419#define CONFIG_SYS_TMRINTR_PRI (0x1E)
420#define CONFIG_SYS_TIMER_PRESCALER (gd->bus_clk / 1000000)
TsiChungLiew4621fc32008-01-15 13:39:44 -0600421#endif
422
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200423#define CONFIG_SYS_INTR_BASE (MMAP_INTC0)
424#define CONFIG_SYS_NUM_IRQS (128)
TsiChungLiew4621fc32008-01-15 13:39:44 -0600425
426#ifdef CONFIG_PCI
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200427#define CONFIG_SYS_PCI_BAR0 (0x40000000)
428#define CONFIG_SYS_PCI_BAR1 (CONFIG_SYS_SDRAM_BASE)
429#define CONFIG_SYS_PCI_TBATR0 (CONFIG_SYS_MBAR)
430#define CONFIG_SYS_PCI_TBATR1 (CONFIG_SYS_SDRAM_BASE)
TsiChungLiew4621fc32008-01-15 13:39:44 -0600431#endif
432#endif /* CONFIG_M547x */
433
434#ifdef CONFIG_M548x
435#include <asm/immap_547x_8x.h>
436#include <asm/m547x_8x.h>
437
438#ifdef CONFIG_FSLDMAFEC
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200439#define CONFIG_SYS_FEC0_IOBASE (MMAP_FEC0)
440#define CONFIG_SYS_FEC1_IOBASE (MMAP_FEC1)
TsiChungLiew4621fc32008-01-15 13:39:44 -0600441
442#define FEC0_RX_TASK 0
443#define FEC0_TX_TASK 1
444#define FEC0_RX_PRIORITY 6
445#define FEC0_TX_PRIORITY 7
446#define FEC0_RX_INIT 16
447#define FEC0_TX_INIT 17
448#define FEC1_RX_TASK 2
449#define FEC1_TX_TASK 3
450#define FEC1_RX_PRIORITY 6
451#define FEC1_TX_PRIORITY 7
452#define FEC1_RX_INIT 30
453#define FEC1_TX_INIT 31
454#endif
455
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200456#define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x100))
TsiChungLiew4621fc32008-01-15 13:39:44 -0600457
458/* Timer */
459#ifdef CONFIG_SLTTMR
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200460#define CONFIG_SYS_UDELAY_BASE (MMAP_SLT1)
461#define CONFIG_SYS_TMR_BASE (MMAP_SLT0)
462#define CONFIG_SYS_TMRPND_REG (((volatile int0_t *)(CONFIG_SYS_INTR_BASE))->iprh0)
463#define CONFIG_SYS_TMRINTR_NO (INT0_HI_SLT0)
464#define CONFIG_SYS_TMRINTR_MASK (INTC_IPRH_INT54)
465#define CONFIG_SYS_TMRINTR_PEND (CONFIG_SYS_TMRINTR_MASK)
466#define CONFIG_SYS_TMRINTR_PRI (0x1E)
467#define CONFIG_SYS_TIMER_PRESCALER (gd->bus_clk / 1000000)
TsiChungLiew4621fc32008-01-15 13:39:44 -0600468#endif
469
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200470#define CONFIG_SYS_INTR_BASE (MMAP_INTC0)
471#define CONFIG_SYS_NUM_IRQS (128)
TsiChungLiew4621fc32008-01-15 13:39:44 -0600472
473#ifdef CONFIG_PCI
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200474#define CONFIG_SYS_PCI_BAR0 (CONFIG_SYS_MBAR)
475#define CONFIG_SYS_PCI_BAR1 (CONFIG_SYS_SDRAM_BASE)
476#define CONFIG_SYS_PCI_TBATR0 (CONFIG_SYS_MBAR)
477#define CONFIG_SYS_PCI_TBATR1 (CONFIG_SYS_SDRAM_BASE)
TsiChungLiew4621fc32008-01-15 13:39:44 -0600478#endif
479#endif /* CONFIG_M548x */
480
TsiChungLiew48dbfea2007-07-05 22:39:07 -0500481#endif /* __IMMAP_H */