Niklaus Giger | 62da808 | 2007-07-27 11:27:15 +0200 | [diff] [blame] | 1 | /* |
Niklaus Giger | bb2da71 | 2008-02-25 18:37:01 +0100 | [diff] [blame] | 2 | *(C) Copyright 2005-2008 Netstal Maschinen AG |
Niklaus Giger | 62da808 | 2007-07-27 11:27:15 +0200 | [diff] [blame] | 3 | * Niklaus Giger (Niklaus.Giger@netstal.com) |
| 4 | * |
| 5 | * See file CREDITS for list of people who contributed to this |
| 6 | * project. |
| 7 | * |
| 8 | * This program is free software; you can redistribute it and/or |
| 9 | * modify it under the terms of the GNU General Public License as |
| 10 | * published by the Free Software Foundation; either version 2 of |
| 11 | * the License, or (at your option) any later version. |
| 12 | * |
| 13 | * This program is distributed in the hope that it will be useful, |
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 | * GNU General Public License for more details. |
| 17 | * |
| 18 | * You should have received a copy of the GNU General Public License |
| 19 | * along with this program; if not, write to the Free Software |
| 20 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, |
| 21 | * MA 02111-1307 USA |
| 22 | */ |
| 23 | |
| 24 | /************************************************************************ |
| 25 | * hcu4.h - configuration for HCU4 board (similar to hcu5.h) |
| 26 | ***********************************************************************/ |
| 27 | |
| 28 | #ifndef __CONFIG_H |
| 29 | #define __CONFIG_H |
| 30 | |
| 31 | /*----------------------------------------------------------------------- |
| 32 | * High Level Configuration Options |
| 33 | *----------------------------------------------------------------------*/ |
| 34 | #define CONFIG_HCU4 1 /* Board is HCU4 */ |
| 35 | #define CONFIG_4xx 1 /* ... PPC4xx family */ |
Niklaus Giger | 62da808 | 2007-07-27 11:27:15 +0200 | [diff] [blame] | 36 | #define CONFIG_405GP 1 |
| 37 | #define CONFIG_4xx 1 |
Niklaus Giger | debcb10 | 2008-10-01 14:46:13 +0200 | [diff] [blame] | 38 | #define CONFIG_HOSTNAME hcu4 |
| 39 | |
Wolfgang Denk | 291ba1b | 2010-10-06 09:05:45 +0200 | [diff] [blame^] | 40 | #define CONFIG_SYS_TEXT_BASE 0xFFFB0000 |
| 41 | |
Niklaus Giger | debcb10 | 2008-10-01 14:46:13 +0200 | [diff] [blame] | 42 | /* |
| 43 | * Include common defines/options for all boards produced by Netstal Maschinen |
| 44 | */ |
| 45 | #include "netstal-common.h" |
Niklaus Giger | 62da808 | 2007-07-27 11:27:15 +0200 | [diff] [blame] | 46 | |
| 47 | #define CONFIG_SYS_CLK_FREQ 33333333 /* external freq to pll */ |
| 48 | |
| 49 | #define CONFIG_BOARD_EARLY_INIT_F 1 /* Call board_early_init_f */ |
| 50 | #define CONFIG_MISC_INIT_R 1 /* Call misc_init_r */ |
| 51 | |
| 52 | /*----------------------------------------------------------------------- |
| 53 | * Base addresses -- Note these are effective addresses where the |
| 54 | * actual resources get mapped (not physical addresses) |
| 55 | *----------------------------------------------------------------------*/ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 56 | #define CONFIG_SYS_MONITOR_LEN (320 * 1024) /* Reserve 320 kB for Monitor */ |
| 57 | #define CONFIG_SYS_MALLOC_LEN (256 * 1024) /* Reserve 256 kB for malloc() */ |
Niklaus Giger | 62da808 | 2007-07-27 11:27:15 +0200 | [diff] [blame] | 58 | |
| 59 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 60 | #define CONFIG_SYS_SDRAM_BASE 0x00000000 /* _must_ be 0 */ |
| 61 | #define CONFIG_SYS_FLASH_BASE 0xfff80000 /* start of FLASH */ |
Wolfgang Denk | 0708bc6 | 2010-10-07 21:51:12 +0200 | [diff] [blame] | 62 | #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE |
Niklaus Giger | 62da808 | 2007-07-27 11:27:15 +0200 | [diff] [blame] | 63 | |
| 64 | /* ... with on-chip memory here (4KBytes) */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 65 | #define CONFIG_SYS_OCM_DATA_ADDR 0xF4000000 |
| 66 | #define CONFIG_SYS_OCM_DATA_SIZE 0x00001000 |
Niklaus Giger | 62da808 | 2007-07-27 11:27:15 +0200 | [diff] [blame] | 67 | /* Do not set up locked dcache as init ram. */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 68 | #undef CONFIG_SYS_INIT_DCACHE_CS |
Niklaus Giger | 62da808 | 2007-07-27 11:27:15 +0200 | [diff] [blame] | 69 | |
| 70 | /* Use the On-Chip-Memory (OCM) as a temporary stack for the startup code. */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 71 | #define CONFIG_SYS_TEMP_STACK_OCM 1 |
Niklaus Giger | 62da808 | 2007-07-27 11:27:15 +0200 | [diff] [blame] | 72 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 73 | #define CONFIG_SYS_INIT_RAM_ADDR CONFIG_SYS_OCM_DATA_ADDR /* OCM */ |
| 74 | #define CONFIG_SYS_INIT_RAM_END CONFIG_SYS_OCM_DATA_SIZE |
| 75 | #define CONFIG_SYS_GBL_DATA_SIZE 256 /* num bytes initial data */ |
| 76 | #define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE) |
Michael Zaidman | f969a68 | 2010-09-20 08:51:53 +0200 | [diff] [blame] | 77 | #define CONFIG_SYS_INIT_SP_OFFSET (CONFIG_SYS_GBL_DATA_OFFSET - 0x4) |
Niklaus Giger | 62da808 | 2007-07-27 11:27:15 +0200 | [diff] [blame] | 78 | |
| 79 | /*----------------------------------------------------------------------- |
| 80 | * Serial Port |
| 81 | *----------------------------------------------------------------------*/ |
| 82 | /* |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 83 | * If CONFIG_SYS_EXT_SERIAL_CLOCK, then the UART divisor is 1. |
| 84 | * If CONFIG_SYS_405_UART_ERRATA_59, then UART divisor is 31. |
| 85 | * Otherwise, UART divisor is determined by CPU Clock and CONFIG_SYS_BASE_BAUD value. |
Niklaus Giger | 62da808 | 2007-07-27 11:27:15 +0200 | [diff] [blame] | 86 | * The Linux BASE_BAUD define should match this configuration. |
| 87 | * baseBaud = cpuClock/(uartDivisor*16) |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 88 | * If CONFIG_SYS_405_UART_ERRATA_59 and 200MHz CPU clock, |
Niklaus Giger | 62da808 | 2007-07-27 11:27:15 +0200 | [diff] [blame] | 89 | * set Linux BASE_BAUD to 403200. |
| 90 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 91 | #undef CONFIG_SYS_405_UART_ERRATA_59 /* 405GP/CR Rev. D silicon */ |
| 92 | #define CONFIG_SYS_BASE_BAUD 691200 |
Niklaus Giger | 62da808 | 2007-07-27 11:27:15 +0200 | [diff] [blame] | 93 | |
Niklaus Giger | 62da808 | 2007-07-27 11:27:15 +0200 | [diff] [blame] | 94 | /* Set console baudrate to 9600 */ |
| 95 | #define CONFIG_BAUDRATE 9600 |
| 96 | |
Niklaus Giger | 62da808 | 2007-07-27 11:27:15 +0200 | [diff] [blame] | 97 | /*----------------------------------------------------------------------- |
Niklaus Giger | 1767b38 | 2008-01-16 18:37:50 +0100 | [diff] [blame] | 98 | * Flash |
| 99 | *----------------------------------------------------------------------*/ |
| 100 | |
Niklaus Giger | bb2da71 | 2008-02-25 18:37:01 +0100 | [diff] [blame] | 101 | /* Use common CFI driver */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 102 | #define CONFIG_SYS_FLASH_CFI |
Jean-Christophe PLAGNIOL-VILLARD | 8d94c23 | 2008-08-13 01:40:42 +0200 | [diff] [blame] | 103 | #define CONFIG_FLASH_CFI_DRIVER |
Niklaus Giger | bb2da71 | 2008-02-25 18:37:01 +0100 | [diff] [blame] | 104 | /* board provides its own flash_init code */ |
| 105 | #define CONFIG_FLASH_CFI_LEGACY 1 |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 106 | #define CONFIG_SYS_FLASH_CFI_WIDTH FLASH_CFI_8BIT |
| 107 | #define CONFIG_SYS_FLASH_LEGACY_512Kx8 1 |
Niklaus Giger | 1767b38 | 2008-01-16 18:37:50 +0100 | [diff] [blame] | 108 | |
Niklaus Giger | bb2da71 | 2008-02-25 18:37:01 +0100 | [diff] [blame] | 109 | /* print 'E' for empty sector on flinfo */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 110 | #define CONFIG_SYS_FLASH_EMPTY_INFO |
Niklaus Giger | 1767b38 | 2008-01-16 18:37:50 +0100 | [diff] [blame] | 111 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 112 | #define CONFIG_SYS_MAX_FLASH_BANKS 1 /* max number of memory banks */ |
| 113 | #define CONFIG_SYS_MAX_FLASH_SECT 8 /* max number of sectors on one chip */ |
Niklaus Giger | 1767b38 | 2008-01-16 18:37:50 +0100 | [diff] [blame] | 114 | |
| 115 | /*----------------------------------------------------------------------- |
Niklaus Giger | 62da808 | 2007-07-27 11:27:15 +0200 | [diff] [blame] | 116 | * Environment |
| 117 | *----------------------------------------------------------------------*/ |
| 118 | |
Jean-Christophe PLAGNIOL-VILLARD | fdb79c3 | 2008-09-10 22:47:59 +0200 | [diff] [blame] | 119 | #undef CONFIG_ENV_IS_IN_NVRAM |
Jean-Christophe PLAGNIOL-VILLARD | 53db4cd | 2008-09-10 22:48:04 +0200 | [diff] [blame] | 120 | #define CONFIG_ENV_IS_IN_FLASH |
Jean-Christophe PLAGNIOL-VILLARD | 68a8756 | 2008-09-10 22:48:00 +0200 | [diff] [blame] | 121 | #undef CONFIG_ENV_IS_NOWHERE |
Niklaus Giger | 62da808 | 2007-07-27 11:27:15 +0200 | [diff] [blame] | 122 | |
Jean-Christophe PLAGNIOL-VILLARD | e46af64 | 2008-09-05 09:19:30 +0200 | [diff] [blame] | 123 | #ifdef CONFIG_ENV_IS_IN_EEPROM |
Niklaus Giger | 62da808 | 2007-07-27 11:27:15 +0200 | [diff] [blame] | 124 | /* Put the environment after the SDRAM configuration */ |
Wolfgang Denk | a1be476 | 2008-05-20 16:00:29 +0200 | [diff] [blame] | 125 | #define PROM_SIZE 2048 |
Jean-Christophe PLAGNIOL-VILLARD | 7e1cda6 | 2008-09-10 22:48:06 +0200 | [diff] [blame] | 126 | #define CONFIG_ENV_OFFSET 512 |
| 127 | #define CONFIG_ENV_SIZE (PROM_SIZE-CONFIG_ENV_OFFSET) |
Niklaus Giger | 62da808 | 2007-07-27 11:27:15 +0200 | [diff] [blame] | 128 | #endif |
| 129 | |
Jean-Christophe PLAGNIOL-VILLARD | 53db4cd | 2008-09-10 22:48:04 +0200 | [diff] [blame] | 130 | #ifdef CONFIG_ENV_IS_IN_FLASH |
Niklaus Giger | 62da808 | 2007-07-27 11:27:15 +0200 | [diff] [blame] | 131 | /* Put the environment in Flash */ |
Jean-Christophe PLAGNIOL-VILLARD | 7e1cda6 | 2008-09-10 22:48:06 +0200 | [diff] [blame] | 132 | #define CONFIG_ENV_SECT_SIZE 0x10000 /* size of one complete sector */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 133 | #define CONFIG_ENV_ADDR ((-CONFIG_SYS_MONITOR_LEN)-CONFIG_ENV_SECT_SIZE) |
Jean-Christophe PLAGNIOL-VILLARD | 7e1cda6 | 2008-09-10 22:48:06 +0200 | [diff] [blame] | 134 | #define CONFIG_ENV_SIZE 8*1024 /* 8 KB Environment Sector */ |
Niklaus Giger | 62da808 | 2007-07-27 11:27:15 +0200 | [diff] [blame] | 135 | |
| 136 | /* Address and size of Redundant Environment Sector */ |
Jean-Christophe PLAGNIOL-VILLARD | 7e1cda6 | 2008-09-10 22:48:06 +0200 | [diff] [blame] | 137 | #define CONFIG_ENV_ADDR_REDUND (CONFIG_ENV_ADDR-CONFIG_ENV_SECT_SIZE) |
| 138 | #define CONFIG_ENV_SIZE_REDUND (CONFIG_ENV_SIZE) |
Niklaus Giger | 62da808 | 2007-07-27 11:27:15 +0200 | [diff] [blame] | 139 | #endif |
| 140 | |
| 141 | /*----------------------------------------------------------------------- |
| 142 | * I2C stuff for a ATMEL AT24C16 (2kB holding ENV, we are using the |
| 143 | * the first internal I2C controller of the PPC440EPx |
| 144 | *----------------------------------------------------------------------*/ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 145 | #define CONFIG_SYS_SPD_BUS_NUM 0 |
Niklaus Giger | 62da808 | 2007-07-27 11:27:15 +0200 | [diff] [blame] | 146 | |
Niklaus Giger | debcb10 | 2008-10-01 14:46:13 +0200 | [diff] [blame] | 147 | #define CONFIG_IPADDR 172.25.1.14 |
Niklaus Giger | 62da808 | 2007-07-27 11:27:15 +0200 | [diff] [blame] | 148 | |
Niklaus Giger | debcb10 | 2008-10-01 14:46:13 +0200 | [diff] [blame] | 149 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
| 150 | CONFIG_NETSTAL_DEF_ENV \ |
| 151 | CONFIG_NETSTAL_DEF_ENV_POWERPC \ |
Niklaus Giger | 62da808 | 2007-07-27 11:27:15 +0200 | [diff] [blame] | 152 | "" |
Niklaus Giger | 62da808 | 2007-07-27 11:27:15 +0200 | [diff] [blame] | 153 | |
Stefan Roese | 75a3d5d | 2007-08-14 16:36:29 +0200 | [diff] [blame] | 154 | /* |
| 155 | * BOOTP options |
| 156 | */ |
| 157 | #define CONFIG_BOOTP_BOOTFILESIZE |
| 158 | #define CONFIG_BOOTP_BOOTPATH |
| 159 | #define CONFIG_BOOTP_GATEWAY |
| 160 | #define CONFIG_BOOTP_HOSTNAME |
| 161 | |
| 162 | /* |
| 163 | * Command line configuration. |
| 164 | */ |
| 165 | #include <config_cmd_default.h> |
| 166 | |
| 167 | #define CONFIG_CMD_ASKENV |
Stefan Roese | 75a3d5d | 2007-08-14 16:36:29 +0200 | [diff] [blame] | 168 | #define CONFIG_CMD_CACHE |
| 169 | #define CONFIG_CMD_DHCP |
| 170 | #define CONFIG_CMD_DIAG |
| 171 | #define CONFIG_CMD_EEPROM |
| 172 | #define CONFIG_CMD_ELF |
| 173 | #define CONFIG_CMD_FLASH |
| 174 | #define CONFIG_CMD_I2C |
| 175 | #define CONFIG_CMD_IMMAP |
| 176 | #define CONFIG_CMD_IRQ |
| 177 | #define CONFIG_CMD_MII |
| 178 | #define CONFIG_CMD_NET |
| 179 | #define CONFIG_CMD_PING |
| 180 | #define CONFIG_CMD_REGINFO |
| 181 | #define CONFIG_CMD_SDRAM |
Niklaus Giger | 62da808 | 2007-07-27 11:27:15 +0200 | [diff] [blame] | 182 | |
| 183 | /* SPD EEPROM (sdram speed config) disabled */ |
| 184 | #define CONFIG_SPD_EEPROM 1 |
| 185 | #define SPD_EEPROM_ADDRESS 0x50 |
| 186 | |
Niklaus Giger | 1767b38 | 2008-01-16 18:37:50 +0100 | [diff] [blame] | 187 | /* POST support */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 188 | #define CONFIG_POST (CONFIG_SYS_POST_MEMORY | \ |
| 189 | CONFIG_SYS_POST_CPU | \ |
| 190 | CONFIG_SYS_POST_UART | \ |
| 191 | CONFIG_SYS_POST_I2C | \ |
| 192 | CONFIG_SYS_POST_CACHE | \ |
| 193 | CONFIG_SYS_POST_ETHER | \ |
| 194 | CONFIG_SYS_POST_SPR) |
Niklaus Giger | 1767b38 | 2008-01-16 18:37:50 +0100 | [diff] [blame] | 195 | |
Stefan Roese | a0a1479 | 2010-09-29 16:58:38 +0200 | [diff] [blame] | 196 | #define CONFIG_SYS_POST_UART_TABLE { CONFIG_SYS_NS16550_COM1 } |
Niklaus Giger | 1767b38 | 2008-01-16 18:37:50 +0100 | [diff] [blame] | 197 | #undef CONFIG_LOGBUFFER |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 198 | #define CONFIG_SYS_POST_CACHE_ADDR 0x00800000 /* free virtual address */ |
| 199 | #define CONFIG_SYS_CONSOLE_IS_IN_ENV /* Otherwise it catches logbuffer as output */ |
Niklaus Giger | 1767b38 | 2008-01-16 18:37:50 +0100 | [diff] [blame] | 200 | |
Niklaus Giger | 62da808 | 2007-07-27 11:27:15 +0200 | [diff] [blame] | 201 | /*----------------------------------------------------------------------- |
| 202 | * Miscellaneous configurable options |
| 203 | *----------------------------------------------------------------------*/ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 204 | #define CONFIG_SYS_LONGHELP /* undef to save memory */ |
| 205 | #define CONFIG_SYS_PROMPT "=> " /* Monitor Command Prompt */ |
Stefan Roese | 75a3d5d | 2007-08-14 16:36:29 +0200 | [diff] [blame] | 206 | #if defined(CONFIG_CMD_KGDB) |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 207 | #define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buffer Size */ |
Niklaus Giger | 62da808 | 2007-07-27 11:27:15 +0200 | [diff] [blame] | 208 | #else |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 209 | #define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */ |
Niklaus Giger | 62da808 | 2007-07-27 11:27:15 +0200 | [diff] [blame] | 210 | #endif |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 211 | #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */ |
| 212 | #define CONFIG_SYS_MAXARGS 16 /* max number of command args */ |
| 213 | #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE /* Boot Argument Buffer Size */ |
Niklaus Giger | 62da808 | 2007-07-27 11:27:15 +0200 | [diff] [blame] | 214 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 215 | #define CONFIG_SYS_MEMTEST_START 0x0400000 /* memtest works on */ |
| 216 | #define CONFIG_SYS_MEMTEST_END 0x0C00000 /* 4 ... 12 MB in DRAM */ |
Niklaus Giger | 62da808 | 2007-07-27 11:27:15 +0200 | [diff] [blame] | 217 | |
| 218 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 219 | #define CONFIG_SYS_LOAD_ADDR 0x100000 /* default load address */ |
Niklaus Giger | 62da808 | 2007-07-27 11:27:15 +0200 | [diff] [blame] | 220 | |
| 221 | /*----------------------------------------------------------------------- |
| 222 | * External Bus Controller (EBC) Setup |
| 223 | */ |
| 224 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 225 | #define CONFIG_SYS_EBC_CFG 0x98400000 |
Niklaus Giger | 62da808 | 2007-07-27 11:27:15 +0200 | [diff] [blame] | 226 | |
Niklaus Giger | 1767b38 | 2008-01-16 18:37:50 +0100 | [diff] [blame] | 227 | /* Memory Bank 0 (Flash Bank 0) initialization */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 228 | #define CONFIG_SYS_EBC_PB0AP 0x02005400 |
| 229 | #define CONFIG_SYS_EBC_PB0CR 0xFFF18000 /* BAS=0xFFF,BS=1MB,BU=R/W,BW=8bit */ |
Niklaus Giger | 62da808 | 2007-07-27 11:27:15 +0200 | [diff] [blame] | 230 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 231 | #define CONFIG_SYS_EBC_PB1AP 0x03041200 |
| 232 | #define CONFIG_SYS_EBC_PB1CR 0x7009A000 /* BAS=,BS=MB,BU=R/W,BW=bit */ |
Niklaus Giger | 62da808 | 2007-07-27 11:27:15 +0200 | [diff] [blame] | 233 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 234 | #define CONFIG_SYS_EBC_PB2AP 0x02054500 |
| 235 | #define CONFIG_SYS_EBC_PB2CR 0x78018000 /* BAS=,BS=MB,BU=R/W,BW=bit */ |
Niklaus Giger | 62da808 | 2007-07-27 11:27:15 +0200 | [diff] [blame] | 236 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 237 | #define CONFIG_SYS_EBC_PB3AP 0x01840300 |
| 238 | #define CONFIG_SYS_EBC_PB3CR 0x7c0ba000 /* BAS=,BS=MB,BU=R/W,BW=bit */ |
Niklaus Giger | 62da808 | 2007-07-27 11:27:15 +0200 | [diff] [blame] | 239 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 240 | #define CONFIG_SYS_EBC_PB4AP 0x01800300 |
| 241 | #define CONFIG_SYS_EBC_PB4CR 0x7e0ba000 /* BAS=,BS=MB,BU=R/W,BW=bit */ |
Niklaus Giger | 1767b38 | 2008-01-16 18:37:50 +0100 | [diff] [blame] | 242 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 243 | #define CONFIG_SYS_GPIO0_OR 0xF27FFFFF /* GPIO value */ |
| 244 | #define CONFIG_SYS_GPIO0_TCR 0x7FFE0000 /* GPIO value */ |
| 245 | #define CONFIG_SYS_GPIO0_ODR 0x00E897FC /* GPIO value */ |
Niklaus Giger | 62da808 | 2007-07-27 11:27:15 +0200 | [diff] [blame] | 246 | |
| 247 | /* |
| 248 | * For booting Linux, the board info and command line data |
| 249 | * have to be in the first 8 MB of memory, since this is |
| 250 | * the maximum mapped by the Linux kernel during initialization. |
| 251 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 252 | #define CONFIG_SYS_BOOTMAPSZ (8 << 20)/* Initial Memory map for Linux */ |
Niklaus Giger | 62da808 | 2007-07-27 11:27:15 +0200 | [diff] [blame] | 253 | |
| 254 | /* Init Memory Controller: |
| 255 | * |
| 256 | * BR0/1 and OR0/1 (FLASH) |
| 257 | */ |
| 258 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 259 | #define FLASH_BASE0_PRELIM CONFIG_SYS_FLASH_BASE /* FLASH bank #0 */ |
Niklaus Giger | 62da808 | 2007-07-27 11:27:15 +0200 | [diff] [blame] | 260 | #define FLASH_BASE1_PRELIM 0 /* FLASH bank #1 */ |
| 261 | |
| 262 | |
| 263 | /* Configuration Port location */ |
| 264 | #define CONFIG_PORT_ADDR 0xF0000500 |
| 265 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 266 | #define CONFIG_SYS_HUSH_PARSER /* use "hush" command parser */ |
| 267 | #ifdef CONFIG_SYS_HUSH_PARSER |
| 268 | #define CONFIG_SYS_PROMPT_HUSH_PS2 "> " |
Niklaus Giger | 62da808 | 2007-07-27 11:27:15 +0200 | [diff] [blame] | 269 | #endif |
| 270 | |
Stefan Roese | 75a3d5d | 2007-08-14 16:36:29 +0200 | [diff] [blame] | 271 | #if defined(CONFIG_CMD_KGDB) |
Niklaus Giger | 62da808 | 2007-07-27 11:27:15 +0200 | [diff] [blame] | 272 | #define CONFIG_KGDB_BAUDRATE 230400 /* speed to run kgdb serial port */ |
| 273 | #define CONFIG_KGDB_SER_INDEX 2 /* which serial port to use */ |
| 274 | #endif |
Niklaus Giger | 1767b38 | 2008-01-16 18:37:50 +0100 | [diff] [blame] | 275 | |
Niklaus Giger | 62da808 | 2007-07-27 11:27:15 +0200 | [diff] [blame] | 276 | #endif /* __CONFIG_H */ |