Andre Schwarz | 5e0de0e | 2008-07-09 18:30:44 +0200 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2003-2004 |
| 3 | * Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 4 | * |
| 5 | * (C) Copyright 2004-2008 |
| 6 | * Matrix-Vision GmbH, andre.schwarz@matrix-vision.de |
| 7 | * |
| 8 | * See file CREDITS for list of people who contributed to this |
| 9 | * project. |
| 10 | * |
| 11 | * This program is free software; you can redistribute it and/or |
| 12 | * modify it under the terms of the GNU General Public License as |
| 13 | * published by the Free Software Foundation; either version 2 of |
| 14 | * the License, or (at your option) any later version. |
| 15 | * |
| 16 | * This program is distributed in the hope that it will be useful, |
| 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 19 | * GNU General Public License for more details. |
| 20 | * |
| 21 | * You should have received a copy of the GNU General Public License |
| 22 | * along with this program; if not, write to the Free Software |
| 23 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, |
| 24 | * MA 02111-1307 USA |
| 25 | */ |
| 26 | |
| 27 | #ifndef __CONFIG_H |
| 28 | #define __CONFIG_H |
| 29 | |
| 30 | #include <version.h> |
| 31 | |
| 32 | #define CONFIG_MPC5xxx 1 |
| 33 | #define CONFIG_MPC5200 1 |
| 34 | |
Wolfgang Denk | 2ae1824 | 2010-10-06 09:05:45 +0200 | [diff] [blame] | 35 | #ifndef CONFIG_SYS_TEXT_BASE |
| 36 | #define CONFIG_SYS_TEXT_BASE 0xFF800000 |
| 37 | #endif |
| 38 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 39 | #define CONFIG_SYS_MPC5XXX_CLKIN 33000000 |
Andre Schwarz | 5e0de0e | 2008-07-09 18:30:44 +0200 | [diff] [blame] | 40 | |
Andre Schwarz | 5e0de0e | 2008-07-09 18:30:44 +0200 | [diff] [blame] | 41 | #define CONFIG_MISC_INIT_R 1 |
| 42 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 43 | #define CONFIG_SYS_CACHELINE_SIZE 32 |
Wolfgang Denk | 17e900b | 2008-08-12 14:54:04 +0200 | [diff] [blame] | 44 | #ifdef CONFIG_CMD_KGDB |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 45 | #define CONFIG_SYS_CACHELINE_SHIFT 5 |
Andre Schwarz | 5e0de0e | 2008-07-09 18:30:44 +0200 | [diff] [blame] | 46 | #endif |
| 47 | |
| 48 | #define CONFIG_PSC_CONSOLE 1 |
| 49 | #define CONFIG_BAUDRATE 115200 |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 50 | #define CONFIG_SYS_BAUDRATE_TABLE {9600, 19200, 38400, 57600, 115200, 230400} |
Andre Schwarz | 5e0de0e | 2008-07-09 18:30:44 +0200 | [diff] [blame] | 51 | |
| 52 | #define CONFIG_PCI 1 |
| 53 | #define CONFIG_PCI_PNP 1 |
| 54 | #undef CONFIG_PCI_SCAN_SHOW |
| 55 | #define CONFIG_PCIAUTO_SKIP_HOST_BRIDGE 1 |
| 56 | |
| 57 | #define CONFIG_PCI_MEM_BUS 0x40000000 |
| 58 | #define CONFIG_PCI_MEM_PHYS CONFIG_PCI_MEM_BUS |
| 59 | #define CONFIG_PCI_MEM_SIZE 0x10000000 |
| 60 | |
| 61 | #define CONFIG_PCI_IO_BUS 0x50000000 |
| 62 | #define CONFIG_PCI_IO_PHYS CONFIG_PCI_IO_BUS |
| 63 | #define CONFIG_PCI_IO_SIZE 0x01000000 |
| 64 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 65 | #define CONFIG_SYS_XLB_PIPELINING 1 |
Andre Schwarz | 5e0de0e | 2008-07-09 18:30:44 +0200 | [diff] [blame] | 66 | #define CONFIG_HIGH_BATS 1 |
| 67 | |
| 68 | #define MV_CI mvBlueCOUGAR-P |
| 69 | #define MV_VCI mvBlueCOUGAR-P |
| 70 | #define MV_FPGA_DATA 0xff860000 |
André Schwarz | 28887d8 | 2009-08-27 14:48:35 +0200 | [diff] [blame] | 71 | #define MV_FPGA_SIZE 0 |
André Schwarz | e3b39f8 | 2009-07-17 14:50:24 +0200 | [diff] [blame] | 72 | #define MV_KERNEL_ADDR 0xffd00000 |
Andre Schwarz | 5e0de0e | 2008-07-09 18:30:44 +0200 | [diff] [blame] | 73 | #define MV_INITRD_ADDR 0xff900000 |
André Schwarz | e3b39f8 | 2009-07-17 14:50:24 +0200 | [diff] [blame] | 74 | #define MV_INITRD_LENGTH 0x00400000 |
Andre Schwarz | 5e0de0e | 2008-07-09 18:30:44 +0200 | [diff] [blame] | 75 | #define MV_SCRATCH_ADDR 0x00000000 |
| 76 | #define MV_SCRATCH_LENGTH MV_INITRD_LENGTH |
Peter Tyser | 3202d33 | 2009-09-16 21:38:10 -0500 | [diff] [blame] | 77 | #define MV_SCRIPT_ADDR 0xff840000 |
| 78 | #define MV_SCRIPT_ADDR2 0xff850000 |
Andre Schwarz | 5e0de0e | 2008-07-09 18:30:44 +0200 | [diff] [blame] | 79 | #define MV_DTB_ADDR 0xfffc0000 |
| 80 | |
| 81 | #define CONFIG_SHOW_BOOT_PROGRESS 1 |
| 82 | |
| 83 | #define MV_KERNEL_ADDR_RAM 0x00100000 |
| 84 | #define MV_DTB_ADDR_RAM 0x00600000 |
| 85 | #define MV_INITRD_ADDR_RAM 0x01000000 |
| 86 | |
| 87 | /* pass open firmware flat tree */ |
| 88 | #define CONFIG_OF_LIBFDT 1 |
| 89 | #define CONFIG_OF_BOARD_SETUP 1 |
| 90 | |
| 91 | #define OF_CPU "PowerPC,5200@0" |
| 92 | #define OF_SOC "soc5200@f0000000" |
| 93 | #define OF_TBCLK (bd->bi_busfreq / 4) |
| 94 | #define MV_DTB_NAME mvbc-p.dtb |
| 95 | #define CONFIG_OF_STDOUT_VIA_ALIAS 1 |
| 96 | |
| 97 | /* |
| 98 | * Supported commands |
| 99 | */ |
| 100 | #include <config_cmd_default.h> |
| 101 | |
| 102 | #define CONFIG_CMD_CACHE |
| 103 | #define CONFIG_CMD_NET |
| 104 | #define CONFIG_CMD_PING |
| 105 | #define CONFIG_CMD_DHCP |
| 106 | #define CONFIG_CMD_SDRAM |
| 107 | #define CONFIG_CMD_PCI |
| 108 | #define CONFIG_CMD_FPGA |
André Schwarz | e3b39f8 | 2009-07-17 14:50:24 +0200 | [diff] [blame] | 109 | #define CONFIG_CMD_I2C |
Andre Schwarz | 5e0de0e | 2008-07-09 18:30:44 +0200 | [diff] [blame] | 110 | |
| 111 | #undef CONFIG_WATCHDOG |
| 112 | |
| 113 | #define CONFIG_BOOTP_VENDOREX |
| 114 | #define CONFIG_BOOTP_SUBNETMASK |
| 115 | #define CONFIG_BOOTP_GATEWAY |
| 116 | #define CONFIG_BOOTP_DNS |
| 117 | #define CONFIG_BOOTP_DNS2 |
| 118 | #define CONFIG_BOOTP_HOSTNAME |
| 119 | #define CONFIG_BOOTP_BOOTFILESIZE |
| 120 | #define CONFIG_BOOTP_BOOTPATH |
| 121 | #define CONFIG_BOOTP_NTPSERVER |
| 122 | #define CONFIG_BOOTP_RANDOM_DELAY |
| 123 | #define CONFIG_BOOTP_SEND_HOSTNAME |
| 124 | |
| 125 | /* |
| 126 | * Autoboot |
| 127 | */ |
| 128 | #define CONFIG_BOOTDELAY 2 |
| 129 | #define CONFIG_AUTOBOOT_KEYED |
| 130 | #define CONFIG_AUTOBOOT_STOP_STR "s" |
| 131 | #define CONFIG_ZERO_BOOTDELAY_CHECK |
| 132 | #define CONFIG_RESET_TO_RETRY 1000 |
| 133 | |
Peter Tyser | 3202d33 | 2009-09-16 21:38:10 -0500 | [diff] [blame] | 134 | #define CONFIG_BOOTCOMMAND "if imi ${script_addr}; \ |
| 135 | then source ${script_addr}; \ |
| 136 | else source ${script_addr2}; \ |
Andre Schwarz | 5e0de0e | 2008-07-09 18:30:44 +0200 | [diff] [blame] | 137 | fi;" |
| 138 | |
| 139 | #define CONFIG_BOOTARGS "root=/dev/ram ro rootfstype=squashfs" |
| 140 | #define CONFIG_ENV_OVERWRITE |
| 141 | |
Andre Schwarz | 5e0de0e | 2008-07-09 18:30:44 +0200 | [diff] [blame] | 142 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
| 143 | "console_nr=0\0" \ |
| 144 | "console=yes\0" \ |
| 145 | "stdin=serial\0" \ |
| 146 | "stdout=serial\0" \ |
| 147 | "stderr=serial\0" \ |
| 148 | "fpga=0\0" \ |
Marek Vasut | 5368c55 | 2012-09-23 17:41:24 +0200 | [diff] [blame] | 149 | "fpgadata=" __stringify(MV_FPGA_DATA) "\0" \ |
| 150 | "fpgadatasize=" __stringify(MV_FPGA_SIZE) "\0" \ |
| 151 | "script_addr=" __stringify(MV_SCRIPT_ADDR) "\0" \ |
| 152 | "script_addr2=" __stringify(MV_SCRIPT_ADDR2) "\0" \ |
| 153 | "mv_kernel_addr=" __stringify(MV_KERNEL_ADDR) "\0" \ |
| 154 | "mv_kernel_addr_ram=" __stringify(MV_KERNEL_ADDR_RAM) "\0" \ |
| 155 | "mv_initrd_addr=" __stringify(MV_INITRD_ADDR) "\0" \ |
| 156 | "mv_initrd_addr_ram=" __stringify(MV_INITRD_ADDR_RAM) "\0" \ |
| 157 | "mv_initrd_length=" __stringify(MV_INITRD_LENGTH) "\0" \ |
| 158 | "mv_dtb_addr=" __stringify(MV_DTB_ADDR) "\0" \ |
| 159 | "mv_dtb_addr_ram=" __stringify(MV_DTB_ADDR_RAM) "\0" \ |
| 160 | "dtb_name=" __stringify(MV_DTB_NAME) "\0" \ |
| 161 | "mv_scratch_addr=" __stringify(MV_SCRATCH_ADDR) "\0" \ |
| 162 | "mv_scratch_length=" __stringify(MV_SCRATCH_LENGTH) "\0" \ |
Andre Schwarz | 5e0de0e | 2008-07-09 18:30:44 +0200 | [diff] [blame] | 163 | "mv_version=" U_BOOT_VERSION "\0" \ |
Marek Vasut | 5368c55 | 2012-09-23 17:41:24 +0200 | [diff] [blame] | 164 | "dhcp_client_id=" __stringify(MV_CI) "\0" \ |
| 165 | "dhcp_vendor-class-identifier=" __stringify(MV_VCI) "\0" \ |
Andre Schwarz | 5e0de0e | 2008-07-09 18:30:44 +0200 | [diff] [blame] | 166 | "netretry=no\0" \ |
| 167 | "use_static_ipaddr=no\0" \ |
| 168 | "static_ipaddr=192.168.90.10\0" \ |
| 169 | "static_netmask=255.255.255.0\0" \ |
| 170 | "static_gateway=0.0.0.0\0" \ |
| 171 | "initrd_name=uInitrd.mvbc-p-rfs\0" \ |
| 172 | "zcip=no\0" \ |
| 173 | "netboot=yes\0" \ |
| 174 | "mvtest=Ff\0" \ |
| 175 | "tried_bootfromflash=no\0" \ |
| 176 | "tried_bootfromnet=no\0" \ |
| 177 | "use_dhcp=yes\0" \ |
| 178 | "gev_start=yes\0" \ |
| 179 | "mvbcdma_debug=0\0" \ |
| 180 | "mvbcia_debug=0\0" \ |
| 181 | "propdev_debug=0\0" \ |
| 182 | "gevss_debug=0\0" \ |
| 183 | "watchdog=1\0" \ |
André Schwarz | e3b39f8 | 2009-07-17 14:50:24 +0200 | [diff] [blame] | 184 | "sensor_cnt=1\0" \ |
Andre Schwarz | 5e0de0e | 2008-07-09 18:30:44 +0200 | [diff] [blame] | 185 | "" |
| 186 | |
Andre Schwarz | 5e0de0e | 2008-07-09 18:30:44 +0200 | [diff] [blame] | 187 | /* |
| 188 | * IPB Bus clocking configuration. |
| 189 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 190 | #define CONFIG_SYS_IPBCLK_EQUALS_XLBCLK |
| 191 | #define CONFIG_SYS_PCICLK_EQUALS_IPBCLK_DIV2 |
Andre Schwarz | 5e0de0e | 2008-07-09 18:30:44 +0200 | [diff] [blame] | 192 | |
| 193 | /* |
| 194 | * Flash configuration |
| 195 | */ |
| 196 | #undef CONFIG_FLASH_16BIT |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 197 | #define CONFIG_SYS_FLASH_CFI |
Jean-Christophe PLAGNIOL-VILLARD | 00b1883 | 2008-08-13 01:40:42 +0200 | [diff] [blame] | 198 | #define CONFIG_FLASH_CFI_DRIVER |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 199 | #define CONFIG_SYS_FLASH_CFI_AMD_RESET 1 |
| 200 | #define CONFIG_SYS_FLASH_EMPTY_INFO |
Andre Schwarz | 5e0de0e | 2008-07-09 18:30:44 +0200 | [diff] [blame] | 201 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 202 | #define CONFIG_SYS_FLASH_ERASE_TOUT 50000 |
| 203 | #define CONFIG_SYS_FLASH_WRITE_TOUT 1000 |
Andre Schwarz | 5e0de0e | 2008-07-09 18:30:44 +0200 | [diff] [blame] | 204 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 205 | #define CONFIG_SYS_MAX_FLASH_BANKS 1 |
| 206 | #define CONFIG_SYS_MAX_FLASH_SECT 256 |
Andre Schwarz | 5e0de0e | 2008-07-09 18:30:44 +0200 | [diff] [blame] | 207 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 208 | #define CONFIG_SYS_LOWBOOT |
Wolfgang Denk | 14d0a02 | 2010-10-07 21:51:12 +0200 | [diff] [blame] | 209 | #define CONFIG_SYS_FLASH_BASE CONFIG_SYS_TEXT_BASE |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 210 | #define CONFIG_SYS_FLASH_SIZE 0x00800000 |
Andre Schwarz | 5e0de0e | 2008-07-09 18:30:44 +0200 | [diff] [blame] | 211 | |
| 212 | /* |
| 213 | * Environment settings |
| 214 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 5a1aceb | 2008-09-10 22:48:04 +0200 | [diff] [blame] | 215 | #define CONFIG_ENV_IS_IN_FLASH |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 216 | #undef CONFIG_SYS_FLASH_PROTECTION |
Andre Schwarz | 5e0de0e | 2008-07-09 18:30:44 +0200 | [diff] [blame] | 217 | |
Jean-Christophe PLAGNIOL-VILLARD | 0e8d158 | 2008-09-10 22:48:06 +0200 | [diff] [blame] | 218 | #define CONFIG_ENV_ADDR 0xFFFE0000 |
| 219 | #define CONFIG_ENV_SIZE 0x10000 |
| 220 | #define CONFIG_ENV_SECT_SIZE 0x10000 |
| 221 | #define CONFIG_ENV_ADDR_REDUND (CONFIG_ENV_ADDR+CONFIG_ENV_SIZE) |
| 222 | #define CONFIG_ENV_SIZE_REDUND CONFIG_ENV_SIZE |
Andre Schwarz | 5e0de0e | 2008-07-09 18:30:44 +0200 | [diff] [blame] | 223 | |
| 224 | /* |
| 225 | * Memory map |
| 226 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 227 | #define CONFIG_SYS_MBAR 0xF0000000 |
| 228 | #define CONFIG_SYS_SDRAM_BASE 0x00000000 |
| 229 | #define CONFIG_SYS_DEFAULT_MBAR 0x80000000 |
Andre Schwarz | 5e0de0e | 2008-07-09 18:30:44 +0200 | [diff] [blame] | 230 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 231 | #define CONFIG_SYS_INIT_RAM_ADDR MPC5XXX_SRAM |
Wolfgang Denk | 553f098 | 2010-10-26 13:32:32 +0200 | [diff] [blame] | 232 | #define CONFIG_SYS_INIT_RAM_SIZE MPC5XXX_SRAM_SIZE |
Andre Schwarz | 5e0de0e | 2008-07-09 18:30:44 +0200 | [diff] [blame] | 233 | |
Wolfgang Denk | 25ddd1f | 2010-10-26 14:34:52 +0200 | [diff] [blame] | 234 | #define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE) |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 235 | #define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET |
Andre Schwarz | 5e0de0e | 2008-07-09 18:30:44 +0200 | [diff] [blame] | 236 | |
Wolfgang Denk | 14d0a02 | 2010-10-07 21:51:12 +0200 | [diff] [blame] | 237 | #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 238 | #if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE) |
| 239 | #define CONFIG_SYS_RAMBOOT 1 |
Andre Schwarz | 5e0de0e | 2008-07-09 18:30:44 +0200 | [diff] [blame] | 240 | #endif |
| 241 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 242 | /* CONFIG_SYS_MONITOR_LEN must be a multiple of CONFIG_ENV_SECT_SIZE */ |
| 243 | #define CONFIG_SYS_MONITOR_LEN (512 << 10) |
| 244 | #define CONFIG_SYS_MALLOC_LEN (512 << 10) |
| 245 | #define CONFIG_SYS_BOOTMAPSZ (8 << 20) |
Andre Schwarz | 5e0de0e | 2008-07-09 18:30:44 +0200 | [diff] [blame] | 246 | |
| 247 | /* |
André Schwarz | e3b39f8 | 2009-07-17 14:50:24 +0200 | [diff] [blame] | 248 | * I2C configuration |
| 249 | */ |
| 250 | #define CONFIG_HARD_I2C 1 |
| 251 | #define CONFIG_SYS_I2C_MODULE 1 |
| 252 | #define CONFIG_SYS_I2C_SPEED 86000 |
| 253 | #define CONFIG_SYS_I2C_SLAVE 0x7F |
| 254 | |
| 255 | /* |
Andre Schwarz | 5e0de0e | 2008-07-09 18:30:44 +0200 | [diff] [blame] | 256 | * Ethernet configuration |
| 257 | */ |
Andre Schwarz | 5e0de0e | 2008-07-09 18:30:44 +0200 | [diff] [blame] | 258 | #define CONFIG_NET_RETRY_COUNT 5 |
| 259 | |
| 260 | #define CONFIG_E1000 |
Wolfgang Denk | c4ec6db | 2008-07-31 13:57:20 +0200 | [diff] [blame] | 261 | #define CONFIG_E1000_FALLBACK_MAC { 0xb6, 0xb4, 0x45, 0xeb, 0xfb, 0xc0 } |
Andre Schwarz | 5e0de0e | 2008-07-09 18:30:44 +0200 | [diff] [blame] | 262 | #undef CONFIG_MPC5xxx_FEC |
| 263 | #undef CONFIG_PHY_ADDR |
| 264 | #define CONFIG_NETDEV eth0 |
| 265 | |
| 266 | /* |
| 267 | * Miscellaneous configurable options |
| 268 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 269 | #define CONFIG_SYS_HUSH_PARSER |
Andre Schwarz | 5e0de0e | 2008-07-09 18:30:44 +0200 | [diff] [blame] | 270 | #define CONFIG_CMDLINE_EDITING |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 271 | #undef CONFIG_SYS_LONGHELP |
| 272 | #define CONFIG_SYS_PROMPT "=> " |
Wolfgang Denk | 17e900b | 2008-08-12 14:54:04 +0200 | [diff] [blame] | 273 | #ifdef CONFIG_CMD_KGDB |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 274 | #define CONFIG_SYS_CBSIZE 1024 |
Andre Schwarz | 5e0de0e | 2008-07-09 18:30:44 +0200 | [diff] [blame] | 275 | #else |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 276 | #define CONFIG_SYS_CBSIZE 256 |
Andre Schwarz | 5e0de0e | 2008-07-09 18:30:44 +0200 | [diff] [blame] | 277 | #endif |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 278 | #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) |
| 279 | #define CONFIG_SYS_MAXARGS 16 |
| 280 | #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE |
Andre Schwarz | 5e0de0e | 2008-07-09 18:30:44 +0200 | [diff] [blame] | 281 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 282 | #define CONFIG_SYS_MEMTEST_START 0x00800000 |
| 283 | #define CONFIG_SYS_MEMTEST_END 0x02f00000 |
Andre Schwarz | 5e0de0e | 2008-07-09 18:30:44 +0200 | [diff] [blame] | 284 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 285 | #define CONFIG_SYS_HZ 1000 |
Andre Schwarz | 5e0de0e | 2008-07-09 18:30:44 +0200 | [diff] [blame] | 286 | |
| 287 | /* default load address */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 288 | #define CONFIG_SYS_LOAD_ADDR 0x02000000 |
Andre Schwarz | 5e0de0e | 2008-07-09 18:30:44 +0200 | [diff] [blame] | 289 | /* default location for tftp and bootm */ |
| 290 | #define CONFIG_LOADADDR 0x00200000 |
| 291 | |
| 292 | /* |
| 293 | * Various low-level settings |
| 294 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 295 | #define CONFIG_SYS_GPS_PORT_CONFIG 0x20000004 |
Andre Schwarz | 5e0de0e | 2008-07-09 18:30:44 +0200 | [diff] [blame] | 296 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 297 | #define CONFIG_SYS_HID0_INIT (HID0_ICE | HID0_ICFI) |
| 298 | #define CONFIG_SYS_HID0_FINAL HID0_ICE |
Andre Schwarz | 5e0de0e | 2008-07-09 18:30:44 +0200 | [diff] [blame] | 299 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 300 | #define CONFIG_SYS_BOOTCS_START CONFIG_SYS_FLASH_BASE |
| 301 | #define CONFIG_SYS_BOOTCS_SIZE CONFIG_SYS_FLASH_SIZE |
| 302 | #define CONFIG_SYS_BOOTCS_CFG 0x00047800 |
| 303 | #define CONFIG_SYS_CS0_START CONFIG_SYS_FLASH_BASE |
| 304 | #define CONFIG_SYS_CS0_SIZE CONFIG_SYS_FLASH_SIZE |
Andre Schwarz | 5e0de0e | 2008-07-09 18:30:44 +0200 | [diff] [blame] | 305 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 306 | #define CONFIG_SYS_CS_BURST 0x000000f0 |
| 307 | #define CONFIG_SYS_CS_DEADCYCLE 0x33333303 |
Andre Schwarz | 5e0de0e | 2008-07-09 18:30:44 +0200 | [diff] [blame] | 308 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 309 | #define CONFIG_SYS_RESET_ADDRESS 0x00000100 |
Andre Schwarz | 5e0de0e | 2008-07-09 18:30:44 +0200 | [diff] [blame] | 310 | |
| 311 | #undef FPGA_DEBUG |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 312 | #undef CONFIG_SYS_FPGA_PROG_FEEDBACK |
Michal Simek | b03b25c | 2013-05-01 18:05:56 +0200 | [diff] [blame] | 313 | #define CONFIG_FPGA |
Andre Schwarz | 5e0de0e | 2008-07-09 18:30:44 +0200 | [diff] [blame] | 314 | #define CONFIG_FPGA_ALTERA 1 |
| 315 | #define CONFIG_FPGA_CYCLON2 1 |
| 316 | #define CONFIG_FPGA_COUNT 1 |
| 317 | |
| 318 | #endif |