wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2000 |
| 3 | * Murray Jensen <Murray.Jensen@cmst.csiro.au> |
| 4 | * |
| 5 | * (C) Copyright 2000 |
| 6 | * Sysgo Real-Time Solutions, GmbH <www.elinos.com> |
| 7 | * Marius Groeger <mgroeger@sysgo.de> |
| 8 | * |
| 9 | * (C) Copyright 2001 |
| 10 | * Advent Networks, Inc. <http://www.adventnetworks.com> |
| 11 | * Jay Monkman <jtm@smoothsmoothie.com> |
| 12 | * |
| 13 | * Configuation settings for the WindRiver PPMC8260 board. |
| 14 | * |
Wolfgang Denk | bd8ec7e | 2013-10-07 13:07:26 +0200 | [diff] [blame] | 15 | * SPDX-License-Identifier: GPL-2.0+ |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 16 | */ |
| 17 | |
| 18 | #ifndef __CONFIG_H |
| 19 | #define __CONFIG_H |
| 20 | |
Wolfgang Denk | 291ba1b | 2010-10-06 09:05:45 +0200 | [diff] [blame] | 21 | #define CONFIG_SYS_TEXT_BASE 0xfe000000 |
| 22 | |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 23 | /***************************************************************************** |
| 24 | * |
| 25 | * These settings must match the way _your_ board is set up |
| 26 | * |
| 27 | *****************************************************************************/ |
| 28 | |
| 29 | /* What is the oscillator's (UX2) frequency in Hz? */ |
| 30 | #define CONFIG_8260_CLKIN (66 * 1000 * 1000) |
| 31 | |
| 32 | /*----------------------------------------------------------------------- |
| 33 | * MODCK_H & MODCLK[1-3] - Ref: Section 9.2 in MPC8206 User Manual |
| 34 | *----------------------------------------------------------------------- |
| 35 | * What should MODCK_H be? It is dependent on the oscillator |
| 36 | * frequency, MODCK[1-3], and desired CPM and core frequencies. |
| 37 | * Here are some example values (all frequencies are in MHz): |
| 38 | * |
| 39 | * MODCK_H MODCK[1-3] Osc CPM Core S2-6 S2-7 S2-8 |
| 40 | * ------- ---------- --- --- ---- ----- ----- ----- |
| 41 | * 0x2 0x2 33 133 133 Close Open Close |
| 42 | * 0x2 0x3 33 133 166 Close Open Open |
| 43 | * 0x2 0x4 33 133 200 Open Close Close |
| 44 | * 0x2 0x5 33 133 233 Open Close Open |
| 45 | * 0x2 0x6 33 133 266 Open Open Close |
| 46 | * |
| 47 | * 0x5 0x5 66 133 133 Open Close Open |
| 48 | * 0x5 0x6 66 133 166 Open Open Close |
| 49 | * 0x5 0x7 66 133 200 Open Open Open |
| 50 | * 0x6 0x0 66 133 233 Close Close Close |
| 51 | * 0x6 0x1 66 133 266 Close Close Open |
| 52 | * 0x6 0x2 66 133 300 Close Open Close |
| 53 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 54 | #define CONFIG_SYS_PPMC_MODCK_H 0x05 |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 55 | |
| 56 | /* Define this if you want to boot from 0x00000100. If you don't define |
| 57 | * this, you will need to program the bootloader to 0xfff00000, and |
| 58 | * get the hardware reset config words at 0xfe000000. The simplest |
| 59 | * way to do that is to program the bootloader at both addresses. |
| 60 | * It is suggested that you just let U-Boot live at 0x00000000. |
| 61 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 62 | #define CONFIG_SYS_PPMC_BOOT_LOW 1 |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 63 | |
| 64 | /* What should the base address of the main FLASH be and how big is |
Wolfgang Denk | 0708bc6 | 2010-10-07 21:51:12 +0200 | [diff] [blame] | 65 | * it (in MBytes)? This must contain CONFIG_SYS_TEXT_BASE from board/ppmc8260/config.mk |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 66 | * The main FLASH is whichever is connected to *CS0. U-Boot expects |
| 67 | * this to be the SIMM. |
| 68 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 69 | #define CONFIG_SYS_FLASH0_BASE 0xFE000000 |
| 70 | #define CONFIG_SYS_FLASH0_SIZE 16 |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 71 | |
| 72 | /* What should be the base address of the first SDRAM DIMM and how big is |
| 73 | * it (in Mbytes)? |
| 74 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 75 | #define CONFIG_SYS_SDRAM0_BASE 0x00000000 |
| 76 | #define CONFIG_SYS_SDRAM0_SIZE 128 |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 77 | |
| 78 | /* What should be the base address of the second SDRAM DIMM and how big is |
| 79 | * it (in Mbytes)? |
| 80 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 81 | #define CONFIG_SYS_SDRAM1_BASE 0x08000000 |
| 82 | #define CONFIG_SYS_SDRAM1_SIZE 128 |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 83 | |
| 84 | /* What should be the base address of the on board SDRAM and how big is |
| 85 | * it (in Mbytes)? |
| 86 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 87 | #define CONFIG_SYS_SDRAM2_BASE 0x38000000 |
| 88 | #define CONFIG_SYS_SDRAM2_SIZE 16 |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 89 | |
| 90 | /* What should be the base address of the MAILBOX and how big is it |
| 91 | * (in Bytes) |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 92 | * The eeprom lives at CONFIG_SYS_MAILBOX_BASE + 0x80000000 |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 93 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 94 | #define CONFIG_SYS_MAILBOX_BASE 0x32000000 |
| 95 | #define CONFIG_SYS_MAILBOX_SIZE 8192 |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 96 | |
| 97 | /* What is the base address of the I/O select lines and how big is it |
| 98 | * (In Mbytes)? |
| 99 | */ |
| 100 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 101 | #define CONFIG_SYS_IOSELECT_BASE 0xE0000000 |
| 102 | #define CONFIG_SYS_IOSELECT_SIZE 32 |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 103 | |
| 104 | |
| 105 | /* What should be the base address of the LEDs and switch S0? |
| 106 | * If you don't want them enabled, don't define this. |
| 107 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 108 | #define CONFIG_SYS_LED_BASE 0xF1000000 |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 109 | |
| 110 | /* |
| 111 | * PPMC8260 with 256 16 MB DIMM: |
| 112 | * |
| 113 | * 0x0000 0000 Exception Vector code, 8k |
| 114 | * : |
| 115 | * 0x0000 1FFF |
| 116 | * 0x0000 2000 Free for Application Use |
| 117 | * : |
| 118 | * : |
| 119 | * |
| 120 | * : |
| 121 | * : |
| 122 | * 0x0FF5 FF30 Monitor Stack (Growing downward) |
| 123 | * Monitor Stack Buffer (0x80) |
| 124 | * 0x0FF5 FFB0 Board Info Data |
| 125 | * 0x0FF6 0000 Malloc Arena |
Jean-Christophe PLAGNIOL-VILLARD | 7e1cda6 | 2008-09-10 22:48:06 +0200 | [diff] [blame] | 126 | * : CONFIG_ENV_SECT_SIZE, 256k |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 127 | * : CONFIG_SYS_MALLOC_LEN, 128k |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 128 | * 0x0FFC 0000 RAM Copy of Monitor Code |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 129 | * : CONFIG_SYS_MONITOR_LEN, 256k |
| 130 | * 0x0FFF FFFF [End of RAM], CONFIG_SYS_SDRAM_SIZE - 1 |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 131 | */ |
| 132 | |
| 133 | |
| 134 | /* |
| 135 | * select serial console configuration |
| 136 | * |
| 137 | * if either CONFIG_CONS_ON_SMC or CONFIG_CONS_ON_SCC is selected, then |
| 138 | * CONFIG_CONS_INDEX must be set to the channel number (1-2 for SMC, 1-4 |
| 139 | * for SCC). |
| 140 | * |
| 141 | * if CONFIG_CONS_NONE is defined, then the serial console routines must |
| 142 | * defined elsewhere. |
| 143 | * The console can be on SMC1 or SMC2 |
| 144 | */ |
| 145 | #define CONFIG_CONS_ON_SMC 1 /* define if console on SMC */ |
| 146 | #undef CONFIG_CONS_ON_SCC /* define if console on SCC */ |
| 147 | #undef CONFIG_CONS_NONE /* define if console on neither */ |
| 148 | #define CONFIG_CONS_INDEX 1 /* which SMC/SCC channel for console */ |
| 149 | |
| 150 | /* |
| 151 | * select ethernet configuration |
| 152 | * |
| 153 | * if either CONFIG_ETHER_ON_SCC or CONFIG_ETHER_ON_FCC is selected, then |
| 154 | * CONFIG_ETHER_INDEX must be set to the channel number (1-4 for SCC, 1-3 |
| 155 | * for FCC) |
| 156 | * |
| 157 | * if CONFIG_ETHER_NONE is defined, then either the ethernet routines must be |
Jon Loeliger | 2517d97 | 2007-07-09 17:15:49 -0500 | [diff] [blame] | 158 | * defined elsewhere (as for the console), or CONFIG_CMD_NET must be unset. |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 159 | */ |
| 160 | |
| 161 | #undef CONFIG_ETHER_ON_SCC /* define if ethernet on SCC */ |
| 162 | #define CONFIG_ETHER_ON_FCC /* define if ethernet on FCC */ |
| 163 | #undef CONFIG_ETHER_NONE /* define if ethernet on neither */ |
| 164 | #define CONFIG_ETHER_INDEX 2 /* which SCC/FCC channel for ethernet */ |
| 165 | #define CONFIG_MII /* MII PHY management */ |
| 166 | #define CONFIG_BITBANGMII /* bit-bang MII PHY management */ |
| 167 | /* |
| 168 | * Port pins used for bit-banged MII communictions (if applicable). |
| 169 | */ |
| 170 | #define MDIO_PORT 2 /* Port C */ |
Luigi 'Comio' Mantellini | 25e3072 | 2009-10-10 12:42:22 +0200 | [diff] [blame] | 171 | #define MDIO_DECLARE volatile ioport_t *iop = ioport_addr ( \ |
| 172 | (immap_t *) CONFIG_SYS_IMMR, MDIO_PORT ) |
| 173 | #define MDC_DECLARE MDIO_DECLARE |
| 174 | |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 175 | #define MDIO_ACTIVE (iop->pdir |= 0x00400000) |
| 176 | #define MDIO_TRISTATE (iop->pdir &= ~0x00400000) |
| 177 | #define MDIO_READ ((iop->pdat & 0x00400000) != 0) |
| 178 | |
| 179 | #define MDIO(bit) if(bit) iop->pdat |= 0x00400000; \ |
| 180 | else iop->pdat &= ~0x00400000 |
| 181 | |
| 182 | #define MDC(bit) if(bit) iop->pdat |= 0x00200000; \ |
| 183 | else iop->pdat &= ~0x00200000 |
| 184 | |
| 185 | #define MIIDELAY udelay(1) |
| 186 | |
| 187 | |
| 188 | /* Define this to reserve an entire FLASH sector (256 KB) for |
| 189 | * environment variables. Otherwise, the environment will be |
| 190 | * put in the same sector as U-Boot, and changing variables |
| 191 | * will erase U-Boot temporarily |
| 192 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 7e1cda6 | 2008-09-10 22:48:06 +0200 | [diff] [blame] | 193 | #define CONFIG_ENV_IN_OWN_SECT 1 |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 194 | |
| 195 | /* Define to allow the user to overwrite serial and ethaddr */ |
| 196 | #define CONFIG_ENV_OVERWRITE |
| 197 | |
| 198 | /* What should the console's baud rate be? */ |
| 199 | #define CONFIG_BAUDRATE 9600 |
| 200 | |
| 201 | /* Ethernet MAC address */ |
| 202 | |
| 203 | #define CONFIG_ETHADDR 00:a0:1e:90:2b:00 |
| 204 | |
| 205 | /* Define this to set the last octet of the ethernet address |
| 206 | * from the DS0-DS7 switch and light the leds with the result |
| 207 | * The DS0-DS7 switch and the leds are backwards with respect |
| 208 | * to each other. DS7 is on the board edge side of both the |
| 209 | * led strip and the DS0-DS7 switch. |
| 210 | */ |
| 211 | #define CONFIG_MISC_INIT_R |
| 212 | |
| 213 | /* Set to a positive value to delay for running BOOTCOMMAND */ |
| 214 | #define CONFIG_BOOTDELAY 5 /* autoboot after 5 seconds */ |
| 215 | |
| 216 | #if 0 |
| 217 | /* Be selective on what keys can delay or stop the autoboot process |
| 218 | * To stop use: " " |
| 219 | */ |
| 220 | # define CONFIG_AUTOBOOT_KEYED |
Wolfgang Denk | dd5463b | 2008-07-16 16:38:59 +0200 | [diff] [blame] | 221 | # define CONFIG_AUTOBOOT_PROMPT \ |
| 222 | "Autobooting in %d seconds, press \" \" to stop\n", bootdelay |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 223 | # define CONFIG_AUTOBOOT_STOP_STR " " |
| 224 | # undef CONFIG_AUTOBOOT_DELAY_STR |
| 225 | # define DEBUG_BOOTKEYS 0 |
| 226 | #endif |
| 227 | |
| 228 | /* Define a command string that is automatically executed when no character |
| 229 | * is read on the console interface withing "Boot Delay" after reset. |
| 230 | */ |
Wolfgang Denk | a1be476 | 2008-05-20 16:00:29 +0200 | [diff] [blame] | 231 | #undef CONFIG_BOOT_ROOT_INITRD /* Use ram disk for the root file system */ |
wdenk | d360213 | 2004-03-25 15:14:43 +0000 | [diff] [blame] | 232 | #define CONFIG_BOOT_ROOT_NFS /* Use a NFS mounted root file system */ |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 233 | |
wdenk | c35ba4e | 2004-03-14 22:25:36 +0000 | [diff] [blame] | 234 | #ifdef CONFIG_BOOT_ROOT_INITRD |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 235 | #define CONFIG_BOOTCOMMAND \ |
| 236 | "version;" \ |
| 237 | "echo;" \ |
| 238 | "bootp;" \ |
| 239 | "setenv bootargs root=/dev/ram0 rw " \ |
Wolfgang Denk | 86eb3b7 | 2005-11-20 21:40:11 +0100 | [diff] [blame] | 240 | "ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off;" \ |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 241 | "bootm" |
| 242 | #endif /* CONFIG_BOOT_ROOT_INITRD */ |
| 243 | |
wdenk | c35ba4e | 2004-03-14 22:25:36 +0000 | [diff] [blame] | 244 | #ifdef CONFIG_BOOT_ROOT_NFS |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 245 | #define CONFIG_BOOTCOMMAND \ |
| 246 | "version;" \ |
| 247 | "echo;" \ |
| 248 | "bootp;" \ |
Wolfgang Denk | 86eb3b7 | 2005-11-20 21:40:11 +0100 | [diff] [blame] | 249 | "setenv bootargs root=/dev/nfs rw nfsroot=${serverip}:${rootpath} " \ |
| 250 | "ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off;" \ |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 251 | "bootm" |
| 252 | #endif /* CONFIG_BOOT_ROOT_NFS */ |
| 253 | |
Jon Loeliger | c6d535a | 2007-07-09 21:57:31 -0500 | [diff] [blame] | 254 | |
| 255 | /* |
| 256 | * BOOTP options |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 257 | */ |
Jon Loeliger | c6d535a | 2007-07-09 21:57:31 -0500 | [diff] [blame] | 258 | #define CONFIG_BOOTP_SUBNETMASK |
| 259 | #define CONFIG_BOOTP_GATEWAY |
| 260 | #define CONFIG_BOOTP_HOSTNAME |
| 261 | #define CONFIG_BOOTP_BOOTPATH |
| 262 | #define CONFIG_BOOTP_BOOTFILESIZE |
| 263 | #define CONFIG_BOOTP_DNS |
| 264 | |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 265 | |
| 266 | /* undef this to save memory */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 267 | #define CONFIG_SYS_LONGHELP |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 268 | |
| 269 | /* Monitor Command Prompt */ |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 270 | |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 271 | |
Jon Loeliger | aa2d2c2 | 2007-07-04 22:33:17 -0500 | [diff] [blame] | 272 | /* |
| 273 | * Command line configuration. |
| 274 | */ |
| 275 | #include <config_cmd_default.h> |
| 276 | |
| 277 | #define CONFIG_CMD_ELF |
| 278 | #define CONFIG_CMD_ASKENV |
| 279 | #define CONFIG_CMD_REGINFO |
| 280 | #define CONFIG_CMD_MEMTEST |
| 281 | #define CONFIG_CMD_MII |
| 282 | #define CONFIG_CMD_IMMAP |
| 283 | |
| 284 | #undef CONFIG_CMD_KGDB |
| 285 | |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 286 | |
| 287 | /* Where do the internal registers live? */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 288 | #define CONFIG_SYS_IMMR 0xf0000000 |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 289 | |
| 290 | /***************************************************************************** |
| 291 | * |
| 292 | * You should not have to modify any of the following settings |
| 293 | * |
| 294 | *****************************************************************************/ |
| 295 | |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 296 | #define CONFIG_PPMC8260 1 /* on an Wind River PPMC8260 Board */ |
Jon Loeliger | f5ad378 | 2005-07-23 10:37:35 -0500 | [diff] [blame] | 297 | #define CONFIG_CPM2 1 /* Has a CPM2 */ |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 298 | |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 299 | /* |
| 300 | * Miscellaneous configurable options |
| 301 | */ |
Jon Loeliger | aa2d2c2 | 2007-07-04 22:33:17 -0500 | [diff] [blame] | 302 | #if defined(CONFIG_CMD_KGDB) |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 303 | # define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buffer Size */ |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 304 | #else |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 305 | # define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */ |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 306 | #endif |
| 307 | |
| 308 | /* Print Buffer Size */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 309 | #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT)+16) |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 310 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 311 | #define CONFIG_SYS_MAXARGS 32 /* max number of command args */ |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 312 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 313 | #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE /* Boot Argument Buffer Size */ |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 314 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 315 | #define CONFIG_SYS_LOAD_ADDR 0x140000 /* default load address */ |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 316 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 317 | #define CONFIG_SYS_MEMTEST_START 0x2000 /* memtest works from the end of */ |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 318 | /* the exception vector table */ |
| 319 | /* to the end of the DRAM */ |
| 320 | /* less monitor and malloc area */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 321 | #define CONFIG_SYS_STACK_USAGE 0x10000 /* Reserve 64k for the stack usage */ |
| 322 | #define CONFIG_SYS_MEM_END_USAGE ( CONFIG_SYS_MONITOR_LEN \ |
| 323 | + CONFIG_SYS_MALLOC_LEN \ |
Jean-Christophe PLAGNIOL-VILLARD | 7e1cda6 | 2008-09-10 22:48:06 +0200 | [diff] [blame] | 324 | + CONFIG_ENV_SECT_SIZE \ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 325 | + CONFIG_SYS_STACK_USAGE ) |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 326 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 327 | #define CONFIG_SYS_MEMTEST_END ( CONFIG_SYS_SDRAM_SIZE * 1024 * 1024 \ |
| 328 | - CONFIG_SYS_MEM_END_USAGE ) |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 329 | |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 330 | /* |
| 331 | * Low Level Configuration Settings |
| 332 | * (address mappings, register initial values, etc.) |
| 333 | * You should know what you are doing if you make changes here. |
| 334 | */ |
| 335 | |
| 336 | #if defined(CONFIG_ETHER_ON_SCC) && (CONFIG_ETHER_INDEX == 1) |
| 337 | /* |
| 338 | * Attention: This is board specific |
| 339 | * - RX clk is CLK11 |
| 340 | * - TX clk is CLK12 |
| 341 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 342 | #define CONFIG_SYS_CMXSCR_VALUE (CMXSCR_RS1CS_CLK11 |\ |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 343 | CMXSCR_TS1CS_CLK12) |
| 344 | |
| 345 | #elif defined(CONFIG_ETHER_ON_FCC) && (CONFIG_ETHER_INDEX == 2) |
| 346 | /* |
| 347 | * Attention: this is board-specific |
| 348 | * - Rx-CLK is CLK13 |
| 349 | * - Tx-CLK is CLK14 |
| 350 | * - Select bus for bd/buffers (see 28-13) |
| 351 | * - Enable Full Duplex in FSMR |
| 352 | */ |
Mike Frysinger | 109de97 | 2011-10-17 05:38:58 +0000 | [diff] [blame] | 353 | #define CONFIG_SYS_CMXFCR_MASK2 (CMXFCR_FC2|CMXFCR_RF2CS_MSK|CMXFCR_TF2CS_MSK) |
| 354 | #define CONFIG_SYS_CMXFCR_VALUE2 (CMXFCR_RF2CS_CLK13|CMXFCR_TF2CS_CLK14) |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 355 | #define CONFIG_SYS_CPMFCR_RAMTYPE 0 |
| 356 | #define CONFIG_SYS_FCC_PSMR (FCC_PSMR_FDE | FCC_PSMR_LPB) |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 357 | #endif /* CONFIG_ETHER_INDEX */ |
| 358 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 359 | #define CONFIG_SYS_FLASH_BASE CONFIG_SYS_FLASH0_BASE |
| 360 | #define CONFIG_SYS_FLASH_SIZE CONFIG_SYS_FLASH0_SIZE |
| 361 | #define CONFIG_SYS_SDRAM_BASE CONFIG_SYS_SDRAM0_BASE |
| 362 | #define CONFIG_SYS_SDRAM_SIZE (CONFIG_SYS_SDRAM0_SIZE + CONFIG_SYS_SDRAM1_SIZE) |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 363 | |
| 364 | /*----------------------------------------------------------------------- |
| 365 | * Hard Reset Configuration Words |
| 366 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 367 | #if defined(CONFIG_SYS_PPMC_BOOT_LOW) |
| 368 | # define CONFIG_SYS_PPMC_HRCW_BOOT_FLAGS (HRCW_CIP | HRCW_BMS) |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 369 | #else |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 370 | # define CONFIG_SYS_PPMC_HRCW_BOOT_FLAGS (0) |
| 371 | #endif /* defined(CONFIG_SYS_PPMC_BOOT_LOW) */ |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 372 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 373 | /* get the HRCW ISB field from CONFIG_SYS_IMMR */ |
| 374 | #define CONFIG_SYS_PPMC_HRCW_IMMR ( ((CONFIG_SYS_IMMR & 0x10000000) >> 10) | \ |
| 375 | ((CONFIG_SYS_IMMR & 0x01000000) >> 7) | \ |
| 376 | ((CONFIG_SYS_IMMR & 0x00100000) >> 4) ) |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 377 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 378 | #define CONFIG_SYS_HRCW_MASTER ( HRCW_EBM | \ |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 379 | HRCW_BPS11 | \ |
| 380 | HRCW_L2CPC10 | \ |
| 381 | HRCW_DPPC00 | \ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 382 | CONFIG_SYS_PPMC_HRCW_IMMR | \ |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 383 | HRCW_MMR00 | \ |
| 384 | HRCW_LBPC00 | \ |
| 385 | HRCW_APPC10 | \ |
| 386 | HRCW_CS10PC00 | \ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 387 | (CONFIG_SYS_PPMC_MODCK_H & HRCW_MODCK_H1111) | \ |
| 388 | CONFIG_SYS_PPMC_HRCW_BOOT_FLAGS ) |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 389 | |
| 390 | /* no slaves */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 391 | #define CONFIG_SYS_HRCW_SLAVE1 0 |
| 392 | #define CONFIG_SYS_HRCW_SLAVE2 0 |
| 393 | #define CONFIG_SYS_HRCW_SLAVE3 0 |
| 394 | #define CONFIG_SYS_HRCW_SLAVE4 0 |
| 395 | #define CONFIG_SYS_HRCW_SLAVE5 0 |
| 396 | #define CONFIG_SYS_HRCW_SLAVE6 0 |
| 397 | #define CONFIG_SYS_HRCW_SLAVE7 0 |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 398 | |
| 399 | /*----------------------------------------------------------------------- |
| 400 | * Definitions for initial stack pointer and data area (in DPRAM) |
| 401 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 402 | #define CONFIG_SYS_INIT_RAM_ADDR CONFIG_SYS_IMMR |
Wolfgang Denk | 1c2e98e | 2010-10-26 13:32:32 +0200 | [diff] [blame] | 403 | #define CONFIG_SYS_INIT_RAM_SIZE 0x4000 /* Size of used area in DPRAM */ |
Wolfgang Denk | 0191e47 | 2010-10-26 14:34:52 +0200 | [diff] [blame] | 404 | #define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE) |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 405 | #define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 406 | |
| 407 | /*----------------------------------------------------------------------- |
| 408 | * Start addresses for the final memory configuration |
| 409 | * (Set up by the startup code) |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 410 | * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0 |
| 411 | * Note also that the logic that sets CONFIG_SYS_RAMBOOT is platform dependent. |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 412 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 413 | #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_FLASH0_BASE |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 414 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 415 | #ifndef CONFIG_SYS_MONITOR_BASE |
| 416 | #define CONFIG_SYS_MONITOR_BASE 0x0ff80000 |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 417 | #endif |
| 418 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 419 | #if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE) |
| 420 | # define CONFIG_SYS_RAMBOOT |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 421 | #endif |
| 422 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 423 | #define CONFIG_SYS_MONITOR_LEN (256 << 10) /* Reserve 374 kB for Monitor */ |
| 424 | #define CONFIG_SYS_MALLOC_LEN (128 << 10) /* Reserve 128 kB for malloc() */ |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 425 | |
| 426 | /* |
| 427 | * For booting Linux, the board info and command line data |
| 428 | * have to be in the first 8 MB of memory, since this is |
| 429 | * the maximum mapped by the Linux kernel during initialization. |
| 430 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 431 | #define CONFIG_SYS_BOOTMAPSZ (8 << 20) /* Initial Memory map for Linux */ |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 432 | |
| 433 | /*----------------------------------------------------------------------- |
| 434 | * FLASH and environment organization |
| 435 | */ |
| 436 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 437 | #define CONFIG_SYS_FLASH_CFI 1 /* Flash is CFI conformant */ |
Jean-Christophe PLAGNIOL-VILLARD | 8d94c23 | 2008-08-13 01:40:42 +0200 | [diff] [blame] | 438 | #define CONFIG_FLASH_CFI_DRIVER 1 /* Use the common driver */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 439 | #define CONFIG_SYS_MAX_FLASH_SECT 128 /* max number of sectors on one chip */ |
| 440 | #define CONFIG_SYS_MAX_FLASH_BANKS 1 /* max number of memory banks */ |
| 441 | #define CONFIG_SYS_FLASH_INCREMENT 0 /* there is only one bank */ |
| 442 | #define CONFIG_SYS_FLASH_PROTECTION 1 /* use hardware protection */ |
| 443 | #define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 1 /* use buffered writes (20x faster) */ |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 444 | |
| 445 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 446 | #ifndef CONFIG_SYS_RAMBOOT |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 447 | |
Jean-Christophe PLAGNIOL-VILLARD | 53db4cd | 2008-09-10 22:48:04 +0200 | [diff] [blame] | 448 | # define CONFIG_ENV_IS_IN_FLASH 1 |
Jean-Christophe PLAGNIOL-VILLARD | 7e1cda6 | 2008-09-10 22:48:06 +0200 | [diff] [blame] | 449 | # ifdef CONFIG_ENV_IN_OWN_SECT |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 450 | # define CONFIG_ENV_ADDR (CONFIG_SYS_MONITOR_BASE + 0x40000) |
Jean-Christophe PLAGNIOL-VILLARD | 7e1cda6 | 2008-09-10 22:48:06 +0200 | [diff] [blame] | 451 | # define CONFIG_ENV_SECT_SIZE 0x40000 |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 452 | # else |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 453 | # define CONFIG_ENV_ADDR (CONFIG_SYS_FLASH_BASE + CONFIG_SYS_MONITOR_LEN - CONFIG_ENV_SECT_SIZE) |
Jean-Christophe PLAGNIOL-VILLARD | 7e1cda6 | 2008-09-10 22:48:06 +0200 | [diff] [blame] | 454 | # define CONFIG_ENV_SIZE 0x1000 /* Total Size of Environment Sector */ |
| 455 | # define CONFIG_ENV_SECT_SIZE 0x40000 /* see README - env sect real size */ |
| 456 | # endif /* CONFIG_ENV_IN_OWN_SECT */ |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 457 | |
| 458 | #else |
Jean-Christophe PLAGNIOL-VILLARD | 53db4cd | 2008-09-10 22:48:04 +0200 | [diff] [blame] | 459 | # define CONFIG_ENV_IS_IN_FLASH 1 |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 460 | # define CONFIG_ENV_ADDR (CONFIG_SYS_FLASH_BASE + 0x40000) |
Jean-Christophe PLAGNIOL-VILLARD | 7e1cda6 | 2008-09-10 22:48:06 +0200 | [diff] [blame] | 461 | #define CONFIG_ENV_SIZE 0x1000 |
| 462 | # define CONFIG_ENV_SECT_SIZE 0x40000 |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 463 | #endif /* CONFIG_SYS_RAMBOOT */ |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 464 | |
| 465 | /*----------------------------------------------------------------------- |
| 466 | * Cache Configuration |
| 467 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 468 | #define CONFIG_SYS_CACHELINE_SIZE 32 /* For MPC8260 CPU */ |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 469 | |
Jon Loeliger | aa2d2c2 | 2007-07-04 22:33:17 -0500 | [diff] [blame] | 470 | #if defined(CONFIG_CMD_KGDB) |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 471 | # define CONFIG_SYS_CACHELINE_SHIFT 5 /* log base 2 of the above value */ |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 472 | #endif |
| 473 | |
| 474 | /*----------------------------------------------------------------------- |
| 475 | * HIDx - Hardware Implementation-dependent Registers 2-11 |
| 476 | *----------------------------------------------------------------------- |
| 477 | * HID0 also contains cache control - initially enable both caches and |
| 478 | * invalidate contents, then the final state leaves only the instruction |
| 479 | * cache enabled. Note that Power-On and Hard reset invalidate the caches, |
| 480 | * but Soft reset does not. |
| 481 | * |
| 482 | * HID1 has only read-only information - nothing to set. |
| 483 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 484 | #define CONFIG_SYS_HID0_INIT (HID0_ICE |\ |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 485 | HID0_DCE |\ |
| 486 | HID0_ICFI |\ |
| 487 | HID0_DCI |\ |
| 488 | HID0_IFEM |\ |
| 489 | HID0_ABE) |
| 490 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 491 | #define CONFIG_SYS_HID0_FINAL (HID0_ICE |\ |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 492 | HID0_IFEM |\ |
| 493 | HID0_ABE |\ |
| 494 | HID0_EMCP) |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 495 | #define CONFIG_SYS_HID2 0 |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 496 | |
| 497 | /*----------------------------------------------------------------------- |
| 498 | * RMR - Reset Mode Register |
| 499 | *----------------------------------------------------------------------- |
| 500 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 501 | #define CONFIG_SYS_RMR 0 |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 502 | |
| 503 | /*----------------------------------------------------------------------- |
| 504 | * BCR - Bus Configuration 4-25 |
| 505 | *----------------------------------------------------------------------- |
| 506 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 507 | #define CONFIG_SYS_BCR (BCR_EBM |\ |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 508 | 0x30000000) |
| 509 | |
| 510 | /*----------------------------------------------------------------------- |
| 511 | * SIUMCR - SIU Module Configuration 4-31 |
| 512 | * Ref Section 4.3.2.6 page 4-31 |
| 513 | *----------------------------------------------------------------------- |
| 514 | */ |
| 515 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 516 | #define CONFIG_SYS_SIUMCR (SIUMCR_ESE |\ |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 517 | SIUMCR_DPPC00 |\ |
| 518 | SIUMCR_L2CPC10 |\ |
| 519 | SIUMCR_LBPC00 |\ |
| 520 | SIUMCR_APPC10 |\ |
| 521 | SIUMCR_CS10PC00 |\ |
| 522 | SIUMCR_BCTLC00 |\ |
| 523 | SIUMCR_MMR00) |
| 524 | |
| 525 | |
| 526 | /*----------------------------------------------------------------------- |
| 527 | * SYPCR - System Protection Control 11-9 |
| 528 | * SYPCR can only be written once after reset! |
| 529 | *----------------------------------------------------------------------- |
| 530 | * Watchdog & Bus Monitor Timer max, 60x Bus Monitor enable |
| 531 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 532 | #define CONFIG_SYS_SYPCR (SYPCR_SWTC |\ |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 533 | SYPCR_BMT |\ |
| 534 | SYPCR_PBME |\ |
| 535 | SYPCR_LBME |\ |
| 536 | SYPCR_SWRI |\ |
| 537 | SYPCR_SWP) |
| 538 | |
| 539 | /*----------------------------------------------------------------------- |
| 540 | * TMCNTSC - Time Counter Status and Control 4-40 |
| 541 | *----------------------------------------------------------------------- |
| 542 | * Clear once per Second and Alarm Interrupt Status, Set 32KHz timersclk, |
| 543 | * and enable Time Counter |
| 544 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 545 | #define CONFIG_SYS_TMCNTSC (TMCNTSC_SEC |\ |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 546 | TMCNTSC_ALR |\ |
| 547 | TMCNTSC_TCF |\ |
| 548 | TMCNTSC_TCE) |
| 549 | |
| 550 | /*----------------------------------------------------------------------- |
| 551 | * PISCR - Periodic Interrupt Status and Control 4-42 |
| 552 | *----------------------------------------------------------------------- |
| 553 | * Clear Periodic Interrupt Status, Set 32KHz timersclk, and enable |
| 554 | * Periodic timer |
| 555 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 556 | #define CONFIG_SYS_PISCR (PISCR_PS |\ |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 557 | PISCR_PTF |\ |
| 558 | PISCR_PTE) |
| 559 | |
| 560 | /*----------------------------------------------------------------------- |
| 561 | * SCCR - System Clock Control 9-8 |
| 562 | *----------------------------------------------------------------------- |
| 563 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 564 | #define CONFIG_SYS_SCCR 0 |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 565 | |
| 566 | /*----------------------------------------------------------------------- |
| 567 | * RCCR - RISC Controller Configuration 13-7 |
| 568 | *----------------------------------------------------------------------- |
| 569 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 570 | #define CONFIG_SYS_RCCR 0 |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 571 | |
| 572 | /* |
| 573 | * Initialize Memory Controller: |
| 574 | * |
| 575 | * Bank Bus Machine PortSz Device |
| 576 | * ---- --- ------- ------ ------ |
| 577 | * 0 60x GPCM 32 bit FLASH (SIMM - 32MB) * |
| 578 | * 1 unused |
| 579 | * 2 60x SDRAM 64 bit SDRAM (DIMM - 128MB) |
| 580 | * 3 60x SDRAM 64 bit SDRAM (DIMM - 128MB) |
| 581 | * 4 Local SDRAM 32 bit SDRAM (on board - 16MB) |
| 582 | * 5 60x GPCM 8 bit Mailbox/EEPROM (8KB) |
| 583 | * 6 60x GPCM 8 bit FLASH (on board - 2MB) * |
| 584 | * 7 60x GPCM 8 bit LEDs, switches |
| 585 | * |
| 586 | * (*) This configuration requires the PPMC8260 be configured |
| 587 | * so that *CS0 goes to the FLASH SIMM, and *CS6 goes to |
| 588 | * the on board FLASH. In other words, JP24 should have |
| 589 | * pins 1 and 2 jumpered and pins 3 and 4 jumpered. |
| 590 | * |
| 591 | */ |
| 592 | |
| 593 | /*----------------------------------------------------------------------- |
| 594 | * BR0,BR1 - Base Register |
| 595 | * Ref: Section 10.3.1 on page 10-14 |
| 596 | * OR0,OR1 - Option Register |
| 597 | * Ref: Section 10.3.2 on page 10-18 |
| 598 | *----------------------------------------------------------------------- |
| 599 | */ |
| 600 | |
| 601 | /* Bank 0,1 - FLASH SIMM |
| 602 | * |
| 603 | * This expects the FLASH SIMM to be connected to *CS0 |
| 604 | * It consists of 4 AM29F080B parts. |
| 605 | * |
| 606 | * Note: For the 4 MB SIMM, *CS1 is unused. |
| 607 | */ |
| 608 | |
| 609 | /* BR0 is configured as follows: |
| 610 | * |
| 611 | * - Base address of 0xFE000000 |
| 612 | * - 32 bit port size |
| 613 | * - Data errors checking is disabled |
| 614 | * - Read and write access |
| 615 | * - GPCM 60x bus |
| 616 | * - Access are handled by the memory controller according to MSEL |
| 617 | * - Not used for atomic operations |
| 618 | * - No data pipelining is done |
| 619 | * - Valid |
| 620 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 621 | #define CONFIG_SYS_BR0_PRELIM ((CONFIG_SYS_FLASH0_BASE & BRx_BA_MSK) |\ |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 622 | BRx_PS_32 |\ |
| 623 | BRx_MS_GPCM_P |\ |
| 624 | BRx_V) |
| 625 | |
| 626 | /* OR0 is configured as follows: |
| 627 | * |
| 628 | * - 32 MB |
| 629 | * - *BCTL0 is asserted upon access to the current memory bank |
| 630 | * - *CW / *WE are negated a quarter of a clock earlier |
| 631 | * - *CS is output at the same time as the address lines |
| 632 | * - Uses a clock cycle length of 5 |
| 633 | * - *PSDVAL is generated internally by the memory controller |
| 634 | * unless *GTA is asserted earlier externally. |
| 635 | * - Relaxed timing is generated by the GPCM for accesses |
| 636 | * initiated to this memory region. |
| 637 | * - One idle clock is inserted between a read access from the |
| 638 | * current bank and the next access. |
| 639 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 640 | #define CONFIG_SYS_OR0_PRELIM (MEG_TO_AM(CONFIG_SYS_FLASH0_SIZE) |\ |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 641 | ORxG_CSNT |\ |
| 642 | ORxG_ACS_DIV1 |\ |
| 643 | ORxG_SCY_5_CLK |\ |
| 644 | ORxG_TRLX |\ |
| 645 | ORxG_EHTR) |
| 646 | |
| 647 | /*----------------------------------------------------------------------- |
| 648 | * BR2,BR3 - Base Register |
| 649 | * Ref: Section 10.3.1 on page 10-14 |
| 650 | * OR2,OR3 - Option Register |
| 651 | * Ref: Section 10.3.2 on page 10-16 |
| 652 | *----------------------------------------------------------------------- |
| 653 | */ |
| 654 | |
| 655 | /* |
| 656 | * Bank 2,3 - 128 MB SDRAM DIMM |
| 657 | */ |
| 658 | |
| 659 | /* With a 128 MB DIMM, the BR2 is configured as follows: |
| 660 | * |
| 661 | * - Base address of 0x00000000/0x08000000 |
| 662 | * - 64 bit port size (60x bus only) |
| 663 | * - Data errors checking is disabled |
| 664 | * - Read and write access |
| 665 | * - SDRAM 60x bus |
| 666 | * - Access are handled by the memory controller according to MSEL |
| 667 | * - Not used for atomic operations |
| 668 | * - No data pipelining is done |
| 669 | * - Valid |
| 670 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 671 | #define CONFIG_SYS_BR2_PRELIM ((CONFIG_SYS_SDRAM0_BASE & BRx_BA_MSK) |\ |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 672 | BRx_PS_64 |\ |
| 673 | BRx_MS_SDRAM_P |\ |
| 674 | BRx_V) |
| 675 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 676 | #define CONFIG_SYS_BR3_PRELIM ((CONFIG_SYS_SDRAM1_BASE & BRx_BA_MSK) |\ |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 677 | BRx_PS_64 |\ |
| 678 | BRx_MS_SDRAM_P |\ |
| 679 | BRx_V) |
| 680 | |
| 681 | /* With a 128 MB DIMM, the OR2 is configured as follows: |
| 682 | * |
| 683 | * - 128 MB |
| 684 | * - 4 internal banks per device |
| 685 | * - Row start address bit is A8 with PSDMR[PBI] = 0 |
| 686 | * - 13 row address lines |
| 687 | * - Back-to-back page mode |
| 688 | * - Internal bank interleaving within save device enabled |
| 689 | */ |
| 690 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 691 | #define CONFIG_SYS_OR2_PRELIM (MEG_TO_AM(CONFIG_SYS_SDRAM0_SIZE) |\ |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 692 | ORxS_BPD_4 |\ |
| 693 | ORxS_ROWST_PBI0_A7 |\ |
| 694 | ORxS_NUMR_13) |
| 695 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 696 | #define CONFIG_SYS_OR3_PRELIM (MEG_TO_AM(CONFIG_SYS_SDRAM1_SIZE) |\ |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 697 | ORxS_BPD_4 |\ |
| 698 | ORxS_ROWST_PBI0_A7 |\ |
| 699 | ORxS_NUMR_13) |
| 700 | |
| 701 | |
| 702 | /*----------------------------------------------------------------------- |
| 703 | * PSDMR - 60x Bus SDRAM Mode Register |
| 704 | * Ref: Section 10.3.3 on page 10-21 |
| 705 | *----------------------------------------------------------------------- |
| 706 | */ |
| 707 | |
| 708 | /* With a 128 MB DIMM, the PSDMR is configured as follows: |
| 709 | * |
| 710 | * - Page Based Interleaving, |
| 711 | * - Refresh Enable, |
| 712 | * - Normal Operation |
| 713 | * - Address Multiplexing where A5 is output on A14 pin |
| 714 | * (A6 on A15, and so on), |
| 715 | * - use address pins A13-A15 as bank select, |
| 716 | * - A9 is output on SDA10 during an ACTIVATE command, |
| 717 | * - earliest timing for ACTIVATE command after REFRESH command is 7 clocks, |
| 718 | * - earliest timing for ACTIVATE or REFRESH command after PRECHARGE command |
| 719 | * is 3 clocks, |
| 720 | * - earliest timing for READ/WRITE command after ACTIVATE command is |
| 721 | * 2 clocks, |
| 722 | * - earliest timing for PRECHARGE after last data was read is 1 clock, |
| 723 | * - earliest timing for PRECHARGE after last data was written is 1 clock, |
| 724 | * - External Address Multiplexing enabled |
| 725 | * - CAS Latency is 2. |
| 726 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 727 | #define CONFIG_SYS_PSDMR (PSDMR_RFEN |\ |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 728 | PSDMR_SDAM_A14_IS_A5 |\ |
| 729 | PSDMR_BSMA_A13_A15 |\ |
| 730 | PSDMR_SDA10_PBI0_A9 |\ |
| 731 | PSDMR_RFRC_7_CLK |\ |
| 732 | PSDMR_PRETOACT_3W |\ |
| 733 | PSDMR_ACTTORW_2W |\ |
| 734 | PSDMR_LDOTOPRE_1C |\ |
| 735 | PSDMR_WRC_1C |\ |
| 736 | PSDMR_EAMUX |\ |
| 737 | PSDMR_CL_2) |
| 738 | |
| 739 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 740 | #define CONFIG_SYS_PSRT 0x0e |
| 741 | #define CONFIG_SYS_MPTPR MPTPR_PTP_DIV32 |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 742 | |
| 743 | |
| 744 | /*----------------------------------------------------------------------- |
| 745 | * BR4 - Base Register |
| 746 | * Ref: Section 10.3.1 on page 10-14 |
| 747 | * OR4 - Option Register |
| 748 | * Ref: Section 10.3.2 on page 10-16 |
| 749 | *----------------------------------------------------------------------- |
| 750 | */ |
| 751 | |
| 752 | /* |
| 753 | * Bank 4 - On board SDRAM |
| 754 | * |
| 755 | */ |
| 756 | /* With 16 MB of onboard SDRAM BR4 is configured as follows |
| 757 | * |
| 758 | * - Base address 0x38000000 |
| 759 | * - 32 bit port size |
| 760 | * - Data error checking disabled |
| 761 | * - Read/Write access |
| 762 | * - SDRAM local bus |
| 763 | * - Not used for atomic operations |
| 764 | * - No data pipelining is done |
| 765 | * - Valid |
| 766 | * |
| 767 | */ |
| 768 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 769 | #define CONFIG_SYS_BR4_PRELIM ((CONFIG_SYS_SDRAM2_BASE & BRx_BA_MSK) |\ |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 770 | BRx_PS_32 |\ |
| 771 | BRx_DECC_NONE |\ |
| 772 | BRx_MS_SDRAM_L |\ |
| 773 | BRx_V) |
| 774 | |
| 775 | /* |
| 776 | * With 16MB SDRAM, OR4 is configured as follows |
| 777 | * - 4 internal banks per device |
| 778 | * - Row start address bit is A10 with LSDMR[PBI] = 0 |
| 779 | * - 12 row address lines |
| 780 | * - Back-to-back page mode |
| 781 | * - Internal bank interleaving within save device enabled |
| 782 | */ |
| 783 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 784 | #define CONFIG_SYS_OR4_PRELIM (MEG_TO_AM(CONFIG_SYS_SDRAM2_SIZE) |\ |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 785 | ORxS_BPD_4 |\ |
| 786 | ORxS_ROWST_PBI0_A10 |\ |
| 787 | ORxS_NUMR_12) |
| 788 | |
| 789 | |
| 790 | /*----------------------------------------------------------------------- |
| 791 | * LSDMR - Local Bus SDRAM Mode Register |
| 792 | * Ref: Section 10.3.4 on page 10-24 |
| 793 | *----------------------------------------------------------------------- |
| 794 | */ |
| 795 | |
| 796 | /* With a 16 MB onboard SDRAM, the LSDMR is configured as follows: |
| 797 | * |
| 798 | * - Page Based Interleaving, |
| 799 | * - Refresh Enable, |
| 800 | * - Normal Operation |
| 801 | * - Address Multiplexing where A5 is output on A13 pin |
| 802 | * (A6 on A15, and so on), |
| 803 | * - use address pins A15-A17 as bank select, |
| 804 | * - A11 is output on SDA10 during an ACTIVATE command, |
| 805 | * - earliest timing for ACTIVATE command after REFRESH command is 7 clocks, |
| 806 | * - earliest timing for ACTIVATE or REFRESH command after PRECHARGE command |
| 807 | * is 2 clocks, |
| 808 | * - earliest timing for READ/WRITE command after ACTIVATE command is |
| 809 | * 2 clocks, |
| 810 | * - SDRAM burst length is 8 |
| 811 | * - earliest timing for PRECHARGE after last data was read is 1 clock, |
| 812 | * - earliest timing for PRECHARGE after last data was written is 1 clock, |
| 813 | * - External Address Multiplexing disabled |
| 814 | * - CAS Latency is 2. |
| 815 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 816 | #define CONFIG_SYS_LSDMR (PSDMR_RFEN |\ |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 817 | PSDMR_SDAM_A13_IS_A5 |\ |
| 818 | PSDMR_BSMA_A15_A17 |\ |
| 819 | PSDMR_SDA10_PBI0_A11 |\ |
| 820 | PSDMR_RFRC_7_CLK |\ |
| 821 | PSDMR_PRETOACT_2W |\ |
| 822 | PSDMR_ACTTORW_2W |\ |
| 823 | PSDMR_BL |\ |
| 824 | PSDMR_LDOTOPRE_1C |\ |
| 825 | PSDMR_WRC_1C |\ |
| 826 | PSDMR_CL_2) |
| 827 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 828 | #define CONFIG_SYS_LSRT 0x0e |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 829 | |
| 830 | /*----------------------------------------------------------------------- |
| 831 | * BR5 - Base Register |
| 832 | * Ref: Section 10.3.1 on page 10-14 |
| 833 | * OR5 - Option Register |
| 834 | * Ref: Section 10.3.2 on page 10-16 |
| 835 | *----------------------------------------------------------------------- |
| 836 | */ |
| 837 | |
| 838 | /* |
| 839 | * Bank 5 EEProm and Mailbox |
| 840 | * |
| 841 | * The EEPROM and mailbox live on the same chip select. |
| 842 | * the eeprom is selected if the MSb of the address is set and the mailbox is |
| 843 | * selected if the MSb of the address is clear. |
| 844 | * |
| 845 | */ |
| 846 | |
| 847 | /* BR5 is configured as follows: |
| 848 | * |
| 849 | * - Base address of 0x32000000/0xF2000000 |
| 850 | * - 8 bit |
| 851 | * - Data error checking disabled |
| 852 | * - Read/Write access |
| 853 | * - GPCM 60x Bus |
| 854 | * - SDRAM local bus |
| 855 | * - No data pipelining is done |
| 856 | * - Valid |
| 857 | */ |
| 858 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 859 | #define CONFIG_SYS_BR5_PRELIM ((CONFIG_SYS_MAILBOX_BASE & BRx_BA_MSK) |\ |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 860 | BRx_PS_8 |\ |
| 861 | BRx_DECC_NONE |\ |
| 862 | BRx_MS_GPCM_P |\ |
| 863 | BRx_V) |
| 864 | /* OR5 is configured as follows |
| 865 | * - buffer control enabled |
| 866 | * - chip select negated normally |
| 867 | * - CS output 1/2 clock after address |
| 868 | * - 15 wait states |
| 869 | * - *PSDVAL is generated internally by the memory controller |
| 870 | * unless *GTA is asserted earlier externally. |
| 871 | * - Relaxed timing is generated by the GPCM for accesses |
| 872 | * initiated to this memory region. |
| 873 | * - One idle clock is inserted between a read access from the |
| 874 | * current bank and the next access. |
| 875 | */ |
| 876 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 877 | #define CONFIG_SYS_OR5_PRELIM ((P2SZ_TO_AM(CONFIG_SYS_MAILBOX_SIZE) & ~0x80000000) |\ |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 878 | ORxG_ACS_DIV2 |\ |
| 879 | ORxG_SCY_15_CLK |\ |
| 880 | ORxG_TRLX |\ |
| 881 | ORxG_EHTR) |
| 882 | |
| 883 | /*----------------------------------------------------------------------- |
| 884 | * BR6 - Base Register |
| 885 | * Ref: Section 10.3.1 on page 10-14 |
| 886 | * OR6 - Option Register |
| 887 | * Ref: Section 10.3.2 on page 10-18 |
| 888 | *----------------------------------------------------------------------- |
| 889 | */ |
| 890 | |
| 891 | /* Bank 6 - I/O select |
| 892 | * |
| 893 | */ |
| 894 | |
| 895 | /* BR6 is configured as follows: |
| 896 | * |
| 897 | * - Base address of 0xE0000000 |
| 898 | * - 16 bit port size |
| 899 | * - Data errors checking is disabled |
| 900 | * - Read and write access |
| 901 | * - GPCM 60x bus |
| 902 | * - Access are handled by the memory controller according to MSEL |
| 903 | * - Not used for atomic operations |
| 904 | * - No data pipelining is done |
| 905 | * - Valid |
| 906 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 907 | #define CONFIG_SYS_BR6_PRELIM ((CONFIG_SYS_IOSELECT_BASE & BRx_BA_MSK) |\ |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 908 | BRx_PS_16 |\ |
| 909 | BRx_MS_GPCM_P |\ |
| 910 | BRx_V) |
| 911 | |
| 912 | /* OR6 is configured as follows |
| 913 | * - buffer control enabled |
| 914 | * - chip select negated normally |
| 915 | * - CS output 1/2 clock after address |
| 916 | * - 15 wait states |
| 917 | * - *PSDVAL is generated internally by the memory controller |
| 918 | * unless *GTA is asserted earlier externally. |
| 919 | * - Relaxed timing is generated by the GPCM for accesses |
| 920 | * initiated to this memory region. |
| 921 | * - One idle clock is inserted between a read access from the |
| 922 | * current bank and the next access. |
| 923 | */ |
| 924 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 925 | #define CONFIG_SYS_OR6_PRELIM (MEG_TO_AM(CONFIG_SYS_IOSELECT_SIZE) |\ |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 926 | ORxG_ACS_DIV2 |\ |
| 927 | ORxG_SCY_15_CLK |\ |
| 928 | ORxG_TRLX |\ |
| 929 | ORxG_EHTR) |
| 930 | |
| 931 | |
| 932 | /*----------------------------------------------------------------------- |
| 933 | * BR7 - Base Register |
| 934 | * Ref: Section 10.3.1 on page 10-14 |
| 935 | * OR7 - Option Register |
| 936 | * Ref: Section 10.3.2 on page 10-18 |
| 937 | *----------------------------------------------------------------------- |
| 938 | */ |
| 939 | |
| 940 | /* Bank 7 - LEDs and switches |
| 941 | * |
| 942 | * LEDs are at 0x00001 (write only) |
| 943 | * switches are at 0x00001 (read only) |
| 944 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 945 | #ifdef CONFIG_SYS_LED_BASE |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 946 | |
| 947 | /* BR7 is configured as follows: |
| 948 | * |
| 949 | * - Base address of 0xA0000000 |
| 950 | * - 8 bit port size |
| 951 | * - Data errors checking is disabled |
| 952 | * - Read and write access |
| 953 | * - GPCM 60x bus |
| 954 | * - Access are handled by the memory controller according to MSEL |
| 955 | * - Not used for atomic operations |
| 956 | * - No data pipelining is done |
| 957 | * - Valid |
| 958 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 959 | #define CONFIG_SYS_BR7_PRELIM ((CONFIG_SYS_LED_BASE & BRx_BA_MSK) |\ |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 960 | BRx_PS_8 |\ |
| 961 | BRx_DECC_NONE |\ |
| 962 | BRx_MS_GPCM_P |\ |
| 963 | BRx_V) |
| 964 | |
| 965 | /* OR7 is configured as follows: |
| 966 | * |
| 967 | * - 1 byte |
| 968 | * - *BCTL0 is asserted upon access to the current memory bank |
| 969 | * - *CW / *WE are negated a quarter of a clock earlier |
| 970 | * - *CS is output at the same time as the address lines |
| 971 | * - Uses a clock cycle length of 15 |
| 972 | * - *PSDVAL is generated internally by the memory controller |
| 973 | * unless *GTA is asserted earlier externally. |
| 974 | * - Relaxed timing is generated by the GPCM for accesses |
| 975 | * initiated to this memory region. |
| 976 | * - One idle clock is inserted between a read access from the |
| 977 | * current bank and the next access. |
| 978 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 979 | #define CONFIG_SYS_OR7_PRELIM (ORxG_AM_MSK |\ |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 980 | ORxG_CSNT |\ |
| 981 | ORxG_ACS_DIV1 |\ |
| 982 | ORxG_SCY_15_CLK |\ |
| 983 | ORxG_TRLX |\ |
| 984 | ORxG_EHTR) |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 985 | #endif /* CONFIG_SYS_LED_BASE */ |
wdenk | fe8c280 | 2002-11-03 00:38:21 +0000 | [diff] [blame] | 986 | #endif /* __CONFIG_H */ |