blob: 93f730f6d4abb1a79650bb947fc66bd240f5ec3b [file] [log] [blame]
TsiChungLiew2e0aeef2007-07-05 22:39:07 -05001/*
2 * ColdFire Internal Memory Map and Defines
3 *
4 * Copyright (C) 2004-2007 Freescale Semiconductor, Inc.
5 * TsiChung Liew (Tsi-Chung.Liew@freescale.com)
6 *
7 * See file CREDITS for list of people who contributed to this
8 * project.
9 *
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.
14 *
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.
19 *
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,
23 * MA 02111-1307 USA
24 */
25
26#ifndef __IMMAP_H
27#define __IMMAP_H
Stefan Roesef1110122007-07-16 13:11:12 +020028
TsiChungLiew99b037a2008-01-14 17:43:33 -060029#ifdef CONFIG_M52277
30#include <asm/immap_5227x.h>
31#include <asm/m5227x.h>
32
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +020033#define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x4000))
TsiChungLiew99b037a2008-01-14 17:43:33 -060034
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +020035#define CONFIG_SYS_MCFRTC_BASE (MMAP_RTC)
TsiChungLiew99b037a2008-01-14 17:43:33 -060036
37#ifdef CONFIG_LCD
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +020038#define CONFIG_SYS_LCD_BASE (MMAP_LCD)
TsiChungLiew99b037a2008-01-14 17:43:33 -060039#endif
40
41/* Timer */
42#ifdef CONFIG_MCFTMR
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +020043#define CONFIG_SYS_UDELAY_BASE (MMAP_DTMR0)
44#define CONFIG_SYS_TMR_BASE (MMAP_DTMR1)
45#define CONFIG_SYS_TMRPND_REG (((volatile int0_t *)(CONFIG_SYS_INTR_BASE))->iprh0)
46#define CONFIG_SYS_TMRINTR_NO (INT0_HI_DTMR1)
47#define CONFIG_SYS_TMRINTR_MASK (INTC_IPRH_INT33)
48#define CONFIG_SYS_TMRINTR_PEND (CONFIG_SYS_TMRINTR_MASK)
49#define CONFIG_SYS_TMRINTR_PRI (6)
50#define CONFIG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8)
TsiChungLiew99b037a2008-01-14 17:43:33 -060051#endif
52
53#ifdef CONFIG_MCFPIT
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +020054#define CONFIG_SYS_UDELAY_BASE (MMAP_PIT0)
55#define CONFIG_SYS_PIT_BASE (MMAP_PIT1)
56#define CONFIG_SYS_PIT_PRESCALE (6)
TsiChungLiew99b037a2008-01-14 17:43:33 -060057#endif
58
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +020059#define CONFIG_SYS_INTR_BASE (MMAP_INTC0)
60#define CONFIG_SYS_NUM_IRQS (128)
TsiChungLiew99b037a2008-01-14 17:43:33 -060061#endif /* CONFIG_M52277 */
62
TsiChungLiewb859ef12007-08-16 19:23:50 -050063#ifdef CONFIG_M5235
64#include <asm/immap_5235.h>
65#include <asm/m5235.h>
66
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +020067#define CONFIG_SYS_FEC0_IOBASE (MMAP_FEC)
68#define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x40))
TsiChungLiewb859ef12007-08-16 19:23:50 -050069
70/* Timer */
71#ifdef CONFIG_MCFTMR
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +020072#define CONFIG_SYS_UDELAY_BASE (MMAP_DTMR0)
73#define CONFIG_SYS_TMR_BASE (MMAP_DTMR3)
74#define CONFIG_SYS_TMRPND_REG (((volatile int0_t *)(CONFIG_SYS_INTR_BASE))->iprl0)
75#define CONFIG_SYS_TMRINTR_NO (INT0_LO_DTMR3)
76#define CONFIG_SYS_TMRINTR_MASK (INTC_IPRL_INT22)
77#define CONFIG_SYS_TMRINTR_PEND (CONFIG_SYS_TMRINTR_MASK)
78#define CONFIG_SYS_TMRINTR_PRI (0x1E) /* Level must include inorder to work */
79#define CONFIG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8)
TsiChungLiewb859ef12007-08-16 19:23:50 -050080#endif
81
82#ifdef CONFIG_MCFPIT
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +020083#define CONFIG_SYS_UDELAY_BASE (MMAP_PIT0)
84#define CONFIG_SYS_PIT_BASE (MMAP_PIT1)
85#define CONFIG_SYS_PIT_PRESCALE (6)
TsiChungLiewb859ef12007-08-16 19:23:50 -050086#endif
87
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +020088#define CONFIG_SYS_INTR_BASE (MMAP_INTC0)
89#define CONFIG_SYS_NUM_IRQS (128)
TsiChungLiewb859ef12007-08-16 19:23:50 -050090#endif /* CONFIG_M5235 */
91
TsiChungLiew0e81abc2007-08-15 19:38:15 -050092#ifdef CONFIG_M5249
93#include <asm/immap_5249.h>
94#include <asm/m5249.h>
95
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +020096#define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x40))
TsiChungLiew0e81abc2007-08-15 19:38:15 -050097
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +020098#define CONFIG_SYS_INTR_BASE (MMAP_INTC)
99#define CONFIG_SYS_NUM_IRQS (64)
TsiChungLiew0e81abc2007-08-15 19:38:15 -0500100
101/* Timer */
102#ifdef CONFIG_MCFTMR
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200103#define CONFIG_SYS_UDELAY_BASE (MMAP_DTMR0)
104#define CONFIG_SYS_TMR_BASE (MMAP_DTMR1)
105#define CONFIG_SYS_TMRPND_REG (mbar_readLong(MCFSIM_IPR))
106#define CONFIG_SYS_TMRINTR_NO (31)
107#define CONFIG_SYS_TMRINTR_MASK (0x00000400)
108#define CONFIG_SYS_TMRINTR_PEND (CONFIG_SYS_TMRINTR_MASK)
109#define CONFIG_SYS_TMRINTR_PRI (MCFSIM_ICR_AUTOVEC | MCFSIM_ICR_LEVEL7 | MCFSIM_ICR_PRI3)
110#define CONFIG_SYS_TIMER_PRESCALER (((gd->bus_clk / 2000000) - 1) << 8)
TsiChungLiew0e81abc2007-08-15 19:38:15 -0500111#endif
112#endif /* CONFIG_M5249 */
113
TsiChungLiew34674692007-08-16 13:20:50 -0500114#ifdef CONFIG_M5253
115#include <asm/immap_5253.h>
116#include <asm/m5249.h>
117#include <asm/m5253.h>
118
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200119#define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x40))
TsiChungLiew34674692007-08-16 13:20:50 -0500120
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200121#define CONFIG_SYS_INTR_BASE (MMAP_INTC)
122#define CONFIG_SYS_NUM_IRQS (64)
TsiChungLiew34674692007-08-16 13:20:50 -0500123
124/* Timer */
125#ifdef CONFIG_MCFTMR
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200126#define CONFIG_SYS_UDELAY_BASE (MMAP_DTMR0)
127#define CONFIG_SYS_TMR_BASE (MMAP_DTMR1)
128#define CONFIG_SYS_TMRPND_REG (mbar_readLong(MCFSIM_IPR))
129#define CONFIG_SYS_TMRINTR_NO (27)
130#define CONFIG_SYS_TMRINTR_MASK (0x00000400)
131#define CONFIG_SYS_TMRINTR_PEND (CONFIG_SYS_TMRINTR_MASK)
132#define CONFIG_SYS_TMRINTR_PRI (MCFSIM_ICR_AUTOVEC | MCFSIM_ICR_LEVEL3 | MCFSIM_ICR_PRI3)
133#define CONFIG_SYS_TIMER_PRESCALER (((gd->bus_clk / 2000000) - 1) << 8)
TsiChungLiew34674692007-08-16 13:20:50 -0500134#endif
135#endif /* CONFIG_M5253 */
136
TsiChungLiew0e81abc2007-08-15 19:38:15 -0500137#ifdef CONFIG_M5271
138#include <asm/immap_5271.h>
139#include <asm/m5271.h>
140
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200141#define CONFIG_SYS_FEC0_IOBASE (MMAP_FEC)
142#define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x40))
TsiChungLiew0e81abc2007-08-15 19:38:15 -0500143
144/* Timer */
145#ifdef CONFIG_MCFTMR
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200146#define CONFIG_SYS_UDELAY_BASE (MMAP_DTMR0)
147#define CONFIG_SYS_TMR_BASE (MMAP_DTMR3)
148#define CONFIG_SYS_TMRPND_REG (((volatile int0_t *)(CONFIG_SYS_INTR_BASE))->iprl0)
149#define CONFIG_SYS_TMRINTR_NO (INT0_LO_DTMR3)
150#define CONFIG_SYS_TMRINTR_MASK (INTC_IPRL_INT22)
151#define CONFIG_SYS_TMRINTR_PEND (CONFIG_SYS_TMRINTR_MASK)
152#define CONFIG_SYS_TMRINTR_PRI (0) /* Level must include inorder to work */
153#define CONFIG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8)
TsiChungLiew0e81abc2007-08-15 19:38:15 -0500154#endif
155
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200156#define CONFIG_SYS_INTR_BASE (MMAP_INTC0)
157#define CONFIG_SYS_NUM_IRQS (128)
TsiChungLiew0e81abc2007-08-15 19:38:15 -0500158#endif /* CONFIG_M5271 */
159
160#ifdef CONFIG_M5272
161#include <asm/immap_5272.h>
162#include <asm/m5272.h>
163
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200164#define CONFIG_SYS_FEC0_IOBASE (MMAP_FEC)
165#define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x40))
TsiChungLiew0e81abc2007-08-15 19:38:15 -0500166
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200167#define CONFIG_SYS_INTR_BASE (MMAP_INTC)
168#define CONFIG_SYS_NUM_IRQS (64)
TsiChungLiew0e81abc2007-08-15 19:38:15 -0500169
170/* Timer */
171#ifdef CONFIG_MCFTMR
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200172#define CONFIG_SYS_UDELAY_BASE (MMAP_TMR0)
173#define CONFIG_SYS_TMR_BASE (MMAP_TMR3)
174#define CONFIG_SYS_TMRPND_REG (((volatile intctrl_t *)(CONFIG_SYS_INTR_BASE))->int_isr)
175#define CONFIG_SYS_TMRINTR_NO (INT_TMR3)
176#define CONFIG_SYS_TMRINTR_MASK (INT_ISR_INT24)
177#define CONFIG_SYS_TMRINTR_PEND (0)
178#define CONFIG_SYS_TMRINTR_PRI (INT_ICR1_TMR3PI | INT_ICR1_TMR3IPL(5))
179#define CONFIG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8)
TsiChungLiew0e81abc2007-08-15 19:38:15 -0500180#endif
181#endif /* CONFIG_M5272 */
182
Matthew Fettke761e2e92008-02-04 15:38:20 -0600183#ifdef CONFIG_M5275
184#include <asm/immap_5275.h>
185#include <asm/m5275.h>
186
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200187#define CONFIG_SYS_FEC0_IOBASE (MMAP_FEC0)
188#define CONFIG_SYS_FEC1_IOBASE (MMAP_FEC1)
189#define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x40))
Matthew Fettke761e2e92008-02-04 15:38:20 -0600190
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200191#define CONFIG_SYS_INTR_BASE (MMAP_INTC0)
192#define CONFIG_SYS_NUM_IRQS (192)
Matthew Fettke761e2e92008-02-04 15:38:20 -0600193
194/* Timer */
195#ifdef CONFIG_MCFTMR
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200196#define CONFIG_SYS_UDELAY_BASE (MMAP_DTMR0)
197#define CONFIG_SYS_TMR_BASE (MMAP_DTMR3)
198#define CONFIG_SYS_TMRPND_REG (((volatile int0_t *)(CONFIG_SYS_INTR_BASE))->iprl0)
199#define CONFIG_SYS_TMRINTR_NO (INT0_LO_DTMR3)
200#define CONFIG_SYS_TMRINTR_MASK (INTC_IPRL_INT22)
201#define CONFIG_SYS_TMRINTR_PEND (CONFIG_SYS_TMRINTR_MASK)
202#define CONFIG_SYS_TMRINTR_PRI (0x1E)
203#define CONFIG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8)
Matthew Fettke761e2e92008-02-04 15:38:20 -0600204#endif
205#endif /* CONFIG_M5275 */
206
TsiChungLiew0e81abc2007-08-15 19:38:15 -0500207#ifdef CONFIG_M5282
208#include <asm/immap_5282.h>
209#include <asm/m5282.h>
210
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200211#define CONFIG_SYS_FEC0_IOBASE (MMAP_FEC)
212#define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x40))
TsiChungLiew0e81abc2007-08-15 19:38:15 -0500213
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200214#define CONFIG_SYS_INTR_BASE (MMAP_INTC0)
215#define CONFIG_SYS_NUM_IRQS (128)
TsiChungLiew0e81abc2007-08-15 19:38:15 -0500216
217/* Timer */
218#ifdef CONFIG_MCFTMR
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200219#define CONFIG_SYS_UDELAY_BASE (MMAP_DTMR0)
220#define CONFIG_SYS_TMR_BASE (MMAP_DTMR3)
221#define CONFIG_SYS_TMRPND_REG (((volatile int0_t *)(CONFIG_SYS_INTR_BASE))->iprl0)
222#define CONFIG_SYS_TMRINTR_NO (INT0_LO_DTMR3)
223#define CONFIG_SYS_TMRINTR_MASK (1 << INT0_LO_DTMR3)
224#define CONFIG_SYS_TMRINTR_PEND (CONFIG_SYS_TMRINTR_MASK)
225#define CONFIG_SYS_TMRINTR_PRI (0x1E) /* Level must include inorder to work */
226#define CONFIG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8)
TsiChungLiew0e81abc2007-08-15 19:38:15 -0500227#endif
228#endif /* CONFIG_M5282 */
229
TsiChung Liewe7e4fc82008-10-22 11:38:21 +0000230#if defined(CONFIG_MCF5301x)
231#include <asm/immap_5301x.h>
232#include <asm/m5301x.h>
233
234#define CONFIG_SYS_FEC0_IOBASE (MMAP_FEC0)
235#define CONFIG_SYS_FEC1_IOBASE (MMAP_FEC1)
236#define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x4000))
237
238#define CONFIG_SYS_MCFRTC_BASE (MMAP_RTC)
239
240/* Timer */
241#ifdef CONFIG_MCFTMR
242#define CONFIG_SYS_UDELAY_BASE (MMAP_DTMR0)
243#define CONFIG_SYS_TMR_BASE (MMAP_DTMR1)
244#define CONFIG_SYS_TMRPND_REG (((volatile int0_t *)(CONFIG_SYS_INTR_BASE))->iprh0)
245#define CONFIG_SYS_TMRINTR_NO (INT0_HI_DTMR1)
246#define CONFIG_SYS_TMRINTR_MASK (INTC_IPRH_INT33)
247#define CONFIG_SYS_TMRINTR_PEND (CONFIG_SYS_TMRINTR_MASK)
248#define CONFIG_SYS_TMRINTR_PRI (6)
249#define CONFIG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8)
250#endif
251
252#ifdef CONFIG_MCFPIT
253#define CONFIG_SYS_UDELAY_BASE (MMAP_PIT0)
254#define CONFIG_SYS_PIT_BASE (MMAP_PIT1)
255#define CONFIG_SYS_PIT_PRESCALE (6)
256#endif
257
258#define CONFIG_SYS_INTR_BASE (MMAP_INTC0)
259#define CONFIG_SYS_NUM_IRQS (128)
260#endif /* CONFIG_M5301x */
261
TsiChungLiew6f8a0a32008-01-14 17:23:08 -0600262#if defined(CONFIG_M5329) || defined(CONFIG_M5373)
TsiChungLiew2e0aeef2007-07-05 22:39:07 -0500263#include <asm/immap_5329.h>
264#include <asm/m5329.h>
265
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200266#define CONFIG_SYS_FEC0_IOBASE (MMAP_FEC)
267#define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x4000))
268#define CONFIG_SYS_MCFRTC_BASE (MMAP_RTC)
TsiChungLiew2e0aeef2007-07-05 22:39:07 -0500269
270/* Timer */
271#ifdef CONFIG_MCFTMR
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200272#define CONFIG_SYS_UDELAY_BASE (MMAP_DTMR0)
273#define CONFIG_SYS_TMR_BASE (MMAP_DTMR1)
274#define CONFIG_SYS_TMRPND_REG (((volatile int0_t *)(CONFIG_SYS_INTR_BASE))->iprh0)
275#define CONFIG_SYS_TMRINTR_NO (INT0_HI_DTMR1)
276#define CONFIG_SYS_TMRINTR_MASK (INTC_IPRH_INT33)
277#define CONFIG_SYS_TMRINTR_PEND (CONFIG_SYS_TMRINTR_MASK)
278#define CONFIG_SYS_TMRINTR_PRI (6)
279#define CONFIG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8)
TsiChungLiew2e0aeef2007-07-05 22:39:07 -0500280#endif
281
282#ifdef CONFIG_MCFPIT
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200283#define CONFIG_SYS_UDELAY_BASE (MMAP_PIT0)
284#define CONFIG_SYS_PIT_BASE (MMAP_PIT1)
285#define CONFIG_SYS_PIT_PRESCALE (6)
TsiChungLiew2e0aeef2007-07-05 22:39:07 -0500286#endif
287
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200288#define CONFIG_SYS_INTR_BASE (MMAP_INTC0)
289#define CONFIG_SYS_NUM_IRQS (128)
TsiChungLiew6f8a0a32008-01-14 17:23:08 -0600290#endif /* CONFIG_M5329 && CONFIG_M5373 */
Stefan Roesef1110122007-07-16 13:11:12 +0200291
TsiChung Liew3cdc00a2008-08-11 13:41:49 +0000292#if defined(CONFIG_M54451) || defined(CONFIG_M54455)
TsiChungLiewfc3ca3b2007-08-16 15:05:11 -0500293#include <asm/immap_5445x.h>
294#include <asm/m5445x.h>
295
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200296#define CONFIG_SYS_FEC0_IOBASE (MMAP_FEC0)
TsiChung Liew3cdc00a2008-08-11 13:41:49 +0000297#if defined(CONFIG_M54455EVB)
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200298#define CONFIG_SYS_FEC1_IOBASE (MMAP_FEC1)
TsiChung Liew3cdc00a2008-08-11 13:41:49 +0000299#endif
TsiChungLiewfc3ca3b2007-08-16 15:05:11 -0500300
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200301#define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x4000))
TsiChungLiewfc3ca3b2007-08-16 15:05:11 -0500302
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200303#define CONFIG_SYS_MCFRTC_BASE (MMAP_RTC)
TsiChungLiewfc3ca3b2007-08-16 15:05:11 -0500304
305/* Timer */
306#ifdef CONFIG_MCFTMR
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200307#define CONFIG_SYS_UDELAY_BASE (MMAP_DTMR0)
308#define CONFIG_SYS_TMR_BASE (MMAP_DTMR1)
309#define CONFIG_SYS_TMRPND_REG (((volatile int0_t *)(CONFIG_SYS_INTR_BASE))->iprh0)
310#define CONFIG_SYS_TMRINTR_NO (INT0_HI_DTMR1)
311#define CONFIG_SYS_TMRINTR_MASK (INTC_IPRH_INT33)
312#define CONFIG_SYS_TMRINTR_PEND (CONFIG_SYS_TMRINTR_MASK)
313#define CONFIG_SYS_TMRINTR_PRI (6)
314#define CONFIG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8)
TsiChungLiewfc3ca3b2007-08-16 15:05:11 -0500315#endif
316
317#ifdef CONFIG_MCFPIT
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200318#define CONFIG_SYS_UDELAY_BASE (MMAP_PIT0)
319#define CONFIG_SYS_PIT_BASE (MMAP_PIT1)
320#define CONFIG_SYS_PIT_PRESCALE (6)
TsiChungLiewfc3ca3b2007-08-16 15:05:11 -0500321#endif
322
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200323#define CONFIG_SYS_INTR_BASE (MMAP_INTC0)
324#define CONFIG_SYS_NUM_IRQS (128)
TsiChungLiewfc3ca3b2007-08-16 15:05:11 -0500325
326#ifdef CONFIG_PCI
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200327#define CONFIG_SYS_PCI_BAR0 (CONFIG_SYS_MBAR)
328#define CONFIG_SYS_PCI_BAR5 (CONFIG_SYS_SDRAM_BASE)
329#define CONFIG_SYS_PCI_TBATR0 (CONFIG_SYS_MBAR)
330#define CONFIG_SYS_PCI_TBATR5 (CONFIG_SYS_SDRAM_BASE)
TsiChungLiewfc3ca3b2007-08-16 15:05:11 -0500331#endif
TsiChung Liew3cdc00a2008-08-11 13:41:49 +0000332#endif /* CONFIG_M54451 || CONFIG_M54455 */
TsiChungLiewfc3ca3b2007-08-16 15:05:11 -0500333
TsiChungLiew471b2c62008-01-15 13:39:44 -0600334#ifdef CONFIG_M547x
335#include <asm/immap_547x_8x.h>
336#include <asm/m547x_8x.h>
337
338#ifdef CONFIG_FSLDMAFEC
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200339#define CONFIG_SYS_FEC0_IOBASE (MMAP_FEC0)
340#define CONFIG_SYS_FEC1_IOBASE (MMAP_FEC1)
TsiChungLiew471b2c62008-01-15 13:39:44 -0600341
342#define FEC0_RX_TASK 0
343#define FEC0_TX_TASK 1
344#define FEC0_RX_PRIORITY 6
345#define FEC0_TX_PRIORITY 7
346#define FEC0_RX_INIT 16
347#define FEC0_TX_INIT 17
348#define FEC1_RX_TASK 2
349#define FEC1_TX_TASK 3
350#define FEC1_RX_PRIORITY 6
351#define FEC1_TX_PRIORITY 7
352#define FEC1_RX_INIT 30
353#define FEC1_TX_INIT 31
354#endif
355
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200356#define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x100))
TsiChungLiew471b2c62008-01-15 13:39:44 -0600357
358#ifdef CONFIG_SLTTMR
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200359#define CONFIG_SYS_UDELAY_BASE (MMAP_SLT1)
360#define CONFIG_SYS_TMR_BASE (MMAP_SLT0)
361#define CONFIG_SYS_TMRPND_REG (((volatile int0_t *)(CONFIG_SYS_INTR_BASE))->iprh0)
362#define CONFIG_SYS_TMRINTR_NO (INT0_HI_SLT0)
363#define CONFIG_SYS_TMRINTR_MASK (INTC_IPRH_INT54)
364#define CONFIG_SYS_TMRINTR_PEND (CONFIG_SYS_TMRINTR_MASK)
365#define CONFIG_SYS_TMRINTR_PRI (0x1E)
366#define CONFIG_SYS_TIMER_PRESCALER (gd->bus_clk / 1000000)
TsiChungLiew471b2c62008-01-15 13:39:44 -0600367#endif
368
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200369#define CONFIG_SYS_INTR_BASE (MMAP_INTC0)
370#define CONFIG_SYS_NUM_IRQS (128)
TsiChungLiew471b2c62008-01-15 13:39:44 -0600371
372#ifdef CONFIG_PCI
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200373#define CONFIG_SYS_PCI_BAR0 (0x40000000)
374#define CONFIG_SYS_PCI_BAR1 (CONFIG_SYS_SDRAM_BASE)
375#define CONFIG_SYS_PCI_TBATR0 (CONFIG_SYS_MBAR)
376#define CONFIG_SYS_PCI_TBATR1 (CONFIG_SYS_SDRAM_BASE)
TsiChungLiew471b2c62008-01-15 13:39:44 -0600377#endif
378#endif /* CONFIG_M547x */
379
380#ifdef CONFIG_M548x
381#include <asm/immap_547x_8x.h>
382#include <asm/m547x_8x.h>
383
384#ifdef CONFIG_FSLDMAFEC
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200385#define CONFIG_SYS_FEC0_IOBASE (MMAP_FEC0)
386#define CONFIG_SYS_FEC1_IOBASE (MMAP_FEC1)
TsiChungLiew471b2c62008-01-15 13:39:44 -0600387
388#define FEC0_RX_TASK 0
389#define FEC0_TX_TASK 1
390#define FEC0_RX_PRIORITY 6
391#define FEC0_TX_PRIORITY 7
392#define FEC0_RX_INIT 16
393#define FEC0_TX_INIT 17
394#define FEC1_RX_TASK 2
395#define FEC1_TX_TASK 3
396#define FEC1_RX_PRIORITY 6
397#define FEC1_TX_PRIORITY 7
398#define FEC1_RX_INIT 30
399#define FEC1_TX_INIT 31
400#endif
401
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200402#define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x100))
TsiChungLiew471b2c62008-01-15 13:39:44 -0600403
404/* Timer */
405#ifdef CONFIG_SLTTMR
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200406#define CONFIG_SYS_UDELAY_BASE (MMAP_SLT1)
407#define CONFIG_SYS_TMR_BASE (MMAP_SLT0)
408#define CONFIG_SYS_TMRPND_REG (((volatile int0_t *)(CONFIG_SYS_INTR_BASE))->iprh0)
409#define CONFIG_SYS_TMRINTR_NO (INT0_HI_SLT0)
410#define CONFIG_SYS_TMRINTR_MASK (INTC_IPRH_INT54)
411#define CONFIG_SYS_TMRINTR_PEND (CONFIG_SYS_TMRINTR_MASK)
412#define CONFIG_SYS_TMRINTR_PRI (0x1E)
413#define CONFIG_SYS_TIMER_PRESCALER (gd->bus_clk / 1000000)
TsiChungLiew471b2c62008-01-15 13:39:44 -0600414#endif
415
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200416#define CONFIG_SYS_INTR_BASE (MMAP_INTC0)
417#define CONFIG_SYS_NUM_IRQS (128)
TsiChungLiew471b2c62008-01-15 13:39:44 -0600418
419#ifdef CONFIG_PCI
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200420#define CONFIG_SYS_PCI_BAR0 (CONFIG_SYS_MBAR)
421#define CONFIG_SYS_PCI_BAR1 (CONFIG_SYS_SDRAM_BASE)
422#define CONFIG_SYS_PCI_TBATR0 (CONFIG_SYS_MBAR)
423#define CONFIG_SYS_PCI_TBATR1 (CONFIG_SYS_SDRAM_BASE)
TsiChungLiew471b2c62008-01-15 13:39:44 -0600424#endif
425#endif /* CONFIG_M548x */
426
TsiChungLiew2e0aeef2007-07-05 22:39:07 -0500427#endif /* __IMMAP_H */