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