blob: ccd7c2be81091661ae75d526b62f85e96d902e44 [file] [log] [blame]
TsiChungLiew48dbfea2007-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 Roesec883f6e2007-07-16 13:11:12 +020028
TsiChungLiew1552af72008-01-14 17:43:33 -060029#ifdef CONFIG_M52277
30#include <asm/immap_5227x.h>
31#include <asm/m5227x.h>
32
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +020033#define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x4000))
TsiChungLiew1552af72008-01-14 17:43:33 -060034
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +020035#define CONFIG_SYS_MCFRTC_BASE (MMAP_RTC)
TsiChungLiew1552af72008-01-14 17:43:33 -060036
37#ifdef CONFIG_LCD
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +020038#define CONFIG_SYS_LCD_BASE (MMAP_LCD)
TsiChungLiew1552af72008-01-14 17:43:33 -060039#endif
40
41/* Timer */
42#ifdef CONFIG_MCFTMR
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-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)
TsiChungLiew1552af72008-01-14 17:43:33 -060051#endif
52
53#ifdef CONFIG_MCFPIT
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-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)
TsiChungLiew1552af72008-01-14 17:43:33 -060057#endif
58
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +020059#define CONFIG_SYS_INTR_BASE (MMAP_INTC0)
60#define CONFIG_SYS_NUM_IRQS (128)
TsiChungLiew1552af72008-01-14 17:43:33 -060061#endif /* CONFIG_M52277 */
62
TsiChungLiew4a442d32007-08-16 19:23:50 -050063#ifdef CONFIG_M5235
64#include <asm/immap_5235.h>
65#include <asm/m5235.h>
66
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-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))
TsiChungLiew4a442d32007-08-16 19:23:50 -050069
70/* Timer */
71#ifdef CONFIG_MCFTMR
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-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)
TsiChungLiew4a442d32007-08-16 19:23:50 -050080#endif
81
82#ifdef CONFIG_MCFPIT
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-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)
TsiChungLiew4a442d32007-08-16 19:23:50 -050086#endif
87
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +020088#define CONFIG_SYS_INTR_BASE (MMAP_INTC0)
89#define CONFIG_SYS_NUM_IRQS (128)
TsiChungLiew4a442d32007-08-16 19:23:50 -050090#endif /* CONFIG_M5235 */
91
TsiChungLiew56115662007-08-15 19:38:15 -050092#ifdef CONFIG_M5249
93#include <asm/immap_5249.h>
94#include <asm/m5249.h>
95
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +020096#define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x40))
TsiChungLiew56115662007-08-15 19:38:15 -050097
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +020098#define CONFIG_SYS_INTR_BASE (MMAP_INTC)
99#define CONFIG_SYS_NUM_IRQS (64)
TsiChungLiew56115662007-08-15 19:38:15 -0500100
101/* Timer */
102#ifdef CONFIG_MCFTMR
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-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)
TsiChungLiew56115662007-08-15 19:38:15 -0500111#endif
112#endif /* CONFIG_M5249 */
113
TsiChungLiewa1436a82007-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-VILLARD6d0f6bc2008-10-16 15:01:15 +0200119#define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x40))
TsiChungLiewa1436a82007-08-16 13:20:50 -0500120
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200121#define CONFIG_SYS_INTR_BASE (MMAP_INTC)
122#define CONFIG_SYS_NUM_IRQS (64)
TsiChungLiewa1436a82007-08-16 13:20:50 -0500123
124/* Timer */
125#ifdef CONFIG_MCFTMR
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-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)
TsiChungLiewa1436a82007-08-16 13:20:50 -0500134#endif
135#endif /* CONFIG_M5253 */
136
TsiChungLiew56115662007-08-15 19:38:15 -0500137#ifdef CONFIG_M5271
138#include <asm/immap_5271.h>
139#include <asm/m5271.h>
140
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-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))
TsiChungLiew56115662007-08-15 19:38:15 -0500143
144/* Timer */
145#ifdef CONFIG_MCFTMR
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-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)
TsiChungLiew56115662007-08-15 19:38:15 -0500154#endif
155
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200156#define CONFIG_SYS_INTR_BASE (MMAP_INTC0)
157#define CONFIG_SYS_NUM_IRQS (128)
TsiChungLiew56115662007-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-VILLARD6d0f6bc2008-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))
TsiChungLiew56115662007-08-15 19:38:15 -0500166
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200167#define CONFIG_SYS_INTR_BASE (MMAP_INTC)
168#define CONFIG_SYS_NUM_IRQS (64)
TsiChungLiew56115662007-08-15 19:38:15 -0500169
170/* Timer */
171#ifdef CONFIG_MCFTMR
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-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)
TsiChungLiew56115662007-08-15 19:38:15 -0500180#endif
181#endif /* CONFIG_M5272 */
182
Matthew Fettkef71d9d92008-02-04 15:38:20 -0600183#ifdef CONFIG_M5275
184#include <asm/immap_5275.h>
185#include <asm/m5275.h>
186
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-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 Fettkef71d9d92008-02-04 15:38:20 -0600190
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200191#define CONFIG_SYS_INTR_BASE (MMAP_INTC0)
192#define CONFIG_SYS_NUM_IRQS (192)
Matthew Fettkef71d9d92008-02-04 15:38:20 -0600193
194/* Timer */
195#ifdef CONFIG_MCFTMR
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-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 Fettkef71d9d92008-02-04 15:38:20 -0600204#endif
205#endif /* CONFIG_M5275 */
206
TsiChungLiew56115662007-08-15 19:38:15 -0500207#ifdef CONFIG_M5282
208#include <asm/immap_5282.h>
209#include <asm/m5282.h>
210
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-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))
TsiChungLiew56115662007-08-15 19:38:15 -0500213
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200214#define CONFIG_SYS_INTR_BASE (MMAP_INTC0)
215#define CONFIG_SYS_NUM_IRQS (128)
TsiChungLiew56115662007-08-15 19:38:15 -0500216
217/* Timer */
218#ifdef CONFIG_MCFTMR
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-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)
TsiChungLiew56115662007-08-15 19:38:15 -0500227#endif
228#endif /* CONFIG_M5282 */
229
TsiChungLiewaa5f1f92008-01-14 17:23:08 -0600230#if defined(CONFIG_M5329) || defined(CONFIG_M5373)
TsiChungLiew48dbfea2007-07-05 22:39:07 -0500231#include <asm/immap_5329.h>
232#include <asm/m5329.h>
233
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200234#define CONFIG_SYS_FEC0_IOBASE (MMAP_FEC)
235#define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x4000))
236#define CONFIG_SYS_MCFRTC_BASE (MMAP_RTC)
TsiChungLiew48dbfea2007-07-05 22:39:07 -0500237
238/* Timer */
239#ifdef CONFIG_MCFTMR
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200240#define CONFIG_SYS_UDELAY_BASE (MMAP_DTMR0)
241#define CONFIG_SYS_TMR_BASE (MMAP_DTMR1)
242#define CONFIG_SYS_TMRPND_REG (((volatile int0_t *)(CONFIG_SYS_INTR_BASE))->iprh0)
243#define CONFIG_SYS_TMRINTR_NO (INT0_HI_DTMR1)
244#define CONFIG_SYS_TMRINTR_MASK (INTC_IPRH_INT33)
245#define CONFIG_SYS_TMRINTR_PEND (CONFIG_SYS_TMRINTR_MASK)
246#define CONFIG_SYS_TMRINTR_PRI (6)
247#define CONFIG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8)
TsiChungLiew48dbfea2007-07-05 22:39:07 -0500248#endif
249
250#ifdef CONFIG_MCFPIT
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200251#define CONFIG_SYS_UDELAY_BASE (MMAP_PIT0)
252#define CONFIG_SYS_PIT_BASE (MMAP_PIT1)
253#define CONFIG_SYS_PIT_PRESCALE (6)
TsiChungLiew48dbfea2007-07-05 22:39:07 -0500254#endif
255
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200256#define CONFIG_SYS_INTR_BASE (MMAP_INTC0)
257#define CONFIG_SYS_NUM_IRQS (128)
TsiChungLiewaa5f1f92008-01-14 17:23:08 -0600258#endif /* CONFIG_M5329 && CONFIG_M5373 */
Stefan Roesec883f6e2007-07-16 13:11:12 +0200259
TsiChung Liew05316f82008-08-11 13:41:49 +0000260#if defined(CONFIG_M54451) || defined(CONFIG_M54455)
TsiChungLiew8ae158c2007-08-16 15:05:11 -0500261#include <asm/immap_5445x.h>
262#include <asm/m5445x.h>
263
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200264#define CONFIG_SYS_FEC0_IOBASE (MMAP_FEC0)
TsiChung Liew05316f82008-08-11 13:41:49 +0000265#if defined(CONFIG_M54455EVB)
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200266#define CONFIG_SYS_FEC1_IOBASE (MMAP_FEC1)
TsiChung Liew05316f82008-08-11 13:41:49 +0000267#endif
TsiChungLiew8ae158c2007-08-16 15:05:11 -0500268
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200269#define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x4000))
TsiChungLiew8ae158c2007-08-16 15:05:11 -0500270
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200271#define CONFIG_SYS_MCFRTC_BASE (MMAP_RTC)
TsiChungLiew8ae158c2007-08-16 15:05:11 -0500272
273/* Timer */
274#ifdef CONFIG_MCFTMR
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200275#define CONFIG_SYS_UDELAY_BASE (MMAP_DTMR0)
276#define CONFIG_SYS_TMR_BASE (MMAP_DTMR1)
277#define CONFIG_SYS_TMRPND_REG (((volatile int0_t *)(CONFIG_SYS_INTR_BASE))->iprh0)
278#define CONFIG_SYS_TMRINTR_NO (INT0_HI_DTMR1)
279#define CONFIG_SYS_TMRINTR_MASK (INTC_IPRH_INT33)
280#define CONFIG_SYS_TMRINTR_PEND (CONFIG_SYS_TMRINTR_MASK)
281#define CONFIG_SYS_TMRINTR_PRI (6)
282#define CONFIG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8)
TsiChungLiew8ae158c2007-08-16 15:05:11 -0500283#endif
284
285#ifdef CONFIG_MCFPIT
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200286#define CONFIG_SYS_UDELAY_BASE (MMAP_PIT0)
287#define CONFIG_SYS_PIT_BASE (MMAP_PIT1)
288#define CONFIG_SYS_PIT_PRESCALE (6)
TsiChungLiew8ae158c2007-08-16 15:05:11 -0500289#endif
290
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200291#define CONFIG_SYS_INTR_BASE (MMAP_INTC0)
292#define CONFIG_SYS_NUM_IRQS (128)
TsiChungLiew8ae158c2007-08-16 15:05:11 -0500293
294#ifdef CONFIG_PCI
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200295#define CONFIG_SYS_PCI_BAR0 (CONFIG_SYS_MBAR)
296#define CONFIG_SYS_PCI_BAR5 (CONFIG_SYS_SDRAM_BASE)
297#define CONFIG_SYS_PCI_TBATR0 (CONFIG_SYS_MBAR)
298#define CONFIG_SYS_PCI_TBATR5 (CONFIG_SYS_SDRAM_BASE)
TsiChungLiew8ae158c2007-08-16 15:05:11 -0500299#endif
TsiChung Liew05316f82008-08-11 13:41:49 +0000300#endif /* CONFIG_M54451 || CONFIG_M54455 */
TsiChungLiew8ae158c2007-08-16 15:05:11 -0500301
TsiChungLiew4621fc32008-01-15 13:39:44 -0600302#ifdef CONFIG_M547x
303#include <asm/immap_547x_8x.h>
304#include <asm/m547x_8x.h>
305
306#ifdef CONFIG_FSLDMAFEC
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200307#define CONFIG_SYS_FEC0_IOBASE (MMAP_FEC0)
308#define CONFIG_SYS_FEC1_IOBASE (MMAP_FEC1)
TsiChungLiew4621fc32008-01-15 13:39:44 -0600309
310#define FEC0_RX_TASK 0
311#define FEC0_TX_TASK 1
312#define FEC0_RX_PRIORITY 6
313#define FEC0_TX_PRIORITY 7
314#define FEC0_RX_INIT 16
315#define FEC0_TX_INIT 17
316#define FEC1_RX_TASK 2
317#define FEC1_TX_TASK 3
318#define FEC1_RX_PRIORITY 6
319#define FEC1_TX_PRIORITY 7
320#define FEC1_RX_INIT 30
321#define FEC1_TX_INIT 31
322#endif
323
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200324#define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x100))
TsiChungLiew4621fc32008-01-15 13:39:44 -0600325
326#ifdef CONFIG_SLTTMR
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200327#define CONFIG_SYS_UDELAY_BASE (MMAP_SLT1)
328#define CONFIG_SYS_TMR_BASE (MMAP_SLT0)
329#define CONFIG_SYS_TMRPND_REG (((volatile int0_t *)(CONFIG_SYS_INTR_BASE))->iprh0)
330#define CONFIG_SYS_TMRINTR_NO (INT0_HI_SLT0)
331#define CONFIG_SYS_TMRINTR_MASK (INTC_IPRH_INT54)
332#define CONFIG_SYS_TMRINTR_PEND (CONFIG_SYS_TMRINTR_MASK)
333#define CONFIG_SYS_TMRINTR_PRI (0x1E)
334#define CONFIG_SYS_TIMER_PRESCALER (gd->bus_clk / 1000000)
TsiChungLiew4621fc32008-01-15 13:39:44 -0600335#endif
336
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200337#define CONFIG_SYS_INTR_BASE (MMAP_INTC0)
338#define CONFIG_SYS_NUM_IRQS (128)
TsiChungLiew4621fc32008-01-15 13:39:44 -0600339
340#ifdef CONFIG_PCI
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200341#define CONFIG_SYS_PCI_BAR0 (0x40000000)
342#define CONFIG_SYS_PCI_BAR1 (CONFIG_SYS_SDRAM_BASE)
343#define CONFIG_SYS_PCI_TBATR0 (CONFIG_SYS_MBAR)
344#define CONFIG_SYS_PCI_TBATR1 (CONFIG_SYS_SDRAM_BASE)
TsiChungLiew4621fc32008-01-15 13:39:44 -0600345#endif
346#endif /* CONFIG_M547x */
347
348#ifdef CONFIG_M548x
349#include <asm/immap_547x_8x.h>
350#include <asm/m547x_8x.h>
351
352#ifdef CONFIG_FSLDMAFEC
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200353#define CONFIG_SYS_FEC0_IOBASE (MMAP_FEC0)
354#define CONFIG_SYS_FEC1_IOBASE (MMAP_FEC1)
TsiChungLiew4621fc32008-01-15 13:39:44 -0600355
356#define FEC0_RX_TASK 0
357#define FEC0_TX_TASK 1
358#define FEC0_RX_PRIORITY 6
359#define FEC0_TX_PRIORITY 7
360#define FEC0_RX_INIT 16
361#define FEC0_TX_INIT 17
362#define FEC1_RX_TASK 2
363#define FEC1_TX_TASK 3
364#define FEC1_RX_PRIORITY 6
365#define FEC1_TX_PRIORITY 7
366#define FEC1_RX_INIT 30
367#define FEC1_TX_INIT 31
368#endif
369
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200370#define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x100))
TsiChungLiew4621fc32008-01-15 13:39:44 -0600371
372/* Timer */
373#ifdef CONFIG_SLTTMR
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200374#define CONFIG_SYS_UDELAY_BASE (MMAP_SLT1)
375#define CONFIG_SYS_TMR_BASE (MMAP_SLT0)
376#define CONFIG_SYS_TMRPND_REG (((volatile int0_t *)(CONFIG_SYS_INTR_BASE))->iprh0)
377#define CONFIG_SYS_TMRINTR_NO (INT0_HI_SLT0)
378#define CONFIG_SYS_TMRINTR_MASK (INTC_IPRH_INT54)
379#define CONFIG_SYS_TMRINTR_PEND (CONFIG_SYS_TMRINTR_MASK)
380#define CONFIG_SYS_TMRINTR_PRI (0x1E)
381#define CONFIG_SYS_TIMER_PRESCALER (gd->bus_clk / 1000000)
TsiChungLiew4621fc32008-01-15 13:39:44 -0600382#endif
383
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200384#define CONFIG_SYS_INTR_BASE (MMAP_INTC0)
385#define CONFIG_SYS_NUM_IRQS (128)
TsiChungLiew4621fc32008-01-15 13:39:44 -0600386
387#ifdef CONFIG_PCI
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200388#define CONFIG_SYS_PCI_BAR0 (CONFIG_SYS_MBAR)
389#define CONFIG_SYS_PCI_BAR1 (CONFIG_SYS_SDRAM_BASE)
390#define CONFIG_SYS_PCI_TBATR0 (CONFIG_SYS_MBAR)
391#define CONFIG_SYS_PCI_TBATR1 (CONFIG_SYS_SDRAM_BASE)
TsiChungLiew4621fc32008-01-15 13:39:44 -0600392#endif
393#endif /* CONFIG_M548x */
394
TsiChungLiew48dbfea2007-07-05 22:39:07 -0500395#endif /* __IMMAP_H */