wdenk | fa89d7c | 2004-09-28 16:44:41 +0000 | [diff] [blame] | 1 | /* |
wdenk | 8d5d28a | 2005-04-02 22:37:54 +0000 | [diff] [blame] | 2 | * (C) Copyright 2004-2005 |
| 3 | * Wolfgang Denk, DENX Software Engineering, <wd@denx.de> |
| 4 | * |
wdenk | fa89d7c | 2004-09-28 16:44:41 +0000 | [diff] [blame] | 5 | * (C) Copyright 2004 |
| 6 | * Vincent Dubey, Xa SA, vincent.dubey@xa-ch.com |
| 7 | * |
| 8 | * (C) Copyright 2002 |
| 9 | * Kyle Harris, Nexus Technologies, Inc. kharris@nexus-tech.ne |
| 10 | * |
| 11 | * (C) Copyright 2002 |
| 12 | * Sysgo Real-Time Solutions, GmbH <www.elinos.com> |
| 13 | * Marius Groeger <mgroeger@sysgo.de> |
| 14 | * |
| 15 | * Configuation settings for the xaeniax board. |
| 16 | * |
| 17 | * See file CREDITS for list of people who contributed to this |
| 18 | * project. |
| 19 | * |
| 20 | * This program is free software; you can redistribute it and/or |
| 21 | * modify it under the terms of the GNU General Public License as |
| 22 | * published by the Free Software Foundation; either version 2 of |
| 23 | * the License, or (at your option) any later version. |
| 24 | * |
| 25 | * This program is distributed in the hope that it will be useful, |
| 26 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 27 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 28 | * GNU General Public License for more details. |
| 29 | * |
| 30 | * You should have received a copy of the GNU General Public License |
| 31 | * along with this program; if not, write to the Free Software |
| 32 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, |
| 33 | * MA 02111-1307 USA |
| 34 | */ |
| 35 | |
| 36 | #ifndef __CONFIG_H |
| 37 | #define __CONFIG_H |
| 38 | |
| 39 | /* |
wdenk | fa89d7c | 2004-09-28 16:44:41 +0000 | [diff] [blame] | 40 | * High Level Configuration Options |
| 41 | * (easy to change) |
| 42 | */ |
Marek Vasut | 85cc88a | 2011-11-26 07:20:07 +0100 | [diff] [blame] | 43 | #define CONFIG_CPU_PXA25X 1 /* This is an PXA255 CPU */ |
wdenk | fa89d7c | 2004-09-28 16:44:41 +0000 | [diff] [blame] | 44 | #define CONFIG_XAENIAX 1 /* on a xaeniax board */ |
Marek Vasut | 7cdb976 | 2010-10-20 21:54:19 +0200 | [diff] [blame] | 45 | #define CONFIG_SYS_TEXT_BASE 0x0 |
wdenk | fa89d7c | 2004-09-28 16:44:41 +0000 | [diff] [blame] | 46 | |
| 47 | |
Helmut Raiger | d5a184b | 2011-10-20 04:19:47 +0000 | [diff] [blame] | 48 | #define CONFIG_BOARD_LATE_INIT |
wdenk | fa89d7c | 2004-09-28 16:44:41 +0000 | [diff] [blame] | 49 | |
| 50 | |
| 51 | #undef CONFIG_USE_IRQ /* we don't need IRQ/FIQ stuff */ |
| 52 | |
Jean-Christophe PLAGNIOL-VILLARD | e6b5f1b | 2009-04-05 13:06:31 +0200 | [diff] [blame] | 53 | /* we will never enable dcache, because we have to setup MMU first */ |
Aneesh V | ecee9c8 | 2011-06-16 23:30:48 +0000 | [diff] [blame] | 54 | #define CONFIG_SYS_DCACHE_OFF |
Jean-Christophe PLAGNIOL-VILLARD | e6b5f1b | 2009-04-05 13:06:31 +0200 | [diff] [blame] | 55 | |
wdenk | fa89d7c | 2004-09-28 16:44:41 +0000 | [diff] [blame] | 56 | /* |
| 57 | * select serial console configuration |
| 58 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 4ccaed4 | 2009-05-16 22:48:46 +0200 | [diff] [blame] | 59 | #define CONFIG_PXA_SERIAL |
wdenk | fa89d7c | 2004-09-28 16:44:41 +0000 | [diff] [blame] | 60 | #define CONFIG_BTUART 1 /* we use BTUART on XAENIAX */ |
| 61 | |
| 62 | |
| 63 | /* allow to overwrite serial and ethaddr */ |
| 64 | #define CONFIG_ENV_OVERWRITE |
| 65 | |
wdenk | 8d5d28a | 2005-04-02 22:37:54 +0000 | [diff] [blame] | 66 | #define CONFIG_TIMESTAMP /* Print image info with timestamp */ |
| 67 | |
wdenk | fa89d7c | 2004-09-28 16:44:41 +0000 | [diff] [blame] | 68 | #define CONFIG_BAUDRATE 115200 |
| 69 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 70 | #define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 } /* valid baudrates */ |
wdenk | fa89d7c | 2004-09-28 16:44:41 +0000 | [diff] [blame] | 71 | |
wdenk | fa89d7c | 2004-09-28 16:44:41 +0000 | [diff] [blame] | 72 | |
Jon Loeliger | 03bfcb9 | 2007-07-04 22:33:46 -0500 | [diff] [blame] | 73 | /* |
Jon Loeliger | 5c4ddae | 2007-07-10 10:12:10 -0500 | [diff] [blame] | 74 | * BOOTP options |
| 75 | */ |
| 76 | #define CONFIG_BOOTP_BOOTFILESIZE |
| 77 | #define CONFIG_BOOTP_BOOTPATH |
| 78 | #define CONFIG_BOOTP_GATEWAY |
| 79 | #define CONFIG_BOOTP_HOSTNAME |
| 80 | |
| 81 | |
| 82 | /* |
Jon Loeliger | 03bfcb9 | 2007-07-04 22:33:46 -0500 | [diff] [blame] | 83 | * Command line configuration. |
| 84 | */ |
| 85 | #include <config_cmd_default.h> |
| 86 | |
| 87 | #define CONFIG_CMD_DHCP |
| 88 | #define CONFIG_CMD_DIAG |
| 89 | #define CONFIG_CMD_NFS |
| 90 | #define CONFIG_CMD_SDRAM |
| 91 | #define CONFIG_CMD_SNTP |
| 92 | |
| 93 | #undef CONFIG_CMD_DTT |
| 94 | |
wdenk | fa89d7c | 2004-09-28 16:44:41 +0000 | [diff] [blame] | 95 | |
| 96 | #define CONFIG_ETHADDR 08:00:3e:26:0a:5b |
| 97 | #define CONFIG_NETMASK 255.255.255.0 |
| 98 | #define CONFIG_IPADDR 192.168.68.201 |
| 99 | #define CONFIG_SERVERIP 192.168.68.62 |
| 100 | |
| 101 | #define CONFIG_BOOTDELAY 3 |
| 102 | #define CONFIG_BOOTCOMMAND "bootm 0x00100000" |
| 103 | #define CONFIG_BOOTARGS "console=ttyS1,115200" |
wdenk | a48ea0a | 2004-10-19 22:17:51 +0000 | [diff] [blame] | 104 | #define CONFIG_CMDLINE_TAG 1 /* enable passing of ATAGs */ |
Wolfgang Denk | a1be476 | 2008-05-20 16:00:29 +0200 | [diff] [blame] | 105 | #define CONFIG_SETUP_MEMORY_TAGS 1 |
wdenk | a48ea0a | 2004-10-19 22:17:51 +0000 | [diff] [blame] | 106 | #define CONFIG_INITRD_TAG 1 |
wdenk | fa89d7c | 2004-09-28 16:44:41 +0000 | [diff] [blame] | 107 | |
Jon Loeliger | 03bfcb9 | 2007-07-04 22:33:46 -0500 | [diff] [blame] | 108 | #if defined(CONFIG_CMD_KGDB) |
wdenk | fa89d7c | 2004-09-28 16:44:41 +0000 | [diff] [blame] | 109 | #define CONFIG_KGDB_BAUDRATE 115200 /* speed to run kgdb serial port */ |
| 110 | #define CONFIG_KGDB_SER_INDEX 1 /* which serial port to use */ |
| 111 | #endif |
| 112 | |
| 113 | /* |
| 114 | * Size of malloc() pool; this lives below the uppermost 128 KiB which are |
| 115 | * used for the RAM copy of the uboot code |
| 116 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 117 | #define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + 128*1024) |
wdenk | fa89d7c | 2004-09-28 16:44:41 +0000 | [diff] [blame] | 118 | |
| 119 | /* |
| 120 | * Miscellaneous configurable options |
| 121 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 122 | #define CONFIG_SYS_LONGHELP /* undef to save memory */ |
| 123 | #define CONFIG_SYS_HUSH_PARSER 1 |
wdenk | fa89d7c | 2004-09-28 16:44:41 +0000 | [diff] [blame] | 124 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 125 | #define CONFIG_SYS_PROMPT_HUSH_PS2 "> " |
wdenk | fa89d7c | 2004-09-28 16:44:41 +0000 | [diff] [blame] | 126 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 127 | #ifdef CONFIG_SYS_HUSH_PARSER |
| 128 | #define CONFIG_SYS_PROMPT "u-boot$ " /* Monitor Command Prompt */ |
wdenk | fa89d7c | 2004-09-28 16:44:41 +0000 | [diff] [blame] | 129 | #else |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 130 | #define CONFIG_SYS_PROMPT "u-boot=> " /* Monitor Command Prompt */ |
wdenk | fa89d7c | 2004-09-28 16:44:41 +0000 | [diff] [blame] | 131 | #endif |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 132 | #define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */ |
| 133 | #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */ |
| 134 | #define CONFIG_SYS_MAXARGS 16 /* max number of command args */ |
| 135 | #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE /* Boot Argument Buffer Size */ |
| 136 | #define CONFIG_SYS_DEVICE_NULLDEV 1 |
wdenk | fa89d7c | 2004-09-28 16:44:41 +0000 | [diff] [blame] | 137 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 138 | #define CONFIG_SYS_MEMTEST_START 0xa0400000 /* memtest works on */ |
| 139 | #define CONFIG_SYS_MEMTEST_END 0xa0800000 /* 4 ... 8 MB in DRAM */ |
wdenk | fa89d7c | 2004-09-28 16:44:41 +0000 | [diff] [blame] | 140 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 141 | #define CONFIG_SYS_LOAD_ADDR 0xa1000000 /* default load address */ |
wdenk | fa89d7c | 2004-09-28 16:44:41 +0000 | [diff] [blame] | 142 | |
Micha Kalfon | 8a75a5b | 2009-02-11 19:50:11 +0200 | [diff] [blame] | 143 | #define CONFIG_SYS_HZ 1000 |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 144 | #define CONFIG_SYS_CPUSPEED 0x141 /* set core clock to 400/200/100 MHz */ |
wdenk | fa89d7c | 2004-09-28 16:44:41 +0000 | [diff] [blame] | 145 | |
| 146 | /* |
| 147 | * Physical Memory Map |
| 148 | */ |
| 149 | #define CONFIG_NR_DRAM_BANKS 1 /* we have 1 banks (partition) of DRAM */ |
| 150 | #define PHYS_SDRAM_1 0xa0000000 /* SDRAM Bank #1 */ |
| 151 | #define PHYS_SDRAM_1_SIZE 0x04000000 /* 64 MB */ |
| 152 | #define PHYS_SDRAM_2 0xa4000000 /* SDRAM Bank #2 */ |
| 153 | #define PHYS_SDRAM_2_SIZE 0x00000000 /* 0 MB */ |
| 154 | #define PHYS_SDRAM_3 0xa8000000 /* SDRAM Bank #3 */ |
| 155 | #define PHYS_SDRAM_3_SIZE 0x00000000 /* 0 MB */ |
| 156 | #define PHYS_SDRAM_4 0xac000000 /* SDRAM Bank #4 */ |
| 157 | #define PHYS_SDRAM_4_SIZE 0x00000000 /* 0 MB */ |
| 158 | |
| 159 | #define PHYS_FLASH_1 0x00000000 /* Flash Bank #1 */ |
| 160 | #define PHYS_FLASH_2 0x04000000 /* Flash Bank #2 */ |
| 161 | #define PHYS_FLASH_SIZE 0x02000000 /* 32 MB */ |
| 162 | #define PHYS_FLASH_BANK_SIZE 0x02000000 /* 32 MB Banks */ |
| 163 | #define PHYS_FLASH_SECT_SIZE 0x00040000 /* 256 KB sectors (x2) */ |
| 164 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 165 | #define CONFIG_SYS_DRAM_BASE 0xa0000000 |
| 166 | #define CONFIG_SYS_DRAM_SIZE 0x04000000 |
wdenk | fa89d7c | 2004-09-28 16:44:41 +0000 | [diff] [blame] | 167 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 168 | #define CONFIG_SYS_FLASH_BASE PHYS_FLASH_1 |
wdenk | fa89d7c | 2004-09-28 16:44:41 +0000 | [diff] [blame] | 169 | |
Marek Vasut | 62f66a5 | 2010-09-23 09:46:57 +0200 | [diff] [blame] | 170 | #define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM_1 |
Marek Vasut | 8a85f7d | 2011-11-26 12:04:11 +0100 | [diff] [blame] | 171 | #define CONFIG_SYS_INIT_SP_ADDR 0xfffff800 |
Marek Vasut | 62f66a5 | 2010-09-23 09:46:57 +0200 | [diff] [blame] | 172 | |
wdenk | fa89d7c | 2004-09-28 16:44:41 +0000 | [diff] [blame] | 173 | /* |
| 174 | * FLASH and environment organization |
| 175 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 176 | #define CONFIG_SYS_MAX_FLASH_BANKS 1 /* max number of memory banks */ |
| 177 | #define CONFIG_SYS_MAX_FLASH_SECT 128 /* max number of sectors on one chip */ |
wdenk | fa89d7c | 2004-09-28 16:44:41 +0000 | [diff] [blame] | 178 | |
| 179 | /* timeout values are in ticks */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 180 | #define CONFIG_SYS_FLASH_ERASE_TOUT (25*CONFIG_SYS_HZ) /* Timeout for Flash Erase */ |
| 181 | #define CONFIG_SYS_FLASH_WRITE_TOUT (25*CONFIG_SYS_HZ) /* Timeout for Flash Write */ |
wdenk | fa89d7c | 2004-09-28 16:44:41 +0000 | [diff] [blame] | 182 | |
| 183 | /* FIXME */ |
Jean-Christophe PLAGNIOL-VILLARD | 53db4cd | 2008-09-10 22:48:04 +0200 | [diff] [blame] | 184 | #define CONFIG_ENV_IS_IN_FLASH 1 |
Jean-Christophe PLAGNIOL-VILLARD | 7e1cda6 | 2008-09-10 22:48:06 +0200 | [diff] [blame] | 185 | #define CONFIG_ENV_ADDR (PHYS_FLASH_1 + 0x40000)/* Addr of Environment Sector */ |
| 186 | #define CONFIG_ENV_SIZE 0x40000 /* Total Size of Environment Sector */ |
wdenk | fa89d7c | 2004-09-28 16:44:41 +0000 | [diff] [blame] | 187 | |
| 188 | /* |
| 189 | * Stack sizes |
| 190 | * |
| 191 | * The stack sizes are set up in start.S using the settings below |
| 192 | */ |
| 193 | #define CONFIG_STACKSIZE (128*1024) /* regular stack */ |
| 194 | #ifdef CONFIG_USE_IRQ |
| 195 | #define CONFIG_STACKSIZE_IRQ (4*1024) /* IRQ stack */ |
| 196 | #define CONFIG_STACKSIZE_FIQ (4*1024) /* FIQ stack */ |
| 197 | #endif |
| 198 | |
| 199 | /* |
| 200 | * SMSC91C111 Network Card |
| 201 | */ |
Ben Warren | 0fd6aae | 2009-10-04 22:37:03 -0700 | [diff] [blame] | 202 | #define CONFIG_SMC91111 1 |
wdenk | ce5b6a9 | 2004-11-02 13:00:33 +0000 | [diff] [blame] | 203 | #define CONFIG_SMC91111_BASE 0x10000300 /* chip select 3 */ |
wdenk | fa89d7c | 2004-09-28 16:44:41 +0000 | [diff] [blame] | 204 | #define CONFIG_SMC_USE_32_BIT 1 /* 32 bit bus */ |
| 205 | #undef CONFIG_SMC_91111_EXT_PHY /* we use internal phy */ |
| 206 | #undef CONFIG_SHOW_ACTIVITY |
| 207 | #define CONFIG_NET_RETRY_COUNT 10 /* # of retries */ |
| 208 | |
| 209 | /* |
| 210 | * GPIO settings |
| 211 | */ |
| 212 | |
| 213 | /* |
| 214 | * GP05 == nUSBReset is 1 |
| 215 | * GP10 == CFReset is 1 |
| 216 | * GP13 == nCFDataEnable is 1 |
| 217 | * GP14 == nCFAddrEnable is 1 |
| 218 | * GP15 == nCS1 is 1 |
| 219 | * GP21 == ComBrdReset is 1 |
| 220 | * GP24 == SFRM is 1 |
| 221 | * GP25 == TXD is 1 |
| 222 | * GP31 == SYNC is 1 |
| 223 | * GP33 == nCS5 is 1 |
| 224 | * GP39 == FFTXD is 1 |
| 225 | * GP41 == RTS is 1 |
| 226 | * GP43 == BTTXD is 1 |
| 227 | * GP45 == BTRTS is 1 |
| 228 | * GP47 == TXD is 1 |
| 229 | * GP48 == nPOE is 1 |
| 230 | * GP49 == nPWE is 1 |
| 231 | * GP50 == nPIOR is 1 |
| 232 | * GP51 == nPIOW is 1 |
| 233 | * GP52 == nPCE[1] is 1 |
| 234 | * GP53 == nPCE[2] is 1 |
| 235 | * GP54 == nPSKTSEL is 1 |
| 236 | * GP55 == nPREG is 1 |
| 237 | * GP78 == nCS2 is 1 |
| 238 | * GP79 == nCS3 is 1 |
| 239 | * GP80 == nCS4 is 1 |
| 240 | * GP82 == NSSPSFRM is 1 |
| 241 | * GP83 == NSSPTXD is 1 |
| 242 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 243 | #define CONFIG_SYS_GPSR0_VAL 0x8320E420 |
| 244 | #define CONFIG_SYS_GPSR1_VAL 0x00FFAA82 |
| 245 | #define CONFIG_SYS_GPSR2_VAL 0x000DC000 |
wdenk | fa89d7c | 2004-09-28 16:44:41 +0000 | [diff] [blame] | 246 | |
| 247 | /* |
| 248 | * GP03 == LANReset is 0 |
| 249 | * GP06 == USBWakeUp is 0 |
| 250 | * GP11 == USBControl is 0 |
| 251 | * GP12 == Buzzer is 0 |
| 252 | * GP16 == PWM0 is 0 |
| 253 | * GP17 == PWM1 is 0 |
| 254 | * GP23 == SCLK is 0 |
| 255 | * GP30 == SDATA_OUT is 0 |
| 256 | * GP81 == NSSPCLK is 0 |
| 257 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 258 | #define CONFIG_SYS_GPCR0_VAL 0x40C31848 |
| 259 | #define CONFIG_SYS_GPCR1_VAL 0x00000000 |
| 260 | #define CONFIG_SYS_GPCR2_VAL 0x00020000 |
wdenk | fa89d7c | 2004-09-28 16:44:41 +0000 | [diff] [blame] | 261 | |
| 262 | /* |
| 263 | * GP00 == CPUWakeUpUSB is input |
| 264 | * GP01 == GP reset is input |
| 265 | * GP02 == LANInterrupt is input |
| 266 | * GP03 == LANReset is output |
| 267 | * GP04 == USBInterrupt is input |
| 268 | * GP05 == nUSBReset is output |
| 269 | * GP06 == USBWakeUp is output |
| 270 | * GP07 == CFReady/nBusy is input |
| 271 | * GP08 == nCFCardDetect1 is input |
| 272 | * GP09 == nCFCardDetect2 is input |
| 273 | * GP10 == nCFReset is output |
| 274 | * GP11 == USBControl is output |
| 275 | * GP12 == Buzzer is output |
| 276 | * GP13 == CFDataEnable is output |
| 277 | * GP14 == CFAddressEnable is output |
| 278 | * GP15 == nCS1 is output |
| 279 | * GP16 == PWM0 is output |
| 280 | * GP17 == PWM1 is output |
| 281 | * GP18 == RDY is input |
| 282 | * GP19 == ReaderReady is input |
| 283 | * GP20 == ReaderReset is input |
| 284 | * GP21 == ComBrdReset is output |
| 285 | * GP23 == SCLK is output |
| 286 | * GP24 == SFRM is output |
| 287 | * GP25 == TXD is output |
| 288 | * GP26 == RXD is input |
| 289 | * GP27 == EXTCLK is input |
| 290 | * GP28 == BITCLK is output |
| 291 | * GP29 == SDATA_IN0 is input |
| 292 | * GP30 == SDATA_OUT is output |
| 293 | * GP31 == SYNC is output |
| 294 | * GP32 == SYSSCLK is output |
| 295 | * GP33 == nCS5 is output |
| 296 | * GP34 == FFRXD is input |
| 297 | * GP35 == CTS is input |
| 298 | * GP36 == DCD is input |
| 299 | * GP37 == DSR is input |
| 300 | * GP38 == RI is input |
| 301 | * GP39 == FFTXD is output |
| 302 | * GP40 == DTR is output |
| 303 | * GP41 == RTS is output |
| 304 | * GP42 == BTRXD is input |
| 305 | * GP43 == BTTXD is output |
| 306 | * GP44 == BTCTS is input |
| 307 | * GP45 == BTRTS is output |
| 308 | * GP46 == RXD is input |
| 309 | * GP47 == TXD is output |
| 310 | * GP48 == nPOE is output |
| 311 | * GP49 == nPWE is output |
| 312 | * GP50 == nPIOR is output |
| 313 | * GP51 == nPIOW is output |
| 314 | * GP52 == nPCE[1] is output |
| 315 | * GP53 == nPCE[2] is output |
| 316 | * GP54 == nPSKTSEL is output |
| 317 | * GP55 == nPREG is output |
| 318 | * GP56 == nPWAIT is input |
| 319 | * GP57 == nPIOS16 is input |
| 320 | * GP58 == LDD[0] is output |
| 321 | * GP59 == LDD[1] is output |
| 322 | * GP60 == LDD[2] is output |
| 323 | * GP61 == LDD[3] is output |
| 324 | * GP62 == LDD[4] is output |
| 325 | * GP63 == LDD[5] is output |
| 326 | * GP64 == LDD[6] is output |
| 327 | * GP65 == LDD[7] is output |
| 328 | * GP66 == LDD[8] is output |
| 329 | * GP67 == LDD[9] is output |
| 330 | * GP68 == LDD[10] is output |
| 331 | * GP69 == LDD[11] is output |
| 332 | * GP70 == LDD[12] is output |
| 333 | * GP71 == LDD[13] is output |
| 334 | * GP72 == LDD[14] is output |
| 335 | * GP73 == LDD[15] is output |
| 336 | * GP74 == LCD_FCLK is output |
| 337 | * GP75 == LCD_LCLK is output |
| 338 | * GP76 == LCD_PCLK is output |
| 339 | * GP77 == LCD_ACBIAS is output |
| 340 | * GP78 == nCS2 is output |
| 341 | * GP79 == nCS3 is output |
| 342 | * GP80 == nCS4 is output |
| 343 | * GP81 == NSSPCLK is output |
| 344 | * GP82 == NSSPSFRM is output |
| 345 | * GP83 == NSSPTXD is output |
| 346 | * GP84 == NSSPRXD is input |
| 347 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 348 | #define CONFIG_SYS_GPDR0_VAL 0xD3E3FC68 |
| 349 | #define CONFIG_SYS_GPDR1_VAL 0xFCFFAB83 |
| 350 | #define CONFIG_SYS_GPDR2_VAL 0x000FFFFF |
wdenk | fa89d7c | 2004-09-28 16:44:41 +0000 | [diff] [blame] | 351 | |
| 352 | /* |
| 353 | * GP01 == GP reset is AF01 |
| 354 | * GP15 == nCS1 is AF10 |
| 355 | * GP16 == PWM0 is AF10 |
| 356 | * GP17 == PWM1 is AF10 |
| 357 | * GP18 == RDY is AF01 |
| 358 | * GP23 == SCLK is AF10 |
| 359 | * GP24 == SFRM is AF10 |
| 360 | * GP25 == TXD is AF10 |
| 361 | * GP26 == RXD is AF01 |
| 362 | * GP27 == EXTCLK is AF01 |
| 363 | * GP28 == BITCLK is AF01 |
| 364 | * GP29 == SDATA_IN0 is AF10 |
| 365 | * GP30 == SDATA_OUT is AF01 |
| 366 | * GP31 == SYNC is AF01 |
| 367 | * GP32 == SYSCLK is AF01 |
| 368 | * GP33 == nCS5 is AF10 |
| 369 | * GP34 == FFRXD is AF01 |
| 370 | * GP35 == CTS is AF01 |
| 371 | * GP36 == DCD is AF01 |
| 372 | * GP37 == DSR is AF01 |
| 373 | * GP38 == RI is AF01 |
| 374 | * GP39 == FFTXD is AF10 |
| 375 | * GP40 == DTR is AF10 |
| 376 | * GP41 == RTS is AF10 |
| 377 | * GP42 == BTRXD is AF01 |
| 378 | * GP43 == BTTXD is AF10 |
| 379 | * GP44 == BTCTS is AF01 |
| 380 | * GP45 == BTRTS is AF10 |
| 381 | * GP46 == RXD is AF10 |
| 382 | * GP47 == TXD is AF01 |
| 383 | * GP48 == nPOE is AF10 |
| 384 | * GP49 == nPWE is AF10 |
| 385 | * GP50 == nPIOR is AF10 |
| 386 | * GP51 == nPIOW is AF10 |
| 387 | * GP52 == nPCE[1] is AF10 |
| 388 | * GP53 == nPCE[2] is AF10 |
| 389 | * GP54 == nPSKTSEL is AF10 |
| 390 | * GP55 == nPREG is AF10 |
| 391 | * GP56 == nPWAIT is AF01 |
| 392 | * GP57 == nPIOS16 is AF01 |
| 393 | * GP58 == LDD[0] is AF10 |
| 394 | * GP59 == LDD[1] is AF10 |
| 395 | * GP60 == LDD[2] is AF10 |
| 396 | * GP61 == LDD[3] is AF10 |
| 397 | * GP62 == LDD[4] is AF10 |
| 398 | * GP63 == LDD[5] is AF10 |
| 399 | * GP64 == LDD[6] is AF10 |
| 400 | * GP65 == LDD[7] is AF10 |
| 401 | * GP66 == LDD[8] is AF10 |
| 402 | * GP67 == LDD[9] is AF10 |
| 403 | * GP68 == LDD[10] is AF10 |
| 404 | * GP69 == LDD[11] is AF10 |
| 405 | * GP70 == LDD[12] is AF10 |
| 406 | * GP71 == LDD[13] is AF10 |
| 407 | * GP72 == LDD[14] is AF10 |
| 408 | * GP73 == LDD[15] is AF10 |
| 409 | * GP74 == LCD_FCLK is AF10 |
| 410 | * GP75 == LCD_LCLK is AF10 |
| 411 | * GP76 == LCD_PCLK is AF10 |
| 412 | * GP77 == LCD_ACBIAS is AF10 |
| 413 | * GP78 == nCS2 is AF10 |
| 414 | * GP79 == nCS3 is AF10 |
| 415 | * GP80 == nCS4 is AF10 |
| 416 | * GP81 == NSSPCLK is AF01 |
| 417 | * GP82 == NSSPSFRM is AF01 |
| 418 | * GP83 == NSSPTXD is AF01 |
| 419 | * GP84 == NSSPRXD is AF10 |
| 420 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 421 | #define CONFIG_SYS_GAFR0_L_VAL 0x80000004 |
| 422 | #define CONFIG_SYS_GAFR0_U_VAL 0x595A801A |
| 423 | #define CONFIG_SYS_GAFR1_L_VAL 0x699A9559 |
| 424 | #define CONFIG_SYS_GAFR1_U_VAL 0xAAA5AAAA |
| 425 | #define CONFIG_SYS_GAFR2_L_VAL 0xAAAAAAAA |
| 426 | #define CONFIG_SYS_GAFR2_U_VAL 0x00000256 |
wdenk | fa89d7c | 2004-09-28 16:44:41 +0000 | [diff] [blame] | 427 | |
| 428 | /* |
| 429 | * clock settings |
| 430 | */ |
| 431 | /* RDH = 1 |
| 432 | * PH = 0 |
| 433 | * VFS = 0 |
| 434 | * BFS = 0 |
| 435 | * SSS = 0 |
| 436 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 437 | #define CONFIG_SYS_PSSR_VAL 0x00000030 |
wdenk | fa89d7c | 2004-09-28 16:44:41 +0000 | [diff] [blame] | 438 | |
Marek Vasut | 7cdb976 | 2010-10-20 21:54:19 +0200 | [diff] [blame] | 439 | #define CONFIG_SYS_CKEN 0x00000080 /* */ |
| 440 | #define CONFIG_SYS_ICMR 0x00000000 /* No interrupts enabled */ |
| 441 | #define CONFIG_SYS_CCCR CCCR_L27|CCCR_M2|CCCR_N10 |
wdenk | fa89d7c | 2004-09-28 16:44:41 +0000 | [diff] [blame] | 442 | |
| 443 | |
| 444 | /* |
| 445 | * Memory settings |
| 446 | * |
| 447 | * This is the configuration for nCS0/1 -> flash banks |
| 448 | * configuration for nCS1 : |
| 449 | * [31] 0 - |
| 450 | * [30:28] 000 - |
| 451 | * [27:24] 0000 - |
| 452 | * [23:20] 0000 - |
| 453 | * [19] 0 - |
| 454 | * [18:16] 000 - |
| 455 | * configuration for nCS0: |
| 456 | * [15] 0 - Slower Device |
| 457 | * [14:12] 010 - CS deselect to CS time: 2*(2*MemClk) = 40 ns |
| 458 | * [11:08] 0011 - Address to data valid in bursts: (3+1)*MemClk = 40 ns |
| 459 | * [07:04] 1111 - " for first access: (23+2)*MemClk = 250 ns (fixme 12+2?) |
| 460 | * [03] 0 - 32 Bit bus width |
| 461 | * [02:00] 010 - burst OF 4 ROM or FLASH |
| 462 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 463 | #define CONFIG_SYS_MSC0_VAL 0x000023D2 |
wdenk | fa89d7c | 2004-09-28 16:44:41 +0000 | [diff] [blame] | 464 | |
| 465 | /* This is the configuration for nCS2/3 -> USB controller, LAN |
| 466 | * configuration for nCS3: LAN |
| 467 | * [31] 0 - Slower Device |
| 468 | * [30:28] 001 - RRR3: CS deselect to CS time: 1*(2*MemClk) = 20 ns |
| 469 | * [27:24] 0010 - RDN3: Address to data valid in bursts: (2+1)*MemClk = 30 ns |
| 470 | * [23:20] 0010 - RDF3: Address for first access: (2+1)*MemClk = 30 ns |
| 471 | * [19] 0 - 32 Bit bus width |
| 472 | * [18:16] 100 - variable latency I/O |
| 473 | * configuration for nCS2: USB |
| 474 | * [15] 1 - Faster Device |
| 475 | * [14:12] 010 - RRR2: CS deselect to CS time: 2*(2*MemClk) = 40 ns |
| 476 | * [11:08] 0010 - RDN2: Address to data valid in bursts: (2+1)*MemClk = 30 ns |
| 477 | * [07:04] 0110 - RDF2: Address for first access: (6+1)*MemClk = 70 ns |
Wolfgang Denk | cd2a04d | 2005-08-04 19:45:01 +0200 | [diff] [blame] | 478 | * [03] 1 - 16 Bit bus width |
wdenk | fa89d7c | 2004-09-28 16:44:41 +0000 | [diff] [blame] | 479 | * [02:00] 100 - variable latency I/O |
| 480 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 481 | #define CONFIG_SYS_MSC1_VAL 0x1224A26C |
wdenk | fa89d7c | 2004-09-28 16:44:41 +0000 | [diff] [blame] | 482 | |
| 483 | /* This is the configuration for nCS4/5 -> LAN |
| 484 | * configuration for nCS5: |
| 485 | * [31] 0 - |
| 486 | * [30:28] 000 - |
| 487 | * [27:24] 0000 - |
| 488 | * [23:20] 0000 - |
| 489 | * [19] 0 - |
| 490 | * [18:16] 000 - |
| 491 | * configuration for nCS4: LAN |
| 492 | * [15] 1 - Faster Device |
| 493 | * [14:12] 010 - RRR2: CS deselect to CS time: 2*(2*MemClk) = 40 ns |
| 494 | * [11:08] 0010 - RDN2: Address to data valid in bursts: (2+1)*MemClk = 30 ns |
| 495 | * [07:04] 0110 - RDF2: Address for first access: (6+1)*MemClk = 70 ns |
| 496 | * [03] 0 - 32 Bit bus width |
| 497 | * [02:00] 100 - variable latency I/O |
| 498 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 499 | #define CONFIG_SYS_MSC2_VAL 0x00001224 |
wdenk | fa89d7c | 2004-09-28 16:44:41 +0000 | [diff] [blame] | 500 | |
| 501 | /* MDCNFG: SDRAM Configuration Register |
| 502 | * |
| 503 | * [31:29] 000 - reserved |
| 504 | * [28] 0 - no SA1111 compatiblity mode |
| 505 | * [27] 0 - latch return data with return clock |
| 506 | * [26] 0 - alternate addressing for pair 2/3 |
| 507 | * [25:24] 00 - timings |
| 508 | * [23] 0 - internal banks in lower partition 2/3 (not used) |
| 509 | * [22:21] 00 - row address bits for partition 2/3 (not used) |
| 510 | * [20:19] 00 - column address bits for partition 2/3 (not used) |
| 511 | * [18] 0 - SDRAM partition 2/3 width is 32 bit |
| 512 | * [17] 0 - SDRAM partition 3 disabled |
| 513 | * [16] 0 - SDRAM partition 2 disabled |
| 514 | * [15:13] 000 - reserved |
| 515 | * [12] 0 - no SA1111 compatiblity mode |
| 516 | * [11] 1 - latch return data with return clock |
| 517 | * [10] 0 - no alternate addressing for pair 0/1 |
| 518 | * [09:08] 10 - tRP=2*MemClk CL=2 tRCD=2*MemClk tRAS=5*MemClk tRC=8*MemClk |
| 519 | * [7] 1 - 4 internal banks in lower partition pair |
| 520 | * [06:05] 10 - 13 row address bits for partition 0/1 |
| 521 | * [04:03] 01 - 9 column address bits for partition 0/1 |
| 522 | * [02] 0 - SDRAM partition 0/1 width is 32 bit |
| 523 | * [01] 0 - disable SDRAM partition 1 |
| 524 | * [00] 1 - enable SDRAM partition 0 |
| 525 | */ |
| 526 | /* use the configuration above but disable partition 0 */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 527 | #define CONFIG_SYS_MDCNFG_VAL 0x00000AC9 |
wdenk | fa89d7c | 2004-09-28 16:44:41 +0000 | [diff] [blame] | 528 | |
| 529 | /* MDREFR: SDRAM Refresh Control Register |
| 530 | * |
| 531 | * [32:26] 0 - reserved |
| 532 | * [25] 0 - K2FREE: not free running |
| 533 | * [24] 0 - K1FREE: not free running |
| 534 | * [23] 0 - K0FREE: not free running |
| 535 | * [22] 0 - SLFRSH: self refresh disabled |
| 536 | * [21] 0 - reserved |
| 537 | * [20] 1 - APD: auto power down |
| 538 | * [19] 0 - K2DB2: SDCLK2 is MemClk |
| 539 | * [18] 0 - K2RUN: disable SDCLK2 |
| 540 | * [17] 0 - K1DB2: SDCLK1 is MemClk |
| 541 | * [16] 1 - K1RUN: enable SDCLK1 |
| 542 | * [15] 1 - E1PIN: SDRAM clock enable |
| 543 | * [14] 0 - K0DB2: SDCLK0 is MemClk |
| 544 | * [13] 0 - K0RUN: disable SDCLK0 |
| 545 | * [12] 0 - E0PIN: disable SDCKE0 |
| 546 | * [11:00] 000000011000 - (64ms/8192)*MemClkFreq/32 = 24 |
| 547 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 548 | #define CONFIG_SYS_MDREFR_VAL 0x00138018 /* mh: was 0x00118018 */ |
wdenk | fa89d7c | 2004-09-28 16:44:41 +0000 | [diff] [blame] | 549 | |
| 550 | /* MDMRS: Mode Register Set Configuration Register |
| 551 | * |
| 552 | * [31] 0 - reserved |
| 553 | * [30:23] 00000000- MDMRS2: SDRAM2/3 MRS Value. (not used) |
| 554 | * [22:20] 011 - MDCL2: SDRAM2/3 Cas Latency. (not used) |
| 555 | * [19] 0 - MDADD2: SDRAM2/3 burst Type. Fixed to sequential. (not used) |
| 556 | * [18:16] 010 - MDBL2: SDRAM2/3 burst Length. Fixed to 4. (not used) |
| 557 | * [15] 0 - reserved |
| 558 | * [14:07] 00000000- MDMRS0: SDRAM0/1 MRS Value. |
| 559 | * [06:04] 011 - MDCL0: SDRAM0/1 Cas Latency. |
| 560 | * [03] 0 - MDADD0: SDRAM0/1 burst Type. Fixed to sequential. |
| 561 | * [02:00] 010 - MDBL0: SDRAM0/1 burst Length. Fixed to 4. |
| 562 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 563 | #define CONFIG_SYS_MDMRS_VAL 0x00320032 |
wdenk | fa89d7c | 2004-09-28 16:44:41 +0000 | [diff] [blame] | 564 | |
Marek Vasut | 7cdb976 | 2010-10-20 21:54:19 +0200 | [diff] [blame] | 565 | #define CONFIG_SYS_FLYCNFG_VAL 0x00000000 |
| 566 | #define CONFIG_SYS_SXCNFG_VAL 0x00000000 |
| 567 | |
wdenk | fa89d7c | 2004-09-28 16:44:41 +0000 | [diff] [blame] | 568 | /* |
| 569 | * PCMCIA and CF Interfaces |
| 570 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 571 | #define CONFIG_SYS_MECR_VAL 0x00000000 |
| 572 | #define CONFIG_SYS_MCMEM0_VAL 0x00010504 |
| 573 | #define CONFIG_SYS_MCMEM1_VAL 0x00010504 |
| 574 | #define CONFIG_SYS_MCATT0_VAL 0x00010504 |
| 575 | #define CONFIG_SYS_MCATT1_VAL 0x00010504 |
| 576 | #define CONFIG_SYS_MCIO0_VAL 0x00004715 |
| 577 | #define CONFIG_SYS_MCIO1_VAL 0x00004715 |
wdenk | fa89d7c | 2004-09-28 16:44:41 +0000 | [diff] [blame] | 578 | |
| 579 | |
| 580 | #endif /* __CONFIG_H */ |