wdenk | e221174 | 2002-11-02 23:30:20 +0000 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2000 |
| 3 | * Sysgo Real-Time Solutions, GmbH <www.elinos.com> |
| 4 | * Marius Groeger <mgroeger@sysgo.de> |
| 5 | * |
| 6 | * Configuation settings for the MBX8xx board. |
| 7 | * |
| 8 | * ----------------------------------------------------------------- |
| 9 | * See file CREDITS for list of people who contributed to this |
| 10 | * project. |
| 11 | * |
| 12 | * This program is free software; you can redistribute it and/or |
| 13 | * modify it under the terms of the GNU General Public License as |
| 14 | * published by the Free Software Foundation; either version 2 of |
| 15 | * the License, or (at your option) any later version. |
| 16 | * |
| 17 | * This program is distributed in the hope that it will be useful, |
| 18 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 20 | * GNU General Public License for more details. |
| 21 | * |
| 22 | * You should have received a copy of the GNU General Public License |
| 23 | * along with this program; if not, write to the Free Software |
| 24 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, |
| 25 | * MA 02111-1307 USA |
| 26 | */ |
| 27 | /* |
| 28 | * Changed 2002-10-01 |
| 29 | * Added PCMCIA defines mostly taken from other U-Boot boards that |
| 30 | * have PCMCIA already working. If you find any bugs, incorrect assumptions |
| 31 | * feel free to fix them yourself and submit a patch. |
| 32 | * Rod Boyce <rod_boyce@stratexnet.com. |
| 33 | */ |
| 34 | /* |
| 35 | * board/config.h - configuration options, board specific |
| 36 | */ |
| 37 | |
| 38 | #ifndef __CONFIG_H |
| 39 | #define __CONFIG_H |
| 40 | |
| 41 | /* |
| 42 | * High Level Configuration Options |
| 43 | * (easy to change) |
| 44 | */ |
| 45 | |
| 46 | #define CONFIG_MPC860 1 /* This is a MPC860 CPU */ |
| 47 | #define CONFIG_MBX 1 /* ...on an MBX module */ |
| 48 | |
Wolfgang Denk | 2ae1824 | 2010-10-06 09:05:45 +0200 | [diff] [blame] | 49 | #define CONFIG_SYS_TEXT_BASE 0xfe000000 |
| 50 | |
wdenk | e221174 | 2002-11-02 23:30:20 +0000 | [diff] [blame] | 51 | #define CONFIG_8xx_CONS_SMC1 1 /* Console is on SMC1 */ |
| 52 | #undef CONFIG_8xx_CONS_SMC2 |
| 53 | #undef CONFIG_8xx_CONS_NONE |
| 54 | #define CONFIG_BAUDRATE 9600 |
| 55 | /* Define this to use the PCI bus */ |
| 56 | #undef CONFIG_USE_PCI |
| 57 | |
| 58 | #define CONFIG_CLOCKS_IN_MHZ 1 /* clocks passsed to Linux in MHz */ |
| 59 | #define CONFIG_8xx_GCLK_FREQ (50000000UL) |
| 60 | #if 1 |
| 61 | #define CONFIG_BOOTDELAY -1 /* autoboot disabled */ |
| 62 | #else |
| 63 | #define CONFIG_BOOTDELAY 5 /* autoboot after 5 seconds */ |
| 64 | #endif |
| 65 | #define CONFIG_BOOTCOMMAND "bootm 20000" /* autoboot command */ |
| 66 | |
| 67 | #define CONFIG_BOOTARGS "root=/dev/nfs rw " \ |
| 68 | "nfsroot=10.0.0.2:/opt/eldk/ppc_8xx " \ |
| 69 | "nfsaddrs=10.0.0.99:10.0.0.2" |
| 70 | |
| 71 | #define CONFIG_LOADS_ECHO 1 /* echo on for serial download */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 72 | #undef CONFIG_SYS_LOADS_BAUD_CHANGE /* don't allow baudrate change */ |
wdenk | e221174 | 2002-11-02 23:30:20 +0000 | [diff] [blame] | 73 | |
| 74 | #undef CONFIG_WATCHDOG /* watchdog disabled */ |
| 75 | |
Jon Loeliger | 8353e13 | 2007-07-08 14:14:17 -0500 | [diff] [blame] | 76 | |
| 77 | /* |
Jon Loeliger | 659e2f6 | 2007-07-10 09:10:49 -0500 | [diff] [blame] | 78 | * BOOTP options |
| 79 | */ |
| 80 | #define CONFIG_BOOTP_BOOTFILESIZE |
| 81 | #define CONFIG_BOOTP_BOOTPATH |
| 82 | #define CONFIG_BOOTP_GATEWAY |
| 83 | #define CONFIG_BOOTP_HOSTNAME |
| 84 | |
| 85 | |
| 86 | /* |
Jon Loeliger | 8353e13 | 2007-07-08 14:14:17 -0500 | [diff] [blame] | 87 | * Command line configuration. |
| 88 | */ |
| 89 | #define CONFIG_CMD_NET |
| 90 | #define CONFIG_CMD_DFL |
| 91 | #define CONFIG_CMD_SDRAM |
| 92 | #define CONFIG_CMD_PCMCIA |
| 93 | #define CONFIG_CMD_IDE |
| 94 | |
wdenk | e221174 | 2002-11-02 23:30:20 +0000 | [diff] [blame] | 95 | |
| 96 | #define CONFIG_DOS_PARTITION |
| 97 | |
wdenk | e221174 | 2002-11-02 23:30:20 +0000 | [diff] [blame] | 98 | /* |
| 99 | * Miscellaneous configurable options |
| 100 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 101 | #define CONFIG_SYS_LONGHELP /* undef to save memory */ |
| 102 | #define CONFIG_SYS_PROMPT "=> " /* Monitor Command Prompt */ |
| 103 | #undef CONFIG_SYS_HUSH_PARSER /* Hush parse for U-Boot */ |
| 104 | #ifdef CONFIG_SYS_HUSH_PARSER |
| 105 | #define CONFIG_SYS_PROMPT_HUSH_PS2 "> " |
wdenk | e221174 | 2002-11-02 23:30:20 +0000 | [diff] [blame] | 106 | #endif |
Jon Loeliger | 8353e13 | 2007-07-08 14:14:17 -0500 | [diff] [blame] | 107 | #if defined(CONFIG_CMD_KGDB) |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 108 | #define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buffer Size */ |
wdenk | e221174 | 2002-11-02 23:30:20 +0000 | [diff] [blame] | 109 | #else |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 110 | #define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */ |
wdenk | e221174 | 2002-11-02 23:30:20 +0000 | [diff] [blame] | 111 | #endif |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 112 | #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */ |
| 113 | #define CONFIG_SYS_MAXARGS 16 /* max number of command args */ |
| 114 | #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE /* Boot Argument Buffer Size */ |
wdenk | e221174 | 2002-11-02 23:30:20 +0000 | [diff] [blame] | 115 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 116 | #define CONFIG_SYS_MEMTEST_START 0x0400000 /* memtest works on */ |
| 117 | #define CONFIG_SYS_MEMTEST_END 0x0C00000 /* 4 ... 12 MB in DRAM */ |
wdenk | e221174 | 2002-11-02 23:30:20 +0000 | [diff] [blame] | 118 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 119 | #define CONFIG_SYS_LOAD_ADDR 0x100000 /* default load address */ |
wdenk | e221174 | 2002-11-02 23:30:20 +0000 | [diff] [blame] | 120 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 121 | #define CONFIG_SYS_HZ 1000 /* decrementer freq: 1 ms ticks */ |
wdenk | e221174 | 2002-11-02 23:30:20 +0000 | [diff] [blame] | 122 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 123 | #define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 } |
wdenk | e221174 | 2002-11-02 23:30:20 +0000 | [diff] [blame] | 124 | |
| 125 | /* |
| 126 | * Low Level Configuration Settings |
| 127 | * (address mappings, register initial values, etc.) |
| 128 | * You should know what you are doing if you make changes here. |
| 129 | */ |
| 130 | |
| 131 | /*----------------------------------------------------------------------- |
| 132 | * Physical memory map as defined by the MBX PGM |
| 133 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 134 | #define CONFIG_SYS_IMMR 0xFA200000 /* Internal Memory Mapped Register*/ |
| 135 | #define CONFIG_SYS_NVRAM_BASE 0xFA000000 /* NVRAM */ |
| 136 | #define CONFIG_SYS_NVRAM_OR 0xffe00000 /* w/o speed dependent flags!! */ |
| 137 | #define CONFIG_SYS_CSR_BASE 0xFA100000 /* Control/Status Registers */ |
| 138 | #define CONFIG_SYS_PCIMEM_BASE 0x80000000 /* PCI I/O and Memory Spaces */ |
| 139 | #define CONFIG_SYS_PCIMEM_OR 0xA0000108 |
| 140 | #define CONFIG_SYS_PCIBRIDGE_BASE 0xFA210000 /* PCI-Bus Bridge Registers */ |
| 141 | #define CONFIG_SYS_PCIBRIDGE_OR 0xFFFF0108 |
wdenk | e221174 | 2002-11-02 23:30:20 +0000 | [diff] [blame] | 142 | |
| 143 | /*----------------------------------------------------------------------- |
| 144 | * Definitions for initial stack pointer and data area (in DPRAM) |
| 145 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 146 | #define CONFIG_SYS_INIT_RAM_ADDR CONFIG_SYS_IMMR |
| 147 | #define CONFIG_SYS_INIT_RAM_END 0x2f00 /* End of used area in DPRAM */ |
| 148 | #define CONFIG_SYS_GBL_DATA_SIZE 64 /* size in bytes reserved for initial data */ |
| 149 | #define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE) |
| 150 | #define CONFIG_SYS_INIT_VPD_SIZE 256 /* size in bytes reserved for vpd buffer */ |
| 151 | #define CONFIG_SYS_INIT_VPD_OFFSET (CONFIG_SYS_GBL_DATA_OFFSET - CONFIG_SYS_INIT_VPD_SIZE) |
| 152 | #define CONFIG_SYS_INIT_SP_OFFSET (CONFIG_SYS_INIT_VPD_OFFSET-8) |
wdenk | e221174 | 2002-11-02 23:30:20 +0000 | [diff] [blame] | 153 | |
| 154 | /*----------------------------------------------------------------------- |
| 155 | * Offset in DPMEM where we keep the VPD data |
| 156 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 157 | #define CONFIG_SYS_DPRAMVPD (CONFIG_SYS_INIT_VPD_OFFSET - 0x2000) |
wdenk | e221174 | 2002-11-02 23:30:20 +0000 | [diff] [blame] | 158 | |
| 159 | /*----------------------------------------------------------------------- |
| 160 | * Start addresses for the final memory configuration |
| 161 | * (Set up by the startup code) |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 162 | * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0 |
wdenk | e221174 | 2002-11-02 23:30:20 +0000 | [diff] [blame] | 163 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 164 | #define CONFIG_SYS_SDRAM_BASE 0x00000000 |
| 165 | #define CONFIG_SYS_FLASH_BASE 0xfe000000 |
wdenk | e221174 | 2002-11-02 23:30:20 +0000 | [diff] [blame] | 166 | #ifdef DEBUG |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 167 | #define CONFIG_SYS_MONITOR_LEN (256 << 10) /* Reserve 256 kB for Monitor */ |
wdenk | e221174 | 2002-11-02 23:30:20 +0000 | [diff] [blame] | 168 | #else |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 169 | #define CONFIG_SYS_MONITOR_LEN (256 << 10) /* Reserve 256 kB for Monitor */ |
wdenk | e221174 | 2002-11-02 23:30:20 +0000 | [diff] [blame] | 170 | #endif |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 171 | #undef CONFIG_SYS_MONITOR_BASE /* 0x200000 to run U-Boot from RAM */ |
| 172 | #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_FLASH_BASE |
| 173 | #define CONFIG_SYS_MALLOC_LEN (128 << 10) /* Reserve 128 kB for malloc() */ |
wdenk | e221174 | 2002-11-02 23:30:20 +0000 | [diff] [blame] | 174 | |
| 175 | /* |
| 176 | * For booting Linux, the board info and command line data |
| 177 | * have to be in the first 8 MB of memory, since this is |
| 178 | * the maximum mapped by the Linux kernel during initialization. |
| 179 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 180 | #define CONFIG_SYS_BOOTMAPSZ (8 << 20) /* Initial Memory map for Linux */ |
wdenk | e221174 | 2002-11-02 23:30:20 +0000 | [diff] [blame] | 181 | |
| 182 | /*----------------------------------------------------------------------- |
| 183 | * FLASH organization |
| 184 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 185 | #define CONFIG_SYS_MAX_FLASH_BANKS 1 /* max number of memory banks */ |
| 186 | #define CONFIG_SYS_MAX_FLASH_SECT 16 /* max number of sectors on one chip */ |
wdenk | e221174 | 2002-11-02 23:30:20 +0000 | [diff] [blame] | 187 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 188 | #define CONFIG_SYS_FLASH_ERASE_TOUT 120000 /* Timeout for Flash Erase (in ms) */ |
| 189 | #define CONFIG_SYS_FLASH_WRITE_TOUT 500 /* Timeout for Flash Write (in ms) */ |
wdenk | e221174 | 2002-11-02 23:30:20 +0000 | [diff] [blame] | 190 | |
| 191 | /*----------------------------------------------------------------------- |
| 192 | * NVRAM Configuration |
| 193 | * |
| 194 | * Note: the MBX is special because there is already a firmware on this |
| 195 | * board: EPPC-Bug from Motorola. To avoid collisions in NVRAM Usage, we |
| 196 | * access the NVRAM at the offset 0x1000. |
| 197 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 9314cee | 2008-09-10 22:47:59 +0200 | [diff] [blame] | 198 | #define CONFIG_ENV_IS_IN_NVRAM 1 /* turn on NVRAM env feature */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 199 | #define CONFIG_ENV_ADDR (CONFIG_SYS_NVRAM_BASE + 0x1000) |
Jean-Christophe PLAGNIOL-VILLARD | 0e8d158 | 2008-09-10 22:48:06 +0200 | [diff] [blame] | 200 | #define CONFIG_ENV_SIZE 0x1000 |
wdenk | e221174 | 2002-11-02 23:30:20 +0000 | [diff] [blame] | 201 | |
| 202 | /*----------------------------------------------------------------------- |
| 203 | * Cache Configuration |
| 204 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 205 | #define CONFIG_SYS_CACHELINE_SIZE 16 /* For all MPC8xx CPUs */ |
Jon Loeliger | 8353e13 | 2007-07-08 14:14:17 -0500 | [diff] [blame] | 206 | #if defined(CONFIG_CMD_KGDB) |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 207 | #define CONFIG_SYS_CACHELINE_SHIFT 4 /* log base 2 of the above value */ |
wdenk | e221174 | 2002-11-02 23:30:20 +0000 | [diff] [blame] | 208 | #endif |
| 209 | |
| 210 | /*----------------------------------------------------------------------- |
| 211 | * SYPCR - System Protection Control 11-9 |
| 212 | * SYPCR can only be written once after reset! |
| 213 | *----------------------------------------------------------------------- |
| 214 | * Software & Bus Monitor Timer max, Bus Monitor enable, SW Watchdog freeze |
| 215 | */ |
| 216 | #if defined(CONFIG_WATCHDOG) |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 217 | #define CONFIG_SYS_SYPCR (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF | \ |
wdenk | e221174 | 2002-11-02 23:30:20 +0000 | [diff] [blame] | 218 | SYPCR_SWE | SYPCR_SWRI| SYPCR_SWP) |
| 219 | #else |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 220 | #define CONFIG_SYS_SYPCR (SYPCR_SWTC | SYPCR_BMT | SYPCR_BME | SYPCR_SWF) |
wdenk | e221174 | 2002-11-02 23:30:20 +0000 | [diff] [blame] | 221 | #endif |
| 222 | |
| 223 | /*----------------------------------------------------------------------- |
| 224 | * SIUMCR - SIU Module Configuration 11-6 |
| 225 | *----------------------------------------------------------------------- |
| 226 | * PCMCIA config., multi-function pin tri-state |
| 227 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 228 | /* #define CONFIG_SYS_SIUMCR (SIUMCR_DBGC11 | SIUMCR_DPC | SIUMCR_MLRC10 | SIUMCR_SEME) */ |
| 229 | #define CONFIG_SYS_SIUMCR (SIUMCR_DBGC11 | SIUMCR_DPC | SIUMCR_MLRC11 | SIUMCR_SEME | SIUMCR_BSC ) |
wdenk | e221174 | 2002-11-02 23:30:20 +0000 | [diff] [blame] | 230 | |
| 231 | /*----------------------------------------------------------------------- |
| 232 | * TBSCR - Time Base Status and Control 11-26 |
| 233 | *----------------------------------------------------------------------- |
| 234 | * Clear Reference Interrupt Status, Timebase freezing enabled |
| 235 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 236 | #define CONFIG_SYS_TBSCR (TBSCR_REFA | TBSCR_REFB | TBSCR_TBF) |
wdenk | e221174 | 2002-11-02 23:30:20 +0000 | [diff] [blame] | 237 | |
| 238 | /*----------------------------------------------------------------------- |
| 239 | * PISCR - Periodic Interrupt Status and Control 11-31 |
| 240 | *----------------------------------------------------------------------- |
| 241 | * Clear Periodic Interrupt Status, Interrupt Timer freezing enabled |
| 242 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 243 | #define CONFIG_SYS_PISCR (PISCR_PS | PISCR_PITF | PISCR_PTE) |
wdenk | e221174 | 2002-11-02 23:30:20 +0000 | [diff] [blame] | 244 | |
| 245 | /*----------------------------------------------------------------------- |
| 246 | * PLPRCR - PLL, Low-Power, and Reset Control Register 15-30 |
| 247 | *----------------------------------------------------------------------- |
| 248 | * Reset PLL lock status sticky bit, timer expired status bit and timer |
| 249 | * interrupt status bit - leave PLL multiplication factor unchanged ! |
| 250 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 251 | #define CONFIG_SYS_PLPRCR (PLPRCR_SPLSS | PLPRCR_TEXPS | PLPRCR_TMIST) |
wdenk | e221174 | 2002-11-02 23:30:20 +0000 | [diff] [blame] | 252 | |
| 253 | /*----------------------------------------------------------------------- |
| 254 | * SCCR - System Clock and reset Control Register 15-27 |
| 255 | *----------------------------------------------------------------------- |
| 256 | * Set clock output, timebase and RTC source and divider, |
| 257 | * power management and some other internal clocks |
| 258 | */ |
| 259 | #define SCCR_MASK (SCCR_RTDIV | SCCR_RTSEL) |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 260 | #define CONFIG_SYS_SCCR SCCR_TBS |
wdenk | e221174 | 2002-11-02 23:30:20 +0000 | [diff] [blame] | 261 | |
| 262 | /*----------------------------------------------------------------------- |
| 263 | * PCMCIA stuff |
| 264 | *----------------------------------------------------------------------- |
| 265 | * |
| 266 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 267 | #define CONFIG_SYS_PCMCIA_MEM_ADDR (0xE0000000) |
| 268 | #define CONFIG_SYS_PCMCIA_MEM_SIZE ( 64 << 20 ) |
| 269 | #define CONFIG_SYS_PCMCIA_DMA_ADDR (0xE4000000) |
| 270 | #define CONFIG_SYS_PCMCIA_DMA_SIZE ( 64 << 20 ) |
| 271 | #define CONFIG_SYS_PCMCIA_ATTRB_ADDR (0xE8000000) |
| 272 | #define CONFIG_SYS_PCMCIA_ATTRB_SIZE ( 64 << 20 ) |
| 273 | #define CONFIG_SYS_PCMCIA_IO_ADDR (0xEC000000) |
| 274 | #define CONFIG_SYS_PCMCIA_IO_SIZE ( 64 << 20 ) |
wdenk | e221174 | 2002-11-02 23:30:20 +0000 | [diff] [blame] | 275 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 276 | #define CONFIG_SYS_PCMCIA_INTERRUPT SIU_LEVEL6 |
wdenk | e221174 | 2002-11-02 23:30:20 +0000 | [diff] [blame] | 277 | |
| 278 | #define CONFIG_PCMCIA_SLOT_A 1 |
| 279 | |
| 280 | |
| 281 | /*----------------------------------------------------------------------- |
| 282 | * IDE/ATA stuff (Supports IDE harddisk on PCMCIA Adapter) |
| 283 | *----------------------------------------------------------------------- |
| 284 | */ |
| 285 | |
| 286 | #define CONFIG_IDE_8xx_PCCARD 1 /* Use IDE with PC Card Adapter */ |
| 287 | |
| 288 | #undef CONFIG_IDE_8xx_DIRECT /* Direct IDE not supported */ |
| 289 | #undef CONFIG_IDE_LED /* LED for ide not supported */ |
| 290 | #undef CONFIG_IDE_RESET /* reset for ide not supported */ |
| 291 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 292 | #define CONFIG_SYS_IDE_MAXBUS 1 /* max. 1 IDE bus */ |
| 293 | #define CONFIG_SYS_IDE_MAXDEVICE 1 /* max. 1 drive per IDE bus */ |
wdenk | e221174 | 2002-11-02 23:30:20 +0000 | [diff] [blame] | 294 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 295 | #define CONFIG_SYS_ATA_IDE0_OFFSET 0x0000 |
wdenk | e221174 | 2002-11-02 23:30:20 +0000 | [diff] [blame] | 296 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 297 | #define CONFIG_SYS_ATA_BASE_ADDR CONFIG_SYS_PCMCIA_MEM_ADDR |
wdenk | e221174 | 2002-11-02 23:30:20 +0000 | [diff] [blame] | 298 | |
| 299 | /* Offset for data I/O */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 300 | #define CONFIG_SYS_ATA_DATA_OFFSET (CONFIG_SYS_PCMCIA_MEM_SIZE + 0x320) |
wdenk | e221174 | 2002-11-02 23:30:20 +0000 | [diff] [blame] | 301 | |
| 302 | /* Offset for normal register accesses */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 303 | #define CONFIG_SYS_ATA_REG_OFFSET (2 * CONFIG_SYS_PCMCIA_MEM_SIZE + 0x320) |
wdenk | e221174 | 2002-11-02 23:30:20 +0000 | [diff] [blame] | 304 | |
| 305 | /* Offset for alternate registers */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 306 | #define CONFIG_SYS_ATA_ALT_OFFSET 0x0100 |
wdenk | e221174 | 2002-11-02 23:30:20 +0000 | [diff] [blame] | 307 | |
| 308 | /*----------------------------------------------------------------------- |
| 309 | * Debug Entry Mode |
| 310 | *----------------------------------------------------------------------- |
| 311 | * |
| 312 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 313 | #define CONFIG_SYS_DER 0 |
wdenk | e221174 | 2002-11-02 23:30:20 +0000 | [diff] [blame] | 314 | |
| 315 | /* |
| 316 | * Internal Definitions |
| 317 | * |
| 318 | * Boot Flags |
| 319 | */ |
| 320 | #define BOOTFLAG_COLD 0x01 /* Normal Power-On: Boot from FLASH */ |
| 321 | #define BOOTFLAG_WARM 0x02 /* Software reboot */ |
| 322 | |
| 323 | #endif /* __CONFIG_H */ |