blob: 80fa25769b27e70c69f43dfb79c0ad9cc2f124e8 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
TsiChungLiew2e0aeef2007-07-05 22:39:07 -05002/*
3 * ColdFire Internal Memory Map and Defines
4 *
Alison Wangfdc2fb12012-10-18 19:25:51 +00005 * Copyright 2004-2012 Freescale Semiconductor, Inc.
TsiChungLiew2e0aeef2007-07-05 22:39:07 -05006 * TsiChung Liew (Tsi-Chung.Liew@freescale.com)
TsiChungLiew2e0aeef2007-07-05 22:39:07 -05007 */
8
9#ifndef __IMMAP_H
10#define __IMMAP_H
Stefan Roesef1110122007-07-16 13:11:12 +020011
TsiChung Liewb354aef2009-06-12 11:29:00 +000012#if defined(CONFIG_MCF520x)
13#include <asm/immap_520x.h>
14#include <asm/m520x.h>
15
16#define CONFIG_SYS_FEC0_IOBASE (MMAP_FEC0)
17#define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x4000))
18
19/* Timer */
20#ifdef CONFIG_MCFTMR
21#define CONFIG_SYS_UDELAY_BASE (MMAP_DTMR0)
22#define CONFIG_SYS_TMR_BASE (MMAP_DTMR1)
23#define CONFIG_SYS_TMRPND_REG (((volatile int0_t *)(CONFIG_SYS_INTR_BASE))->iprh0)
24#define CONFIG_SYS_TMRINTR_NO (INT0_HI_DTMR1)
25#define CONFIG_SYS_TMRINTR_MASK (INTC_IPRH_INT33)
26#define CONFIG_SYS_TMRINTR_PEND (CONFIG_SYS_TMRINTR_MASK)
27#define CONFIG_SYS_TMRINTR_PRI (6)
28#define CONFIG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8)
29#endif
30
31#ifdef CONFIG_MCFPIT
32#define CONFIG_SYS_UDELAY_BASE (MMAP_PIT0)
33#define CONFIG_SYS_PIT_BASE (MMAP_PIT1)
34#define CONFIG_SYS_PIT_PRESCALE (6)
35#endif
36
37#define CONFIG_SYS_INTR_BASE (MMAP_INTC0)
38#define CONFIG_SYS_NUM_IRQS (128)
39#endif /* CONFIG_M520x */
40
TsiChungLiew99b037a2008-01-14 17:43:33 -060041#ifdef CONFIG_M52277
42#include <asm/immap_5227x.h>
43#include <asm/m5227x.h>
44
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +020045#define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x4000))
TsiChungLiew99b037a2008-01-14 17:43:33 -060046
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +020047#define CONFIG_SYS_MCFRTC_BASE (MMAP_RTC)
TsiChungLiew99b037a2008-01-14 17:43:33 -060048
49#ifdef CONFIG_LCD
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +020050#define CONFIG_SYS_LCD_BASE (MMAP_LCD)
TsiChungLiew99b037a2008-01-14 17:43:33 -060051#endif
52
53/* Timer */
54#ifdef CONFIG_MCFTMR
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +020055#define CONFIG_SYS_UDELAY_BASE (MMAP_DTMR0)
56#define CONFIG_SYS_TMR_BASE (MMAP_DTMR1)
57#define CONFIG_SYS_TMRPND_REG (((volatile int0_t *)(CONFIG_SYS_INTR_BASE))->iprh0)
58#define CONFIG_SYS_TMRINTR_NO (INT0_HI_DTMR1)
59#define CONFIG_SYS_TMRINTR_MASK (INTC_IPRH_INT33)
60#define CONFIG_SYS_TMRINTR_PEND (CONFIG_SYS_TMRINTR_MASK)
61#define CONFIG_SYS_TMRINTR_PRI (6)
62#define CONFIG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8)
TsiChungLiew99b037a2008-01-14 17:43:33 -060063#endif
64
65#ifdef CONFIG_MCFPIT
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +020066#define CONFIG_SYS_UDELAY_BASE (MMAP_PIT0)
67#define CONFIG_SYS_PIT_BASE (MMAP_PIT1)
68#define CONFIG_SYS_PIT_PRESCALE (6)
TsiChungLiew99b037a2008-01-14 17:43:33 -060069#endif
70
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +020071#define CONFIG_SYS_INTR_BASE (MMAP_INTC0)
72#define CONFIG_SYS_NUM_IRQS (128)
TsiChungLiew99b037a2008-01-14 17:43:33 -060073#endif /* CONFIG_M52277 */
74
TsiChungLiewb859ef12007-08-16 19:23:50 -050075#ifdef CONFIG_M5235
76#include <asm/immap_5235.h>
77#include <asm/m5235.h>
78
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +020079#define CONFIG_SYS_FEC0_IOBASE (MMAP_FEC)
80#define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x40))
TsiChungLiewb859ef12007-08-16 19:23:50 -050081
82/* Timer */
83#ifdef CONFIG_MCFTMR
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +020084#define CONFIG_SYS_UDELAY_BASE (MMAP_DTMR0)
85#define CONFIG_SYS_TMR_BASE (MMAP_DTMR3)
86#define CONFIG_SYS_TMRPND_REG (((volatile int0_t *)(CONFIG_SYS_INTR_BASE))->iprl0)
87#define CONFIG_SYS_TMRINTR_NO (INT0_LO_DTMR3)
88#define CONFIG_SYS_TMRINTR_MASK (INTC_IPRL_INT22)
89#define CONFIG_SYS_TMRINTR_PEND (CONFIG_SYS_TMRINTR_MASK)
90#define CONFIG_SYS_TMRINTR_PRI (0x1E) /* Level must include inorder to work */
91#define CONFIG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8)
TsiChungLiewb859ef12007-08-16 19:23:50 -050092#endif
93
94#ifdef CONFIG_MCFPIT
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +020095#define CONFIG_SYS_UDELAY_BASE (MMAP_PIT0)
96#define CONFIG_SYS_PIT_BASE (MMAP_PIT1)
97#define CONFIG_SYS_PIT_PRESCALE (6)
TsiChungLiewb859ef12007-08-16 19:23:50 -050098#endif
99
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200100#define CONFIG_SYS_INTR_BASE (MMAP_INTC0)
101#define CONFIG_SYS_NUM_IRQS (128)
TsiChungLiewb859ef12007-08-16 19:23:50 -0500102#endif /* CONFIG_M5235 */
103
TsiChungLiew0e81abc2007-08-15 19:38:15 -0500104#ifdef CONFIG_M5249
105#include <asm/immap_5249.h>
106#include <asm/m5249.h>
107
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200108#define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x40))
TsiChungLiew0e81abc2007-08-15 19:38:15 -0500109
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200110#define CONFIG_SYS_INTR_BASE (MMAP_INTC)
111#define CONFIG_SYS_NUM_IRQS (64)
TsiChungLiew0e81abc2007-08-15 19:38:15 -0500112
113/* Timer */
114#ifdef CONFIG_MCFTMR
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200115#define CONFIG_SYS_UDELAY_BASE (MMAP_DTMR0)
116#define CONFIG_SYS_TMR_BASE (MMAP_DTMR1)
117#define CONFIG_SYS_TMRPND_REG (mbar_readLong(MCFSIM_IPR))
118#define CONFIG_SYS_TMRINTR_NO (31)
119#define CONFIG_SYS_TMRINTR_MASK (0x00000400)
120#define CONFIG_SYS_TMRINTR_PEND (CONFIG_SYS_TMRINTR_MASK)
121#define CONFIG_SYS_TMRINTR_PRI (MCFSIM_ICR_AUTOVEC | MCFSIM_ICR_LEVEL7 | MCFSIM_ICR_PRI3)
122#define CONFIG_SYS_TIMER_PRESCALER (((gd->bus_clk / 2000000) - 1) << 8)
TsiChungLiew0e81abc2007-08-15 19:38:15 -0500123#endif
124#endif /* CONFIG_M5249 */
125
TsiChungLiew34674692007-08-16 13:20:50 -0500126#ifdef CONFIG_M5253
127#include <asm/immap_5253.h>
128#include <asm/m5249.h>
129#include <asm/m5253.h>
130
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200131#define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x40))
TsiChungLiew34674692007-08-16 13:20:50 -0500132
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200133#define CONFIG_SYS_INTR_BASE (MMAP_INTC)
134#define CONFIG_SYS_NUM_IRQS (64)
TsiChungLiew34674692007-08-16 13:20:50 -0500135
136/* Timer */
137#ifdef CONFIG_MCFTMR
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200138#define CONFIG_SYS_UDELAY_BASE (MMAP_DTMR0)
139#define CONFIG_SYS_TMR_BASE (MMAP_DTMR1)
140#define CONFIG_SYS_TMRPND_REG (mbar_readLong(MCFSIM_IPR))
141#define CONFIG_SYS_TMRINTR_NO (27)
142#define CONFIG_SYS_TMRINTR_MASK (0x00000400)
143#define CONFIG_SYS_TMRINTR_PEND (CONFIG_SYS_TMRINTR_MASK)
144#define CONFIG_SYS_TMRINTR_PRI (MCFSIM_ICR_AUTOVEC | MCFSIM_ICR_LEVEL3 | MCFSIM_ICR_PRI3)
145#define CONFIG_SYS_TIMER_PRESCALER (((gd->bus_clk / 2000000) - 1) << 8)
TsiChungLiew34674692007-08-16 13:20:50 -0500146#endif
147#endif /* CONFIG_M5253 */
148
TsiChungLiew0e81abc2007-08-15 19:38:15 -0500149#ifdef CONFIG_M5271
150#include <asm/immap_5271.h>
151#include <asm/m5271.h>
152
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200153#define CONFIG_SYS_FEC0_IOBASE (MMAP_FEC)
154#define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x40))
TsiChungLiew0e81abc2007-08-15 19:38:15 -0500155
156/* Timer */
157#ifdef CONFIG_MCFTMR
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200158#define CONFIG_SYS_UDELAY_BASE (MMAP_DTMR0)
159#define CONFIG_SYS_TMR_BASE (MMAP_DTMR3)
160#define CONFIG_SYS_TMRPND_REG (((volatile int0_t *)(CONFIG_SYS_INTR_BASE))->iprl0)
161#define CONFIG_SYS_TMRINTR_NO (INT0_LO_DTMR3)
162#define CONFIG_SYS_TMRINTR_MASK (INTC_IPRL_INT22)
163#define CONFIG_SYS_TMRINTR_PEND (CONFIG_SYS_TMRINTR_MASK)
Richard Retanubun0dd94312009-03-26 15:26:01 -0400164#define CONFIG_SYS_TMRINTR_PRI (0x1E) /* Interrupt level 3, priority 6 */
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200165#define CONFIG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8)
TsiChungLiew0e81abc2007-08-15 19:38:15 -0500166#endif
167
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200168#define CONFIG_SYS_INTR_BASE (MMAP_INTC0)
169#define CONFIG_SYS_NUM_IRQS (128)
TsiChungLiew0e81abc2007-08-15 19:38:15 -0500170#endif /* CONFIG_M5271 */
171
172#ifdef CONFIG_M5272
173#include <asm/immap_5272.h>
174#include <asm/m5272.h>
175
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200176#define CONFIG_SYS_FEC0_IOBASE (MMAP_FEC)
177#define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x40))
TsiChungLiew0e81abc2007-08-15 19:38:15 -0500178
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200179#define CONFIG_SYS_INTR_BASE (MMAP_INTC)
180#define CONFIG_SYS_NUM_IRQS (64)
TsiChungLiew0e81abc2007-08-15 19:38:15 -0500181
182/* Timer */
183#ifdef CONFIG_MCFTMR
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200184#define CONFIG_SYS_UDELAY_BASE (MMAP_TMR0)
185#define CONFIG_SYS_TMR_BASE (MMAP_TMR3)
186#define CONFIG_SYS_TMRPND_REG (((volatile intctrl_t *)(CONFIG_SYS_INTR_BASE))->int_isr)
187#define CONFIG_SYS_TMRINTR_NO (INT_TMR3)
188#define CONFIG_SYS_TMRINTR_MASK (INT_ISR_INT24)
189#define CONFIG_SYS_TMRINTR_PEND (0)
190#define CONFIG_SYS_TMRINTR_PRI (INT_ICR1_TMR3PI | INT_ICR1_TMR3IPL(5))
191#define CONFIG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8)
TsiChungLiew0e81abc2007-08-15 19:38:15 -0500192#endif
193#endif /* CONFIG_M5272 */
194
Matthew Fettke761e2e92008-02-04 15:38:20 -0600195#ifdef CONFIG_M5275
196#include <asm/immap_5275.h>
197#include <asm/m5275.h>
198
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200199#define CONFIG_SYS_FEC0_IOBASE (MMAP_FEC0)
200#define CONFIG_SYS_FEC1_IOBASE (MMAP_FEC1)
201#define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x40))
Matthew Fettke761e2e92008-02-04 15:38:20 -0600202
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200203#define CONFIG_SYS_INTR_BASE (MMAP_INTC0)
204#define CONFIG_SYS_NUM_IRQS (192)
Matthew Fettke761e2e92008-02-04 15:38:20 -0600205
206/* Timer */
207#ifdef CONFIG_MCFTMR
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200208#define CONFIG_SYS_UDELAY_BASE (MMAP_DTMR0)
209#define CONFIG_SYS_TMR_BASE (MMAP_DTMR3)
210#define CONFIG_SYS_TMRPND_REG (((volatile int0_t *)(CONFIG_SYS_INTR_BASE))->iprl0)
211#define CONFIG_SYS_TMRINTR_NO (INT0_LO_DTMR3)
212#define CONFIG_SYS_TMRINTR_MASK (INTC_IPRL_INT22)
213#define CONFIG_SYS_TMRINTR_PEND (CONFIG_SYS_TMRINTR_MASK)
214#define CONFIG_SYS_TMRINTR_PRI (0x1E)
215#define CONFIG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8)
Matthew Fettke761e2e92008-02-04 15:38:20 -0600216#endif
217#endif /* CONFIG_M5275 */
218
TsiChungLiew0e81abc2007-08-15 19:38:15 -0500219#ifdef CONFIG_M5282
220#include <asm/immap_5282.h>
221#include <asm/m5282.h>
222
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200223#define CONFIG_SYS_FEC0_IOBASE (MMAP_FEC)
224#define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x40))
TsiChungLiew0e81abc2007-08-15 19:38:15 -0500225
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200226#define CONFIG_SYS_INTR_BASE (MMAP_INTC0)
227#define CONFIG_SYS_NUM_IRQS (128)
TsiChungLiew0e81abc2007-08-15 19:38:15 -0500228
229/* Timer */
230#ifdef CONFIG_MCFTMR
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200231#define CONFIG_SYS_UDELAY_BASE (MMAP_DTMR0)
232#define CONFIG_SYS_TMR_BASE (MMAP_DTMR3)
233#define CONFIG_SYS_TMRPND_REG (((volatile int0_t *)(CONFIG_SYS_INTR_BASE))->iprl0)
234#define CONFIG_SYS_TMRINTR_NO (INT0_LO_DTMR3)
235#define CONFIG_SYS_TMRINTR_MASK (1 << INT0_LO_DTMR3)
236#define CONFIG_SYS_TMRINTR_PEND (CONFIG_SYS_TMRINTR_MASK)
237#define CONFIG_SYS_TMRINTR_PRI (0x1E) /* Level must include inorder to work */
238#define CONFIG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8)
TsiChungLiew0e81abc2007-08-15 19:38:15 -0500239#endif
240#endif /* CONFIG_M5282 */
241
angelo@sysam.itbb4ba2c2015-02-12 01:40:00 +0100242#ifdef CONFIG_M5307
243#include <asm/immap_5307.h>
244#include <asm/m5307.h>
245
246#define CONFIG_SYS_UART_BASE (MMAP_UART0 + \
247 (CONFIG_SYS_UART_PORT * 0x40))
248#define CONFIG_SYS_INTR_BASE (MMAP_INTC)
249#define CONFIG_SYS_NUM_IRQS (64)
250
251/* Timer */
252#ifdef CONFIG_MCFTMR
253#define CONFIG_SYS_UDELAY_BASE (MMAP_DTMR0)
254#define CONFIG_SYS_TMR_BASE (MMAP_DTMR1)
255#define CONFIG_SYS_TMRPND_REG (((volatile intctrl_t *) \
256 (CONFIG_SYS_INTR_BASE))->ipr)
257#define CONFIG_SYS_TMRINTR_NO (31)
258#define CONFIG_SYS_TMRINTR_MASK (0x00000400)
259#define CONFIG_SYS_TMRINTR_PEND (CONFIG_SYS_TMRINTR_MASK)
260#define CONFIG_SYS_TMRINTR_PRI (MCFSIM_ICR_AUTOVEC | \
261 MCFSIM_ICR_LEVEL7 | MCFSIM_ICR_PRI3)
262#define CONFIG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8)
263#endif
264#endif /* CONFIG_M5307 */
265
TsiChung Liewe7e4fc82008-10-22 11:38:21 +0000266#if defined(CONFIG_MCF5301x)
267#include <asm/immap_5301x.h>
268#include <asm/m5301x.h>
269
270#define CONFIG_SYS_FEC0_IOBASE (MMAP_FEC0)
271#define CONFIG_SYS_FEC1_IOBASE (MMAP_FEC1)
272#define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x4000))
273
274#define CONFIG_SYS_MCFRTC_BASE (MMAP_RTC)
275
276/* Timer */
277#ifdef CONFIG_MCFTMR
278#define CONFIG_SYS_UDELAY_BASE (MMAP_DTMR0)
279#define CONFIG_SYS_TMR_BASE (MMAP_DTMR1)
280#define CONFIG_SYS_TMRPND_REG (((volatile int0_t *)(CONFIG_SYS_INTR_BASE))->iprh0)
281#define CONFIG_SYS_TMRINTR_NO (INT0_HI_DTMR1)
282#define CONFIG_SYS_TMRINTR_MASK (INTC_IPRH_INT33)
283#define CONFIG_SYS_TMRINTR_PEND (CONFIG_SYS_TMRINTR_MASK)
284#define CONFIG_SYS_TMRINTR_PRI (6)
285#define CONFIG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8)
286#endif
287
288#ifdef CONFIG_MCFPIT
289#define CONFIG_SYS_UDELAY_BASE (MMAP_PIT0)
290#define CONFIG_SYS_PIT_BASE (MMAP_PIT1)
291#define CONFIG_SYS_PIT_PRESCALE (6)
292#endif
293
294#define CONFIG_SYS_INTR_BASE (MMAP_INTC0)
295#define CONFIG_SYS_NUM_IRQS (128)
296#endif /* CONFIG_M5301x */
297
TsiChungLiew6f8a0a32008-01-14 17:23:08 -0600298#if defined(CONFIG_M5329) || defined(CONFIG_M5373)
TsiChungLiew2e0aeef2007-07-05 22:39:07 -0500299#include <asm/immap_5329.h>
300#include <asm/m5329.h>
301
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200302#define CONFIG_SYS_FEC0_IOBASE (MMAP_FEC)
303#define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x4000))
304#define CONFIG_SYS_MCFRTC_BASE (MMAP_RTC)
TsiChungLiew2e0aeef2007-07-05 22:39:07 -0500305
306/* Timer */
307#ifdef CONFIG_MCFTMR
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200308#define CONFIG_SYS_UDELAY_BASE (MMAP_DTMR0)
309#define CONFIG_SYS_TMR_BASE (MMAP_DTMR1)
310#define CONFIG_SYS_TMRPND_REG (((volatile int0_t *)(CONFIG_SYS_INTR_BASE))->iprh0)
311#define CONFIG_SYS_TMRINTR_NO (INT0_HI_DTMR1)
312#define CONFIG_SYS_TMRINTR_MASK (INTC_IPRH_INT33)
313#define CONFIG_SYS_TMRINTR_PEND (CONFIG_SYS_TMRINTR_MASK)
314#define CONFIG_SYS_TMRINTR_PRI (6)
315#define CONFIG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8)
TsiChungLiew2e0aeef2007-07-05 22:39:07 -0500316#endif
317
318#ifdef CONFIG_MCFPIT
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200319#define CONFIG_SYS_UDELAY_BASE (MMAP_PIT0)
320#define CONFIG_SYS_PIT_BASE (MMAP_PIT1)
321#define CONFIG_SYS_PIT_PRESCALE (6)
TsiChungLiew2e0aeef2007-07-05 22:39:07 -0500322#endif
323
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200324#define CONFIG_SYS_INTR_BASE (MMAP_INTC0)
325#define CONFIG_SYS_NUM_IRQS (128)
TsiChungLiew6f8a0a32008-01-14 17:23:08 -0600326#endif /* CONFIG_M5329 && CONFIG_M5373 */
Stefan Roesef1110122007-07-16 13:11:12 +0200327
Alison Wangfdc2fb12012-10-18 19:25:51 +0000328#if defined(CONFIG_M54418)
329#include <asm/immap_5441x.h>
330#include <asm/m5441x.h>
331
332#define CONFIG_SYS_FEC0_IOBASE (MMAP_FEC0)
333#define CONFIG_SYS_FEC1_IOBASE (MMAP_FEC1)
334
335#if (CONFIG_SYS_UART_PORT < 4)
336#define CONFIG_SYS_UART_BASE (MMAP_UART0 + \
337 (CONFIG_SYS_UART_PORT * 0x4000))
338#else
339#define CONFIG_SYS_UART_BASE (MMAP_UART4 + \
340 ((CONFIG_SYS_UART_PORT - 4) * 0x4000))
341#endif
342
343#define MMAP_DSPI MMAP_DSPI0
344#define CONFIG_SYS_MCFRTC_BASE (MMAP_RTC)
345
346/* Timer */
347#ifdef CONFIG_MCFTMR
348#define CONFIG_SYS_UDELAY_BASE (MMAP_DTMR0)
349#define CONFIG_SYS_TMR_BASE (MMAP_DTMR1)
350#define CONFIG_SYS_TMRPND_REG (((int0_t *)(CONFIG_SYS_INTR_BASE))->iprh0)
351#define CONFIG_SYS_TMRINTR_NO (INT0_HI_DTMR1)
352#define CONFIG_SYS_TMRINTR_MASK (INTC_IPRH_INT33)
353#define CONFIG_SYS_TMRINTR_PEND (CONFIG_SYS_TMRINTR_MASK)
354#define CONFIG_SYS_TMRINTR_PRI (6)
355#define CONFIG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8)
356#endif
357
358#ifdef CONFIG_MCFPIT
359#define CONFIG_SYS_UDELAY_BASE (MMAP_PIT0)
360#define CONFIG_SYS_PIT_BASE (MMAP_PIT1)
361#define CONFIG_SYS_PIT_PRESCALE (6)
362#endif
363
364#define CONFIG_SYS_INTR_BASE (MMAP_INTC0)
Angelo Dureghelloe2f93932018-02-04 21:13:12 +0100365#define CONFIG_SYS_NUM_IRQS (192)
Alison Wangfdc2fb12012-10-18 19:25:51 +0000366
367#endif /* CONFIG_M54418 */
368
TsiChung Liew3cdc00a2008-08-11 13:41:49 +0000369#if defined(CONFIG_M54451) || defined(CONFIG_M54455)
TsiChungLiewfc3ca3b2007-08-16 15:05:11 -0500370#include <asm/immap_5445x.h>
371#include <asm/m5445x.h>
372
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200373#define CONFIG_SYS_FEC0_IOBASE (MMAP_FEC0)
TsiChung Liew3cdc00a2008-08-11 13:41:49 +0000374#if defined(CONFIG_M54455EVB)
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200375#define CONFIG_SYS_FEC1_IOBASE (MMAP_FEC1)
TsiChung Liew3cdc00a2008-08-11 13:41:49 +0000376#endif
TsiChungLiewfc3ca3b2007-08-16 15:05:11 -0500377
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200378#define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x4000))
TsiChungLiewfc3ca3b2007-08-16 15:05:11 -0500379
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200380#define CONFIG_SYS_MCFRTC_BASE (MMAP_RTC)
TsiChungLiewfc3ca3b2007-08-16 15:05:11 -0500381
382/* Timer */
383#ifdef CONFIG_MCFTMR
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200384#define CONFIG_SYS_UDELAY_BASE (MMAP_DTMR0)
385#define CONFIG_SYS_TMR_BASE (MMAP_DTMR1)
386#define CONFIG_SYS_TMRPND_REG (((volatile int0_t *)(CONFIG_SYS_INTR_BASE))->iprh0)
387#define CONFIG_SYS_TMRINTR_NO (INT0_HI_DTMR1)
388#define CONFIG_SYS_TMRINTR_MASK (INTC_IPRH_INT33)
389#define CONFIG_SYS_TMRINTR_PEND (CONFIG_SYS_TMRINTR_MASK)
390#define CONFIG_SYS_TMRINTR_PRI (6)
391#define CONFIG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8)
TsiChungLiewfc3ca3b2007-08-16 15:05:11 -0500392#endif
393
394#ifdef CONFIG_MCFPIT
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200395#define CONFIG_SYS_UDELAY_BASE (MMAP_PIT0)
396#define CONFIG_SYS_PIT_BASE (MMAP_PIT1)
397#define CONFIG_SYS_PIT_PRESCALE (6)
TsiChungLiewfc3ca3b2007-08-16 15:05:11 -0500398#endif
399
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200400#define CONFIG_SYS_INTR_BASE (MMAP_INTC0)
401#define CONFIG_SYS_NUM_IRQS (128)
TsiChungLiewfc3ca3b2007-08-16 15:05:11 -0500402
403#ifdef CONFIG_PCI
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200404#define CONFIG_SYS_PCI_BAR0 (CONFIG_SYS_MBAR)
405#define CONFIG_SYS_PCI_BAR5 (CONFIG_SYS_SDRAM_BASE)
406#define CONFIG_SYS_PCI_TBATR0 (CONFIG_SYS_MBAR)
407#define CONFIG_SYS_PCI_TBATR5 (CONFIG_SYS_SDRAM_BASE)
TsiChungLiewfc3ca3b2007-08-16 15:05:11 -0500408#endif
TsiChung Liew3cdc00a2008-08-11 13:41:49 +0000409#endif /* CONFIG_M54451 || CONFIG_M54455 */
TsiChungLiewfc3ca3b2007-08-16 15:05:11 -0500410
TsiChungLiew471b2c62008-01-15 13:39:44 -0600411#ifdef CONFIG_M547x
412#include <asm/immap_547x_8x.h>
413#include <asm/m547x_8x.h>
414
415#ifdef CONFIG_FSLDMAFEC
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200416#define CONFIG_SYS_FEC0_IOBASE (MMAP_FEC0)
417#define CONFIG_SYS_FEC1_IOBASE (MMAP_FEC1)
TsiChungLiew471b2c62008-01-15 13:39:44 -0600418
419#define FEC0_RX_TASK 0
420#define FEC0_TX_TASK 1
421#define FEC0_RX_PRIORITY 6
422#define FEC0_TX_PRIORITY 7
423#define FEC0_RX_INIT 16
424#define FEC0_TX_INIT 17
425#define FEC1_RX_TASK 2
426#define FEC1_TX_TASK 3
427#define FEC1_RX_PRIORITY 6
428#define FEC1_TX_PRIORITY 7
429#define FEC1_RX_INIT 30
430#define FEC1_TX_INIT 31
431#endif
432
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200433#define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x100))
TsiChungLiew471b2c62008-01-15 13:39:44 -0600434
435#ifdef CONFIG_SLTTMR
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200436#define CONFIG_SYS_UDELAY_BASE (MMAP_SLT1)
437#define CONFIG_SYS_TMR_BASE (MMAP_SLT0)
438#define CONFIG_SYS_TMRPND_REG (((volatile int0_t *)(CONFIG_SYS_INTR_BASE))->iprh0)
439#define CONFIG_SYS_TMRINTR_NO (INT0_HI_SLT0)
440#define CONFIG_SYS_TMRINTR_MASK (INTC_IPRH_INT54)
441#define CONFIG_SYS_TMRINTR_PEND (CONFIG_SYS_TMRINTR_MASK)
442#define CONFIG_SYS_TMRINTR_PRI (0x1E)
443#define CONFIG_SYS_TIMER_PRESCALER (gd->bus_clk / 1000000)
TsiChungLiew471b2c62008-01-15 13:39:44 -0600444#endif
445
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200446#define CONFIG_SYS_INTR_BASE (MMAP_INTC0)
447#define CONFIG_SYS_NUM_IRQS (128)
TsiChungLiew471b2c62008-01-15 13:39:44 -0600448
449#ifdef CONFIG_PCI
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200450#define CONFIG_SYS_PCI_BAR0 (0x40000000)
451#define CONFIG_SYS_PCI_BAR1 (CONFIG_SYS_SDRAM_BASE)
452#define CONFIG_SYS_PCI_TBATR0 (CONFIG_SYS_MBAR)
453#define CONFIG_SYS_PCI_TBATR1 (CONFIG_SYS_SDRAM_BASE)
TsiChungLiew471b2c62008-01-15 13:39:44 -0600454#endif
455#endif /* CONFIG_M547x */
456
457#ifdef CONFIG_M548x
458#include <asm/immap_547x_8x.h>
459#include <asm/m547x_8x.h>
460
461#ifdef CONFIG_FSLDMAFEC
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200462#define CONFIG_SYS_FEC0_IOBASE (MMAP_FEC0)
463#define CONFIG_SYS_FEC1_IOBASE (MMAP_FEC1)
TsiChungLiew471b2c62008-01-15 13:39:44 -0600464
465#define FEC0_RX_TASK 0
466#define FEC0_TX_TASK 1
467#define FEC0_RX_PRIORITY 6
468#define FEC0_TX_PRIORITY 7
469#define FEC0_RX_INIT 16
470#define FEC0_TX_INIT 17
471#define FEC1_RX_TASK 2
472#define FEC1_TX_TASK 3
473#define FEC1_RX_PRIORITY 6
474#define FEC1_TX_PRIORITY 7
475#define FEC1_RX_INIT 30
476#define FEC1_TX_INIT 31
477#endif
478
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200479#define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x100))
TsiChungLiew471b2c62008-01-15 13:39:44 -0600480
481/* Timer */
482#ifdef CONFIG_SLTTMR
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200483#define CONFIG_SYS_UDELAY_BASE (MMAP_SLT1)
484#define CONFIG_SYS_TMR_BASE (MMAP_SLT0)
485#define CONFIG_SYS_TMRPND_REG (((volatile int0_t *)(CONFIG_SYS_INTR_BASE))->iprh0)
486#define CONFIG_SYS_TMRINTR_NO (INT0_HI_SLT0)
487#define CONFIG_SYS_TMRINTR_MASK (INTC_IPRH_INT54)
488#define CONFIG_SYS_TMRINTR_PEND (CONFIG_SYS_TMRINTR_MASK)
489#define CONFIG_SYS_TMRINTR_PRI (0x1E)
490#define CONFIG_SYS_TIMER_PRESCALER (gd->bus_clk / 1000000)
TsiChungLiew471b2c62008-01-15 13:39:44 -0600491#endif
492
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200493#define CONFIG_SYS_INTR_BASE (MMAP_INTC0)
494#define CONFIG_SYS_NUM_IRQS (128)
TsiChungLiew471b2c62008-01-15 13:39:44 -0600495
496#ifdef CONFIG_PCI
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200497#define CONFIG_SYS_PCI_BAR0 (CONFIG_SYS_MBAR)
498#define CONFIG_SYS_PCI_BAR1 (CONFIG_SYS_SDRAM_BASE)
499#define CONFIG_SYS_PCI_TBATR0 (CONFIG_SYS_MBAR)
500#define CONFIG_SYS_PCI_TBATR1 (CONFIG_SYS_SDRAM_BASE)
TsiChungLiew471b2c62008-01-15 13:39:44 -0600501#endif
502#endif /* CONFIG_M548x */
503
TsiChungLiew2e0aeef2007-07-05 22:39:07 -0500504#endif /* __IMMAP_H */