TsiChungLiew | 2e0aeef | 2007-07-05 22:39:07 -0500 | [diff] [blame] | 1 | /* |
| 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 Roese | f111012 | 2007-07-16 13:11:12 +0200 | [diff] [blame] | 28 | |
TsiChungLiew | 99b037a | 2008-01-14 17:43:33 -0600 | [diff] [blame] | 29 | #ifdef CONFIG_M52277 |
| 30 | #include <asm/immap_5227x.h> |
| 31 | #include <asm/m5227x.h> |
| 32 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 33 | #define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x4000)) |
TsiChungLiew | 99b037a | 2008-01-14 17:43:33 -0600 | [diff] [blame] | 34 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 35 | #define CONFIG_SYS_MCFRTC_BASE (MMAP_RTC) |
TsiChungLiew | 99b037a | 2008-01-14 17:43:33 -0600 | [diff] [blame] | 36 | |
| 37 | #ifdef CONFIG_LCD |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 38 | #define CONFIG_SYS_LCD_BASE (MMAP_LCD) |
TsiChungLiew | 99b037a | 2008-01-14 17:43:33 -0600 | [diff] [blame] | 39 | #endif |
| 40 | |
| 41 | /* Timer */ |
| 42 | #ifdef CONFIG_MCFTMR |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 43 | #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) |
TsiChungLiew | 99b037a | 2008-01-14 17:43:33 -0600 | [diff] [blame] | 51 | #endif |
| 52 | |
| 53 | #ifdef CONFIG_MCFPIT |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 54 | #define CONFIG_SYS_UDELAY_BASE (MMAP_PIT0) |
| 55 | #define CONFIG_SYS_PIT_BASE (MMAP_PIT1) |
| 56 | #define CONFIG_SYS_PIT_PRESCALE (6) |
TsiChungLiew | 99b037a | 2008-01-14 17:43:33 -0600 | [diff] [blame] | 57 | #endif |
| 58 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 59 | #define CONFIG_SYS_INTR_BASE (MMAP_INTC0) |
| 60 | #define CONFIG_SYS_NUM_IRQS (128) |
TsiChungLiew | 99b037a | 2008-01-14 17:43:33 -0600 | [diff] [blame] | 61 | #endif /* CONFIG_M52277 */ |
| 62 | |
TsiChungLiew | b859ef1 | 2007-08-16 19:23:50 -0500 | [diff] [blame] | 63 | #ifdef CONFIG_M5235 |
| 64 | #include <asm/immap_5235.h> |
| 65 | #include <asm/m5235.h> |
| 66 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 67 | #define CONFIG_SYS_FEC0_IOBASE (MMAP_FEC) |
| 68 | #define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x40)) |
TsiChungLiew | b859ef1 | 2007-08-16 19:23:50 -0500 | [diff] [blame] | 69 | |
| 70 | /* Timer */ |
| 71 | #ifdef CONFIG_MCFTMR |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 72 | #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) |
TsiChungLiew | b859ef1 | 2007-08-16 19:23:50 -0500 | [diff] [blame] | 80 | #endif |
| 81 | |
| 82 | #ifdef CONFIG_MCFPIT |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 83 | #define CONFIG_SYS_UDELAY_BASE (MMAP_PIT0) |
| 84 | #define CONFIG_SYS_PIT_BASE (MMAP_PIT1) |
| 85 | #define CONFIG_SYS_PIT_PRESCALE (6) |
TsiChungLiew | b859ef1 | 2007-08-16 19:23:50 -0500 | [diff] [blame] | 86 | #endif |
| 87 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 88 | #define CONFIG_SYS_INTR_BASE (MMAP_INTC0) |
| 89 | #define CONFIG_SYS_NUM_IRQS (128) |
TsiChungLiew | b859ef1 | 2007-08-16 19:23:50 -0500 | [diff] [blame] | 90 | #endif /* CONFIG_M5235 */ |
| 91 | |
TsiChungLiew | 0e81abc | 2007-08-15 19:38:15 -0500 | [diff] [blame] | 92 | #ifdef CONFIG_M5249 |
| 93 | #include <asm/immap_5249.h> |
| 94 | #include <asm/m5249.h> |
| 95 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 96 | #define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x40)) |
TsiChungLiew | 0e81abc | 2007-08-15 19:38:15 -0500 | [diff] [blame] | 97 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 98 | #define CONFIG_SYS_INTR_BASE (MMAP_INTC) |
| 99 | #define CONFIG_SYS_NUM_IRQS (64) |
TsiChungLiew | 0e81abc | 2007-08-15 19:38:15 -0500 | [diff] [blame] | 100 | |
| 101 | /* Timer */ |
| 102 | #ifdef CONFIG_MCFTMR |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 103 | #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) |
TsiChungLiew | 0e81abc | 2007-08-15 19:38:15 -0500 | [diff] [blame] | 111 | #endif |
| 112 | #endif /* CONFIG_M5249 */ |
| 113 | |
TsiChungLiew | 3467469 | 2007-08-16 13:20:50 -0500 | [diff] [blame] | 114 | #ifdef CONFIG_M5253 |
| 115 | #include <asm/immap_5253.h> |
| 116 | #include <asm/m5249.h> |
| 117 | #include <asm/m5253.h> |
| 118 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 119 | #define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x40)) |
TsiChungLiew | 3467469 | 2007-08-16 13:20:50 -0500 | [diff] [blame] | 120 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 121 | #define CONFIG_SYS_INTR_BASE (MMAP_INTC) |
| 122 | #define CONFIG_SYS_NUM_IRQS (64) |
TsiChungLiew | 3467469 | 2007-08-16 13:20:50 -0500 | [diff] [blame] | 123 | |
| 124 | /* Timer */ |
| 125 | #ifdef CONFIG_MCFTMR |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 126 | #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) |
TsiChungLiew | 3467469 | 2007-08-16 13:20:50 -0500 | [diff] [blame] | 134 | #endif |
| 135 | #endif /* CONFIG_M5253 */ |
| 136 | |
TsiChungLiew | 0e81abc | 2007-08-15 19:38:15 -0500 | [diff] [blame] | 137 | #ifdef CONFIG_M5271 |
| 138 | #include <asm/immap_5271.h> |
| 139 | #include <asm/m5271.h> |
| 140 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 141 | #define CONFIG_SYS_FEC0_IOBASE (MMAP_FEC) |
| 142 | #define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x40)) |
TsiChungLiew | 0e81abc | 2007-08-15 19:38:15 -0500 | [diff] [blame] | 143 | |
| 144 | /* Timer */ |
| 145 | #ifdef CONFIG_MCFTMR |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 146 | #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) |
Richard Retanubun | 0dd9431 | 2009-03-26 15:26:01 -0400 | [diff] [blame] | 152 | #define CONFIG_SYS_TMRINTR_PRI (0x1E) /* Interrupt level 3, priority 6 */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 153 | #define CONFIG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8) |
TsiChungLiew | 0e81abc | 2007-08-15 19:38:15 -0500 | [diff] [blame] | 154 | #endif |
| 155 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 156 | #define CONFIG_SYS_INTR_BASE (MMAP_INTC0) |
| 157 | #define CONFIG_SYS_NUM_IRQS (128) |
TsiChungLiew | 0e81abc | 2007-08-15 19:38:15 -0500 | [diff] [blame] | 158 | #endif /* CONFIG_M5271 */ |
| 159 | |
| 160 | #ifdef CONFIG_M5272 |
| 161 | #include <asm/immap_5272.h> |
| 162 | #include <asm/m5272.h> |
| 163 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 164 | #define CONFIG_SYS_FEC0_IOBASE (MMAP_FEC) |
| 165 | #define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x40)) |
TsiChungLiew | 0e81abc | 2007-08-15 19:38:15 -0500 | [diff] [blame] | 166 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 167 | #define CONFIG_SYS_INTR_BASE (MMAP_INTC) |
| 168 | #define CONFIG_SYS_NUM_IRQS (64) |
TsiChungLiew | 0e81abc | 2007-08-15 19:38:15 -0500 | [diff] [blame] | 169 | |
| 170 | /* Timer */ |
| 171 | #ifdef CONFIG_MCFTMR |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 172 | #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) |
TsiChungLiew | 0e81abc | 2007-08-15 19:38:15 -0500 | [diff] [blame] | 180 | #endif |
| 181 | #endif /* CONFIG_M5272 */ |
| 182 | |
Matthew Fettke | 761e2e9 | 2008-02-04 15:38:20 -0600 | [diff] [blame] | 183 | #ifdef CONFIG_M5275 |
| 184 | #include <asm/immap_5275.h> |
| 185 | #include <asm/m5275.h> |
| 186 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 187 | #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 Fettke | 761e2e9 | 2008-02-04 15:38:20 -0600 | [diff] [blame] | 190 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 191 | #define CONFIG_SYS_INTR_BASE (MMAP_INTC0) |
| 192 | #define CONFIG_SYS_NUM_IRQS (192) |
Matthew Fettke | 761e2e9 | 2008-02-04 15:38:20 -0600 | [diff] [blame] | 193 | |
| 194 | /* Timer */ |
| 195 | #ifdef CONFIG_MCFTMR |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 196 | #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 Fettke | 761e2e9 | 2008-02-04 15:38:20 -0600 | [diff] [blame] | 204 | #endif |
| 205 | #endif /* CONFIG_M5275 */ |
| 206 | |
TsiChungLiew | 0e81abc | 2007-08-15 19:38:15 -0500 | [diff] [blame] | 207 | #ifdef CONFIG_M5282 |
| 208 | #include <asm/immap_5282.h> |
| 209 | #include <asm/m5282.h> |
| 210 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 211 | #define CONFIG_SYS_FEC0_IOBASE (MMAP_FEC) |
| 212 | #define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x40)) |
TsiChungLiew | 0e81abc | 2007-08-15 19:38:15 -0500 | [diff] [blame] | 213 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 214 | #define CONFIG_SYS_INTR_BASE (MMAP_INTC0) |
| 215 | #define CONFIG_SYS_NUM_IRQS (128) |
TsiChungLiew | 0e81abc | 2007-08-15 19:38:15 -0500 | [diff] [blame] | 216 | |
| 217 | /* Timer */ |
| 218 | #ifdef CONFIG_MCFTMR |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 219 | #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) |
TsiChungLiew | 0e81abc | 2007-08-15 19:38:15 -0500 | [diff] [blame] | 227 | #endif |
| 228 | #endif /* CONFIG_M5282 */ |
| 229 | |
TsiChung Liew | e7e4fc8 | 2008-10-22 11:38:21 +0000 | [diff] [blame] | 230 | #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 | |
TsiChungLiew | 6f8a0a3 | 2008-01-14 17:23:08 -0600 | [diff] [blame] | 262 | #if defined(CONFIG_M5329) || defined(CONFIG_M5373) |
TsiChungLiew | 2e0aeef | 2007-07-05 22:39:07 -0500 | [diff] [blame] | 263 | #include <asm/immap_5329.h> |
| 264 | #include <asm/m5329.h> |
| 265 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 266 | #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) |
TsiChungLiew | 2e0aeef | 2007-07-05 22:39:07 -0500 | [diff] [blame] | 269 | |
| 270 | /* Timer */ |
| 271 | #ifdef CONFIG_MCFTMR |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 272 | #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) |
TsiChungLiew | 2e0aeef | 2007-07-05 22:39:07 -0500 | [diff] [blame] | 280 | #endif |
| 281 | |
| 282 | #ifdef CONFIG_MCFPIT |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 283 | #define CONFIG_SYS_UDELAY_BASE (MMAP_PIT0) |
| 284 | #define CONFIG_SYS_PIT_BASE (MMAP_PIT1) |
| 285 | #define CONFIG_SYS_PIT_PRESCALE (6) |
TsiChungLiew | 2e0aeef | 2007-07-05 22:39:07 -0500 | [diff] [blame] | 286 | #endif |
| 287 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 288 | #define CONFIG_SYS_INTR_BASE (MMAP_INTC0) |
| 289 | #define CONFIG_SYS_NUM_IRQS (128) |
TsiChungLiew | 6f8a0a3 | 2008-01-14 17:23:08 -0600 | [diff] [blame] | 290 | #endif /* CONFIG_M5329 && CONFIG_M5373 */ |
Stefan Roese | f111012 | 2007-07-16 13:11:12 +0200 | [diff] [blame] | 291 | |
TsiChung Liew | 3cdc00a | 2008-08-11 13:41:49 +0000 | [diff] [blame] | 292 | #if defined(CONFIG_M54451) || defined(CONFIG_M54455) |
TsiChungLiew | fc3ca3b | 2007-08-16 15:05:11 -0500 | [diff] [blame] | 293 | #include <asm/immap_5445x.h> |
| 294 | #include <asm/m5445x.h> |
| 295 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 296 | #define CONFIG_SYS_FEC0_IOBASE (MMAP_FEC0) |
TsiChung Liew | 3cdc00a | 2008-08-11 13:41:49 +0000 | [diff] [blame] | 297 | #if defined(CONFIG_M54455EVB) |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 298 | #define CONFIG_SYS_FEC1_IOBASE (MMAP_FEC1) |
TsiChung Liew | 3cdc00a | 2008-08-11 13:41:49 +0000 | [diff] [blame] | 299 | #endif |
TsiChungLiew | fc3ca3b | 2007-08-16 15:05:11 -0500 | [diff] [blame] | 300 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 301 | #define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x4000)) |
TsiChungLiew | fc3ca3b | 2007-08-16 15:05:11 -0500 | [diff] [blame] | 302 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 303 | #define CONFIG_SYS_MCFRTC_BASE (MMAP_RTC) |
TsiChungLiew | fc3ca3b | 2007-08-16 15:05:11 -0500 | [diff] [blame] | 304 | |
| 305 | /* Timer */ |
| 306 | #ifdef CONFIG_MCFTMR |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 307 | #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) |
TsiChungLiew | fc3ca3b | 2007-08-16 15:05:11 -0500 | [diff] [blame] | 315 | #endif |
| 316 | |
| 317 | #ifdef CONFIG_MCFPIT |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 318 | #define CONFIG_SYS_UDELAY_BASE (MMAP_PIT0) |
| 319 | #define CONFIG_SYS_PIT_BASE (MMAP_PIT1) |
| 320 | #define CONFIG_SYS_PIT_PRESCALE (6) |
TsiChungLiew | fc3ca3b | 2007-08-16 15:05:11 -0500 | [diff] [blame] | 321 | #endif |
| 322 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 323 | #define CONFIG_SYS_INTR_BASE (MMAP_INTC0) |
| 324 | #define CONFIG_SYS_NUM_IRQS (128) |
TsiChungLiew | fc3ca3b | 2007-08-16 15:05:11 -0500 | [diff] [blame] | 325 | |
| 326 | #ifdef CONFIG_PCI |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 327 | #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) |
TsiChungLiew | fc3ca3b | 2007-08-16 15:05:11 -0500 | [diff] [blame] | 331 | #endif |
TsiChung Liew | 3cdc00a | 2008-08-11 13:41:49 +0000 | [diff] [blame] | 332 | #endif /* CONFIG_M54451 || CONFIG_M54455 */ |
TsiChungLiew | fc3ca3b | 2007-08-16 15:05:11 -0500 | [diff] [blame] | 333 | |
TsiChungLiew | 471b2c6 | 2008-01-15 13:39:44 -0600 | [diff] [blame] | 334 | #ifdef CONFIG_M547x |
| 335 | #include <asm/immap_547x_8x.h> |
| 336 | #include <asm/m547x_8x.h> |
| 337 | |
| 338 | #ifdef CONFIG_FSLDMAFEC |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 339 | #define CONFIG_SYS_FEC0_IOBASE (MMAP_FEC0) |
| 340 | #define CONFIG_SYS_FEC1_IOBASE (MMAP_FEC1) |
TsiChungLiew | 471b2c6 | 2008-01-15 13:39:44 -0600 | [diff] [blame] | 341 | |
| 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-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 356 | #define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x100)) |
TsiChungLiew | 471b2c6 | 2008-01-15 13:39:44 -0600 | [diff] [blame] | 357 | |
| 358 | #ifdef CONFIG_SLTTMR |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 359 | #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) |
TsiChungLiew | 471b2c6 | 2008-01-15 13:39:44 -0600 | [diff] [blame] | 367 | #endif |
| 368 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 369 | #define CONFIG_SYS_INTR_BASE (MMAP_INTC0) |
| 370 | #define CONFIG_SYS_NUM_IRQS (128) |
TsiChungLiew | 471b2c6 | 2008-01-15 13:39:44 -0600 | [diff] [blame] | 371 | |
| 372 | #ifdef CONFIG_PCI |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 373 | #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) |
TsiChungLiew | 471b2c6 | 2008-01-15 13:39:44 -0600 | [diff] [blame] | 377 | #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-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 385 | #define CONFIG_SYS_FEC0_IOBASE (MMAP_FEC0) |
| 386 | #define CONFIG_SYS_FEC1_IOBASE (MMAP_FEC1) |
TsiChungLiew | 471b2c6 | 2008-01-15 13:39:44 -0600 | [diff] [blame] | 387 | |
| 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-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 402 | #define CONFIG_SYS_UART_BASE (MMAP_UART0 + (CONFIG_SYS_UART_PORT * 0x100)) |
TsiChungLiew | 471b2c6 | 2008-01-15 13:39:44 -0600 | [diff] [blame] | 403 | |
| 404 | /* Timer */ |
| 405 | #ifdef CONFIG_SLTTMR |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 406 | #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) |
TsiChungLiew | 471b2c6 | 2008-01-15 13:39:44 -0600 | [diff] [blame] | 414 | #endif |
| 415 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 416 | #define CONFIG_SYS_INTR_BASE (MMAP_INTC0) |
| 417 | #define CONFIG_SYS_NUM_IRQS (128) |
TsiChungLiew | 471b2c6 | 2008-01-15 13:39:44 -0600 | [diff] [blame] | 418 | |
| 419 | #ifdef CONFIG_PCI |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 420 | #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) |
TsiChungLiew | 471b2c6 | 2008-01-15 13:39:44 -0600 | [diff] [blame] | 424 | #endif |
| 425 | #endif /* CONFIG_M548x */ |
| 426 | |
TsiChungLiew | 2e0aeef | 2007-07-05 22:39:07 -0500 | [diff] [blame] | 427 | #endif /* __IMMAP_H */ |