blob: f2eb6fcb463b04bcdb1787ce81d81c950ed0ed47 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
TsiChungLiew48dbfea2007-07-05 22:39:07 -05002/*
3 * ColdFire Internal Memory Map and Defines
4 *
Alison Wang45370e12012-10-18 19:25:51 +00005 * Copyright 2004-2012 Freescale Semiconductor, Inc.
TsiChungLiew48dbfea2007-07-05 22:39:07 -05006 * TsiChung Liew (Tsi-Chung.Liew@freescale.com)
TsiChungLiew48dbfea2007-07-05 22:39:07 -05007 */
8
9#ifndef __IMMAP_H
10#define __IMMAP_H
Stefan Roesec883f6e2007-07-16 13:11:12 +020011
TsiChung Liewbf9a5212009-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
TsiChung Liewbf9a5212009-06-12 11:29:00 +000031#define CONFIG_SYS_INTR_BASE (MMAP_INTC0)
32#define CONFIG_SYS_NUM_IRQS (128)
33#endif /* CONFIG_M520x */
34
TsiChungLiew4a442d32007-08-16 19:23:50 -050035#ifdef CONFIG_M5235
36#include <asm/immap_5235.h>
37#include <asm/m5235.h>
38
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +020039#define CONFIG_SYS_FEC0_IOBASE (MMAP_FEC)
40#define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x40))
TsiChungLiew4a442d32007-08-16 19:23:50 -050041
42/* Timer */
43#ifdef CONFIG_MCFTMR
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +020044#define CONFIG_SYS_UDELAY_BASE (MMAP_DTMR0)
45#define CONFIG_SYS_TMR_BASE (MMAP_DTMR3)
46#define CONFIG_SYS_TMRPND_REG (((volatile int0_t *)(CONFIG_SYS_INTR_BASE))->iprl0)
47#define CONFIG_SYS_TMRINTR_NO (INT0_LO_DTMR3)
48#define CONFIG_SYS_TMRINTR_MASK (INTC_IPRL_INT22)
49#define CONFIG_SYS_TMRINTR_PEND (CONFIG_SYS_TMRINTR_MASK)
50#define CONFIG_SYS_TMRINTR_PRI (0x1E) /* Level must include inorder to work */
51#define CONFIG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8)
TsiChungLiew4a442d32007-08-16 19:23:50 -050052#endif
53
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +020054#define CONFIG_SYS_INTR_BASE (MMAP_INTC0)
55#define CONFIG_SYS_NUM_IRQS (128)
TsiChungLiew4a442d32007-08-16 19:23:50 -050056#endif /* CONFIG_M5235 */
57
TsiChungLiew56115662007-08-15 19:38:15 -050058#ifdef CONFIG_M5249
59#include <asm/immap_5249.h>
60#include <asm/m5249.h>
61
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +020062#define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x40))
TsiChungLiew56115662007-08-15 19:38:15 -050063
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +020064#define CONFIG_SYS_INTR_BASE (MMAP_INTC)
65#define CONFIG_SYS_NUM_IRQS (64)
TsiChungLiew56115662007-08-15 19:38:15 -050066
67/* Timer */
68#ifdef CONFIG_MCFTMR
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +020069#define CONFIG_SYS_UDELAY_BASE (MMAP_DTMR0)
70#define CONFIG_SYS_TMR_BASE (MMAP_DTMR1)
71#define CONFIG_SYS_TMRPND_REG (mbar_readLong(MCFSIM_IPR))
72#define CONFIG_SYS_TMRINTR_NO (31)
73#define CONFIG_SYS_TMRINTR_MASK (0x00000400)
74#define CONFIG_SYS_TMRINTR_PEND (CONFIG_SYS_TMRINTR_MASK)
75#define CONFIG_SYS_TMRINTR_PRI (MCFSIM_ICR_AUTOVEC | MCFSIM_ICR_LEVEL7 | MCFSIM_ICR_PRI3)
76#define CONFIG_SYS_TIMER_PRESCALER (((gd->bus_clk / 2000000) - 1) << 8)
TsiChungLiew56115662007-08-15 19:38:15 -050077#endif
78#endif /* CONFIG_M5249 */
79
TsiChungLiewa1436a82007-08-16 13:20:50 -050080#ifdef CONFIG_M5253
81#include <asm/immap_5253.h>
82#include <asm/m5249.h>
83#include <asm/m5253.h>
84
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +020085#define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x40))
TsiChungLiewa1436a82007-08-16 13:20:50 -050086
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +020087#define CONFIG_SYS_INTR_BASE (MMAP_INTC)
88#define CONFIG_SYS_NUM_IRQS (64)
TsiChungLiewa1436a82007-08-16 13:20:50 -050089
90/* Timer */
91#ifdef CONFIG_MCFTMR
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +020092#define CONFIG_SYS_UDELAY_BASE (MMAP_DTMR0)
93#define CONFIG_SYS_TMR_BASE (MMAP_DTMR1)
94#define CONFIG_SYS_TMRPND_REG (mbar_readLong(MCFSIM_IPR))
95#define CONFIG_SYS_TMRINTR_NO (27)
96#define CONFIG_SYS_TMRINTR_MASK (0x00000400)
97#define CONFIG_SYS_TMRINTR_PEND (CONFIG_SYS_TMRINTR_MASK)
98#define CONFIG_SYS_TMRINTR_PRI (MCFSIM_ICR_AUTOVEC | MCFSIM_ICR_LEVEL3 | MCFSIM_ICR_PRI3)
99#define CONFIG_SYS_TIMER_PRESCALER (((gd->bus_clk / 2000000) - 1) << 8)
TsiChungLiewa1436a82007-08-16 13:20:50 -0500100#endif
101#endif /* CONFIG_M5253 */
102
TsiChungLiew56115662007-08-15 19:38:15 -0500103#ifdef CONFIG_M5271
104#include <asm/immap_5271.h>
105#include <asm/m5271.h>
106
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200107#define CONFIG_SYS_FEC0_IOBASE (MMAP_FEC)
108#define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x40))
TsiChungLiew56115662007-08-15 19:38:15 -0500109
110/* Timer */
111#ifdef CONFIG_MCFTMR
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200112#define CONFIG_SYS_UDELAY_BASE (MMAP_DTMR0)
113#define CONFIG_SYS_TMR_BASE (MMAP_DTMR3)
114#define CONFIG_SYS_TMRPND_REG (((volatile int0_t *)(CONFIG_SYS_INTR_BASE))->iprl0)
115#define CONFIG_SYS_TMRINTR_NO (INT0_LO_DTMR3)
116#define CONFIG_SYS_TMRINTR_MASK (INTC_IPRL_INT22)
117#define CONFIG_SYS_TMRINTR_PEND (CONFIG_SYS_TMRINTR_MASK)
Richard Retanubun59272622009-03-26 15:26:01 -0400118#define CONFIG_SYS_TMRINTR_PRI (0x1E) /* Interrupt level 3, priority 6 */
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200119#define CONFIG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8)
TsiChungLiew56115662007-08-15 19:38:15 -0500120#endif
121
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200122#define CONFIG_SYS_INTR_BASE (MMAP_INTC0)
123#define CONFIG_SYS_NUM_IRQS (128)
TsiChungLiew56115662007-08-15 19:38:15 -0500124#endif /* CONFIG_M5271 */
125
126#ifdef CONFIG_M5272
127#include <asm/immap_5272.h>
128#include <asm/m5272.h>
129
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200130#define CONFIG_SYS_FEC0_IOBASE (MMAP_FEC)
131#define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x40))
TsiChungLiew56115662007-08-15 19:38:15 -0500132
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200133#define CONFIG_SYS_INTR_BASE (MMAP_INTC)
134#define CONFIG_SYS_NUM_IRQS (64)
TsiChungLiew56115662007-08-15 19:38:15 -0500135
136/* Timer */
137#ifdef CONFIG_MCFTMR
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200138#define CONFIG_SYS_UDELAY_BASE (MMAP_TMR0)
139#define CONFIG_SYS_TMR_BASE (MMAP_TMR3)
140#define CONFIG_SYS_TMRPND_REG (((volatile intctrl_t *)(CONFIG_SYS_INTR_BASE))->int_isr)
141#define CONFIG_SYS_TMRINTR_NO (INT_TMR3)
142#define CONFIG_SYS_TMRINTR_MASK (INT_ISR_INT24)
143#define CONFIG_SYS_TMRINTR_PEND (0)
144#define CONFIG_SYS_TMRINTR_PRI (INT_ICR1_TMR3PI | INT_ICR1_TMR3IPL(5))
145#define CONFIG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8)
TsiChungLiew56115662007-08-15 19:38:15 -0500146#endif
147#endif /* CONFIG_M5272 */
148
Matthew Fettkef71d9d92008-02-04 15:38:20 -0600149#ifdef CONFIG_M5275
150#include <asm/immap_5275.h>
151#include <asm/m5275.h>
152
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200153#define CONFIG_SYS_FEC0_IOBASE (MMAP_FEC0)
154#define CONFIG_SYS_FEC1_IOBASE (MMAP_FEC1)
155#define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x40))
Matthew Fettkef71d9d92008-02-04 15:38:20 -0600156
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200157#define CONFIG_SYS_INTR_BASE (MMAP_INTC0)
158#define CONFIG_SYS_NUM_IRQS (192)
Matthew Fettkef71d9d92008-02-04 15:38:20 -0600159
160/* Timer */
161#ifdef CONFIG_MCFTMR
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200162#define CONFIG_SYS_UDELAY_BASE (MMAP_DTMR0)
163#define CONFIG_SYS_TMR_BASE (MMAP_DTMR3)
164#define CONFIG_SYS_TMRPND_REG (((volatile int0_t *)(CONFIG_SYS_INTR_BASE))->iprl0)
165#define CONFIG_SYS_TMRINTR_NO (INT0_LO_DTMR3)
166#define CONFIG_SYS_TMRINTR_MASK (INTC_IPRL_INT22)
167#define CONFIG_SYS_TMRINTR_PEND (CONFIG_SYS_TMRINTR_MASK)
168#define CONFIG_SYS_TMRINTR_PRI (0x1E)
169#define CONFIG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8)
Matthew Fettkef71d9d92008-02-04 15:38:20 -0600170#endif
171#endif /* CONFIG_M5275 */
172
TsiChungLiew56115662007-08-15 19:38:15 -0500173#ifdef CONFIG_M5282
174#include <asm/immap_5282.h>
175#include <asm/m5282.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_INTC0)
181#define CONFIG_SYS_NUM_IRQS (128)
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_DTMR0)
186#define CONFIG_SYS_TMR_BASE (MMAP_DTMR3)
187#define CONFIG_SYS_TMRPND_REG (((volatile int0_t *)(CONFIG_SYS_INTR_BASE))->iprl0)
188#define CONFIG_SYS_TMRINTR_NO (INT0_LO_DTMR3)
189#define CONFIG_SYS_TMRINTR_MASK (1 << INT0_LO_DTMR3)
190#define CONFIG_SYS_TMRINTR_PEND (CONFIG_SYS_TMRINTR_MASK)
191#define CONFIG_SYS_TMRINTR_PRI (0x1E) /* Level must include inorder to work */
192#define CONFIG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8)
TsiChungLiew56115662007-08-15 19:38:15 -0500193#endif
194#endif /* CONFIG_M5282 */
195
angelo@sysam.ite77e65d2015-02-12 01:40:00 +0100196#ifdef CONFIG_M5307
197#include <asm/immap_5307.h>
198#include <asm/m5307.h>
199
200#define CONFIG_SYS_UART_BASE (MMAP_UART0 + \
201 (CONFIG_SYS_UART_PORT * 0x40))
202#define CONFIG_SYS_INTR_BASE (MMAP_INTC)
203#define CONFIG_SYS_NUM_IRQS (64)
204
205/* Timer */
206#ifdef CONFIG_MCFTMR
207#define CONFIG_SYS_UDELAY_BASE (MMAP_DTMR0)
208#define CONFIG_SYS_TMR_BASE (MMAP_DTMR1)
209#define CONFIG_SYS_TMRPND_REG (((volatile intctrl_t *) \
210 (CONFIG_SYS_INTR_BASE))->ipr)
211#define CONFIG_SYS_TMRINTR_NO (31)
212#define CONFIG_SYS_TMRINTR_MASK (0x00000400)
213#define CONFIG_SYS_TMRINTR_PEND (CONFIG_SYS_TMRINTR_MASK)
214#define CONFIG_SYS_TMRINTR_PRI (MCFSIM_ICR_AUTOVEC | \
215 MCFSIM_ICR_LEVEL7 | MCFSIM_ICR_PRI3)
216#define CONFIG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8)
217#endif
218#endif /* CONFIG_M5307 */
219
TsiChung Liew536e7da2008-10-22 11:38:21 +0000220#if defined(CONFIG_MCF5301x)
221#include <asm/immap_5301x.h>
222#include <asm/m5301x.h>
223
224#define CONFIG_SYS_FEC0_IOBASE (MMAP_FEC0)
225#define CONFIG_SYS_FEC1_IOBASE (MMAP_FEC1)
226#define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x4000))
227
TsiChung Liew536e7da2008-10-22 11:38:21 +0000228/* Timer */
229#ifdef CONFIG_MCFTMR
230#define CONFIG_SYS_UDELAY_BASE (MMAP_DTMR0)
231#define CONFIG_SYS_TMR_BASE (MMAP_DTMR1)
232#define CONFIG_SYS_TMRPND_REG (((volatile int0_t *)(CONFIG_SYS_INTR_BASE))->iprh0)
233#define CONFIG_SYS_TMRINTR_NO (INT0_HI_DTMR1)
234#define CONFIG_SYS_TMRINTR_MASK (INTC_IPRH_INT33)
235#define CONFIG_SYS_TMRINTR_PEND (CONFIG_SYS_TMRINTR_MASK)
236#define CONFIG_SYS_TMRINTR_PRI (6)
237#define CONFIG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8)
238#endif
239
TsiChung Liew536e7da2008-10-22 11:38:21 +0000240#define CONFIG_SYS_INTR_BASE (MMAP_INTC0)
241#define CONFIG_SYS_NUM_IRQS (128)
242#endif /* CONFIG_M5301x */
243
TsiChungLiewaa5f1f92008-01-14 17:23:08 -0600244#if defined(CONFIG_M5329) || defined(CONFIG_M5373)
TsiChungLiew48dbfea2007-07-05 22:39:07 -0500245#include <asm/immap_5329.h>
246#include <asm/m5329.h>
247
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200248#define CONFIG_SYS_FEC0_IOBASE (MMAP_FEC)
249#define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x4000))
TsiChungLiew48dbfea2007-07-05 22:39:07 -0500250
251/* Timer */
252#ifdef CONFIG_MCFTMR
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200253#define CONFIG_SYS_UDELAY_BASE (MMAP_DTMR0)
254#define CONFIG_SYS_TMR_BASE (MMAP_DTMR1)
255#define CONFIG_SYS_TMRPND_REG (((volatile int0_t *)(CONFIG_SYS_INTR_BASE))->iprh0)
256#define CONFIG_SYS_TMRINTR_NO (INT0_HI_DTMR1)
257#define CONFIG_SYS_TMRINTR_MASK (INTC_IPRH_INT33)
258#define CONFIG_SYS_TMRINTR_PEND (CONFIG_SYS_TMRINTR_MASK)
259#define CONFIG_SYS_TMRINTR_PRI (6)
260#define CONFIG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8)
TsiChungLiew48dbfea2007-07-05 22:39:07 -0500261#endif
262
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200263#define CONFIG_SYS_INTR_BASE (MMAP_INTC0)
264#define CONFIG_SYS_NUM_IRQS (128)
TsiChungLiewaa5f1f92008-01-14 17:23:08 -0600265#endif /* CONFIG_M5329 && CONFIG_M5373 */
Stefan Roesec883f6e2007-07-16 13:11:12 +0200266
Alison Wang45370e12012-10-18 19:25:51 +0000267#if defined(CONFIG_M54418)
268#include <asm/immap_5441x.h>
269#include <asm/m5441x.h>
270
271#define CONFIG_SYS_FEC0_IOBASE (MMAP_FEC0)
272#define CONFIG_SYS_FEC1_IOBASE (MMAP_FEC1)
273
274#if (CONFIG_SYS_UART_PORT < 4)
275#define CONFIG_SYS_UART_BASE (MMAP_UART0 + \
276 (CONFIG_SYS_UART_PORT * 0x4000))
277#else
278#define CONFIG_SYS_UART_BASE (MMAP_UART4 + \
279 ((CONFIG_SYS_UART_PORT - 4) * 0x4000))
280#endif
281
282#define MMAP_DSPI MMAP_DSPI0
Alison Wang45370e12012-10-18 19:25:51 +0000283
284/* Timer */
285#ifdef CONFIG_MCFTMR
286#define CONFIG_SYS_UDELAY_BASE (MMAP_DTMR0)
287#define CONFIG_SYS_TMR_BASE (MMAP_DTMR1)
288#define CONFIG_SYS_TMRPND_REG (((int0_t *)(CONFIG_SYS_INTR_BASE))->iprh0)
289#define CONFIG_SYS_TMRINTR_NO (INT0_HI_DTMR1)
290#define CONFIG_SYS_TMRINTR_MASK (INTC_IPRH_INT33)
291#define CONFIG_SYS_TMRINTR_PEND (CONFIG_SYS_TMRINTR_MASK)
292#define CONFIG_SYS_TMRINTR_PRI (6)
293#define CONFIG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8)
294#endif
295
Alison Wang45370e12012-10-18 19:25:51 +0000296#define CONFIG_SYS_INTR_BASE (MMAP_INTC0)
Angelo Dureghelloa1ed3a82018-02-04 21:13:12 +0100297#define CONFIG_SYS_NUM_IRQS (192)
Alison Wang45370e12012-10-18 19:25:51 +0000298
299#endif /* CONFIG_M54418 */
300
TsiChungLiew4621fc32008-01-15 13:39:44 -0600301#ifdef CONFIG_M547x
302#include <asm/immap_547x_8x.h>
303#include <asm/m547x_8x.h>
304
305#ifdef CONFIG_FSLDMAFEC
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200306#define CONFIG_SYS_FEC0_IOBASE (MMAP_FEC0)
307#define CONFIG_SYS_FEC1_IOBASE (MMAP_FEC1)
TsiChungLiew4621fc32008-01-15 13:39:44 -0600308
309#define FEC0_RX_TASK 0
310#define FEC0_TX_TASK 1
311#define FEC0_RX_PRIORITY 6
312#define FEC0_TX_PRIORITY 7
313#define FEC0_RX_INIT 16
314#define FEC0_TX_INIT 17
315#define FEC1_RX_TASK 2
316#define FEC1_TX_TASK 3
317#define FEC1_RX_PRIORITY 6
318#define FEC1_TX_PRIORITY 7
319#define FEC1_RX_INIT 30
320#define FEC1_TX_INIT 31
321#endif
322
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200323#define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x100))
TsiChungLiew4621fc32008-01-15 13:39:44 -0600324
325#ifdef CONFIG_SLTTMR
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200326#define CONFIG_SYS_UDELAY_BASE (MMAP_SLT1)
327#define CONFIG_SYS_TMR_BASE (MMAP_SLT0)
328#define CONFIG_SYS_TMRPND_REG (((volatile int0_t *)(CONFIG_SYS_INTR_BASE))->iprh0)
329#define CONFIG_SYS_TMRINTR_NO (INT0_HI_SLT0)
330#define CONFIG_SYS_TMRINTR_MASK (INTC_IPRH_INT54)
331#define CONFIG_SYS_TMRINTR_PEND (CONFIG_SYS_TMRINTR_MASK)
332#define CONFIG_SYS_TMRINTR_PRI (0x1E)
333#define CONFIG_SYS_TIMER_PRESCALER (gd->bus_clk / 1000000)
TsiChungLiew4621fc32008-01-15 13:39:44 -0600334#endif
335
Jean-Christophe PLAGNIOL-VILLARD6d0f6bc2008-10-16 15:01:15 +0200336#define CONFIG_SYS_INTR_BASE (MMAP_INTC0)
337#define CONFIG_SYS_NUM_IRQS (128)
TsiChungLiew4621fc32008-01-15 13:39:44 -0600338
339#ifdef CONFIG_PCI
Tom Riniecc8d422022-11-16 13:10:33 -0500340#define CFG_SYS_PCI_BAR0 (0x40000000)
341#define CFG_SYS_PCI_BAR1 (CONFIG_SYS_SDRAM_BASE)
342#define CFG_SYS_PCI_TBATR0 (CONFIG_SYS_MBAR)
343#define CFG_SYS_PCI_TBATR1 (CONFIG_SYS_SDRAM_BASE)
TsiChungLiew4621fc32008-01-15 13:39:44 -0600344#endif
345#endif /* CONFIG_M547x */
346
TsiChungLiew48dbfea2007-07-05 22:39:07 -0500347#endif /* __IMMAP_H */