Jens Scharsig | 77e7273 | 2010-02-03 22:48:09 +0100 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2008-2009 |
| 3 | * BuS Elektronik GmbH & Co. KG <www.bus-elektronik.de> |
| 4 | * Jens Scharsig <esw@bus-elektronik.de> |
| 5 | * |
| 6 | * Configuation settings for the EB+CPUx9K2 board. |
| 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_EB_CPUx9K2_H_ |
| 28 | #define _CONFIG_EB_CPUx9K2_H_ |
| 29 | |
| 30 | /*--------------------------------------------------------------------------*/ |
| 31 | |
Jens Scharsig | 8073399 | 2011-02-19 06:17:02 +0000 | [diff] [blame] | 32 | #define CONFIG_AT91RM9200 /* It's an Atmel AT91RM9200 SoC */ |
| 33 | #define CONFIG_EB_CPUX9K2 /* on an EP+CPUX9K2 Board */ |
| 34 | #define USE_920T_MMU |
Jens Scharsig | 77e7273 | 2010-02-03 22:48:09 +0100 | [diff] [blame] | 35 | |
Jens Scharsig | 8073399 | 2011-02-19 06:17:02 +0000 | [diff] [blame] | 36 | #define CONFIG_VERSION_VARIABLE |
Jens Scharsig | 77e7273 | 2010-02-03 22:48:09 +0100 | [diff] [blame] | 37 | #define CONFIG_IDENT_STRING " on EB+CPUx9K2" |
| 38 | |
Andreas Bießmann | 6a372e9 | 2011-06-12 01:49:12 +0000 | [diff] [blame] | 39 | #include <asm/hardware.h> /* needed for port definitions */ |
Jens Scharsig | 77e7273 | 2010-02-03 22:48:09 +0100 | [diff] [blame] | 40 | |
| 41 | #define CONFIG_MISC_INIT_R |
Andreas Bießmann | 5a05cb7 | 2011-06-12 01:49:15 +0000 | [diff] [blame] | 42 | #define CONFIG_BOARD_EARLY_INIT_F |
Jens Scharsig | 77e7273 | 2010-02-03 22:48:09 +0100 | [diff] [blame] | 43 | |
Jens Scharsig | 2026a11 | 2011-10-31 08:52:22 +0000 | [diff] [blame] | 44 | #define MACH_TYPE_EB_CPUX9K2 1977 |
| 45 | #define CONFIG_MACH_TYPE MACH_TYPE_EB_CPUX9K2 |
Jens Scharsig | 77e7273 | 2010-02-03 22:48:09 +0100 | [diff] [blame] | 46 | /*--------------------------------------------------------------------------*/ |
Jens Scharsig | cebcf7d | 2010-10-19 19:37:15 +0200 | [diff] [blame] | 47 | #define CONFIG_SYS_TEXT_BASE 0x00000000 |
Jens Scharsig | 77e7273 | 2010-02-03 22:48:09 +0100 | [diff] [blame] | 48 | #define CONFIG_SYS_LOAD_ADDR 0x21000000 /* default load address */ |
| 49 | |
| 50 | #define CONFIG_SYS_BOOT_SIZE 0x00 /* 0 KBytes */ |
| 51 | #define CONFIG_SYS_U_BOOT_BASE PHYS_FLASH_1 |
| 52 | #define CONFIG_SYS_U_BOOT_SIZE 0x60000 /* 384 KBytes */ |
| 53 | |
| 54 | |
| 55 | #define CONFIG_BOOT_RETRY_TIME 30 |
| 56 | #define CONFIG_CMDLINE_EDITING |
| 57 | |
| 58 | #define CONFIG_SYS_PROMPT "U-Boot> " /* Monitor Command Prompt */ |
| 59 | #define CONFIG_SYS_CBSIZE 512 /* Console I/O Buffer Size */ |
| 60 | #define CONFIG_SYS_MAXARGS 32 /* max number of command args */ |
| 61 | #define CONFIG_SYS_PBSIZE \ |
| 62 | (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */ |
| 63 | |
| 64 | #define CONFIG_STACKSIZE (32*1024) /* regular stack */ |
| 65 | |
| 66 | /* |
| 67 | * ARM asynchronous clock |
| 68 | */ |
| 69 | |
| 70 | #define AT91C_MAIN_CLOCK 179404800 /* from 12.288 MHz * 73 / 5 */ |
| 71 | #define AT91C_MASTER_CLOCK (AT91C_MAIN_CLOCK / 3) |
| 72 | #define CONFIG_SYS_HZ 1000 |
| 73 | #define CONFIG_SYS_HZ_CLOCK (AT91C_MASTER_CLOCK / 2) |
| 74 | |
Andreas Bießmann | 6a372e9 | 2011-06-12 01:49:12 +0000 | [diff] [blame] | 75 | #define CONFIG_SYS_AT91_SLOW_CLOCK 32768 /* slow clock */ |
Jens Scharsig | 77e7273 | 2010-02-03 22:48:09 +0100 | [diff] [blame] | 76 | |
| 77 | #define CONFIG_CMDLINE_TAG 1 |
| 78 | #define CONFIG_SETUP_MEMORY_TAGS 1 |
| 79 | #define CONFIG_INITRD_TAG 1 |
| 80 | |
| 81 | #define CONFIG_SYS_USE_MAIN_OSCILLATOR 1 |
| 82 | /* flash */ |
| 83 | #define CONFIG_SYS_EBI_CFGR_VAL 0x00000000 |
| 84 | #define CONFIG_SYS_SMC_CSR0_VAL 0x00003284 /* 16bit, 2 TDF, 4 WS */ |
| 85 | |
| 86 | /* clocks */ |
| 87 | #define CONFIG_SYS_PLLAR_VAL 0x20483E05 /* 179.4048 MHz for PCK */ |
| 88 | #define CONFIG_SYS_PLLBR_VAL 0x104C3E0A /* 47.3088 MHz (for USB) */ |
| 89 | #define CONFIG_SYS_MCKR_VAL 0x00000202 /* PCK/3 = MCK Clock */ |
| 90 | |
| 91 | /* |
| 92 | * Size of malloc() pool |
| 93 | */ |
| 94 | |
| 95 | #define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + 520*1024) |
Jens Scharsig | 77e7273 | 2010-02-03 22:48:09 +0100 | [diff] [blame] | 96 | |
| 97 | /* |
| 98 | * sdram |
| 99 | */ |
| 100 | |
| 101 | #define CONFIG_NR_DRAM_BANKS 1 |
Jens Scharsig | 77e7273 | 2010-02-03 22:48:09 +0100 | [diff] [blame] | 102 | |
Jens Scharsig | cebcf7d | 2010-10-19 19:37:15 +0200 | [diff] [blame] | 103 | #define CONFIG_SYS_SDRAM_BASE 0x20000000 |
| 104 | #define CONFIG_SYS_SDRAM_SIZE 0x04000000 /* 64 megs */ |
| 105 | #define CONFIG_SYS_INIT_SP_ADDR 0x00204000 /* use internal SRAM */ |
| 106 | |
| 107 | #define CONFIG_SYS_MEMTEST_START CONFIG_SYS_SDRAM_BASE |
Jens Scharsig | 77e7273 | 2010-02-03 22:48:09 +0100 | [diff] [blame] | 108 | #define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_MEMTEST_START + \ |
Jens Scharsig | cebcf7d | 2010-10-19 19:37:15 +0200 | [diff] [blame] | 109 | CONFIG_SYS_SDRAM_SIZE - 0x00400000 - \ |
Jens Scharsig | 77e7273 | 2010-02-03 22:48:09 +0100 | [diff] [blame] | 110 | CONFIG_SYS_MALLOC_LEN) |
| 111 | |
| 112 | #define CONFIG_SYS_PIOC_ASR_VAL 0xFFFF0000 /* PIOC as D16/D31 */ |
| 113 | #define CONFIG_SYS_PIOC_BSR_VAL 0x00000000 |
| 114 | #define CONFIG_SYS_PIOC_PDR_VAL 0xFFFF0000 |
| 115 | #define CONFIG_SYS_EBI_CSA_VAL 0x00000002 /* CS1=SDRAM */ |
| 116 | #define CONFIG_SYS_SDRC_CR_VAL 0x2188c159 /* set up the SDRAM */ |
| 117 | #define CONFIG_SYS_SDRAM 0x20000000 /* address of the SDRAM */ |
| 118 | #define CONFIG_SYS_SDRAM1 0x20000080 /* address of the SDRAM */ |
| 119 | #define CONFIG_SYS_SDRAM_VAL 0x00000000 /* value written to SDRAM */ |
| 120 | #define CONFIG_SYS_SDRC_MR_VAL 0x00000002 /* Precharge All */ |
| 121 | #define CONFIG_SYS_SDRC_MR_VAL1 0x00000004 /* refresh */ |
| 122 | #define CONFIG_SYS_SDRC_MR_VAL2 0x00000003 /* Load Mode Register */ |
| 123 | #define CONFIG_SYS_SDRC_MR_VAL3 0x00000000 /* Normal Mode */ |
| 124 | #define CONFIG_SYS_SDRC_TR_VAL 0x000002E0 /* Write refresh rate */ |
| 125 | |
| 126 | /* |
| 127 | * Command line configuration |
| 128 | */ |
| 129 | |
| 130 | #include <config_cmd_default.h> |
| 131 | |
| 132 | #define CONFIG_CMD_BMP |
| 133 | #define CONFIG_CMD_DATE |
| 134 | #define CONFIG_CMD_DHCP |
| 135 | #define CONFIG_CMD_I2C |
| 136 | #define CONFIG_CMD_JFFS2 |
| 137 | #define CONFIG_CMD_MII |
| 138 | #define CONFIG_CMD_NAND |
| 139 | #define CONFIG_CMD_PING |
| 140 | #define CONFIG_I2C_CMD_NO_FLAT |
| 141 | #define CONFIG_I2C_CMD_TREE |
| 142 | |
| 143 | #define CONFIG_SYS_LONGHELP |
| 144 | |
| 145 | /* |
| 146 | * Filesystems |
| 147 | */ |
| 148 | |
| 149 | #define CONFIG_JFFS2_NAND 1 |
| 150 | |
| 151 | #ifndef CONFIG_JFFS2_CMDLINE |
| 152 | #define CONFIG_JFFS2_DEV "nand0" |
| 153 | #define CONFIG_JFFS2_PART_OFFSET 0 |
| 154 | #define CONFIG_JFFS2_PART_SIZE 0xFFFFFFFF |
| 155 | #else |
| 156 | #define MTDIDS_DEFAULT "nor0=0,nand0=1" |
| 157 | #define MTDPARTS_DEFAULT "mtdparts=" \ |
| 158 | "0:" \ |
| 159 | "384k(U-Boot)," \ |
| 160 | "128k(Env)," \ |
| 161 | "128k(Splash)," \ |
| 162 | "4M(Kernel)," \ |
| 163 | "-(FS)" \ |
| 164 | ";" \ |
| 165 | "1:" \ |
| 166 | "-(jffs2)" |
| 167 | #endif /* CONFIG_JFFS2_CMDLINE */ |
| 168 | |
| 169 | /* |
| 170 | * Hardware drivers |
| 171 | */ |
| 172 | |
| 173 | /* |
| 174 | * UART/CONSOLE |
| 175 | */ |
| 176 | |
| 177 | #define CONFIG_SYS_BAUDRATE_TABLE { 115200, 19200, 38400, 57600, 9600 } |
| 178 | |
| 179 | #define CONFIG_BAUDRATE 115200 |
Andreas Bießmann | 5a05cb7 | 2011-06-12 01:49:15 +0000 | [diff] [blame] | 180 | #define CONFIG_ATMEL_USART |
| 181 | #define CONFIG_USART_BASE ATMEL_BASE_DBGU |
| 182 | #define CONFIG_USART_ID 0/* ignored in arm */ |
Jens Scharsig | 77e7273 | 2010-02-03 22:48:09 +0100 | [diff] [blame] | 183 | |
| 184 | /* |
| 185 | * network |
| 186 | */ |
Jens Scharsig | 77e7273 | 2010-02-03 22:48:09 +0100 | [diff] [blame] | 187 | |
| 188 | #define CONFIG_NET_RETRY_COUNT 10 |
| 189 | #define CONFIG_RESET_PHY_R 1 |
| 190 | |
| 191 | #define CONFIG_DRIVER_AT91EMAC 1 |
| 192 | #define CONFIG_DRIVER_AT91EMAC_QUIET 1 |
| 193 | #define CONFIG_SYS_RX_ETH_BUFFER 8 |
| 194 | #define CONFIG_MII 1 |
| 195 | |
| 196 | /* |
| 197 | * BOOTP options |
| 198 | */ |
| 199 | #define CONFIG_BOOTP_BOOTFILESIZE |
| 200 | #define CONFIG_BOOTP_BOOTPATH |
| 201 | #define CONFIG_BOOTP_GATEWAY |
| 202 | #define CONFIG_BOOTP_HOSTNAME |
| 203 | |
| 204 | /* |
| 205 | * I2C-Bus |
| 206 | */ |
| 207 | |
| 208 | #define CONFIG_SYS_I2C_SPEED 50000 |
| 209 | #define CONFIG_SYS_I2C_SLAVE 0 /* not used */ |
| 210 | |
| 211 | #ifndef CONFIG_HARD_I2C |
| 212 | #define CONFIG_SOFT_I2C |
| 213 | |
| 214 | /* Software I2C driver configuration */ |
| 215 | |
| 216 | #define AT91_PIN_SDA (1<<25) /* AT91C_PIO_PA25 */ |
| 217 | #define AT91_PIN_SCL (1<<26) /* AT91C_PIO_PA26 */ |
| 218 | |
| 219 | #define CONFIG_SYS_I2C_INIT_BOARD |
| 220 | |
| 221 | #define I2C_INIT i2c_init_board(); |
Jens Scharsig | 8073399 | 2011-02-19 06:17:02 +0000 | [diff] [blame] | 222 | #define I2C_ACTIVE writel(ATMEL_PMX_AA_TWD, &pio->pioa.mddr); |
| 223 | #define I2C_TRISTATE writel(ATMEL_PMX_AA_TWD, &pio->pioa.mder); |
| 224 | #define I2C_READ ((readl(&pio->pioa.pdsr) & ATMEL_PMX_AA_TWD) != 0) |
Jens Scharsig | 77e7273 | 2010-02-03 22:48:09 +0100 | [diff] [blame] | 225 | #define I2C_SDA(bit) \ |
| 226 | if (bit) \ |
Jens Scharsig | 8073399 | 2011-02-19 06:17:02 +0000 | [diff] [blame] | 227 | writel(ATMEL_PMX_AA_TWD, &pio->pioa.sodr); \ |
Jens Scharsig | 77e7273 | 2010-02-03 22:48:09 +0100 | [diff] [blame] | 228 | else \ |
Jens Scharsig | 8073399 | 2011-02-19 06:17:02 +0000 | [diff] [blame] | 229 | writel(ATMEL_PMX_AA_TWD, &pio->pioa.codr); |
Jens Scharsig | 77e7273 | 2010-02-03 22:48:09 +0100 | [diff] [blame] | 230 | #define I2C_SCL(bit) \ |
| 231 | if (bit) \ |
Jens Scharsig | 8073399 | 2011-02-19 06:17:02 +0000 | [diff] [blame] | 232 | writel(ATMEL_PMX_AA_TWCK, &pio->pioa.sodr); \ |
Jens Scharsig | 77e7273 | 2010-02-03 22:48:09 +0100 | [diff] [blame] | 233 | else \ |
Jens Scharsig | 8073399 | 2011-02-19 06:17:02 +0000 | [diff] [blame] | 234 | writel(ATMEL_PMX_AA_TWCK, &pio->pioa.codr); |
Jens Scharsig | 77e7273 | 2010-02-03 22:48:09 +0100 | [diff] [blame] | 235 | |
| 236 | #define I2C_DELAY udelay(2500000/CONFIG_SYS_I2C_SPEED) |
| 237 | |
| 238 | #endif /* CONFIG_HARD_I2C */ |
| 239 | |
| 240 | /* I2C-RTC */ |
| 241 | |
| 242 | #ifdef CONFIG_CMD_DATE |
| 243 | #define CONFIG_RTC_DS1338 |
| 244 | #define CONFIG_SYS_I2C_RTC_ADDR 0x68 |
| 245 | #endif |
| 246 | |
| 247 | /* EEPROM */ |
| 248 | |
| 249 | #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2 |
| 250 | #define CONFIG_SYS_I2C_EEPROM_ADDR 0x50 |
| 251 | |
| 252 | /* FLASH organization */ |
| 253 | |
| 254 | /* NOR-FLASH */ |
Jens Scharsig | cebcf7d | 2010-10-19 19:37:15 +0200 | [diff] [blame] | 255 | #define CONFIG_FLASH_SHOW_PROGRESS 45 |
Jens Scharsig | 77e7273 | 2010-02-03 22:48:09 +0100 | [diff] [blame] | 256 | |
| 257 | #define CONFIG_FLASH_CFI_DRIVER 1 |
| 258 | |
| 259 | #define PHYS_FLASH_1 0x10000000 |
| 260 | #define PHYS_FLASH_SIZE 0x01000000 /* 16 megs main flash */ |
| 261 | #define CONFIG_SYS_FLASH_CFI 1 |
| 262 | #define CONFIG_SYS_FLASH_CFI_WIDTH FLASH_CFI_16BIT |
| 263 | |
| 264 | #define CONFIG_SYS_FLASH_PROTECTION 1 |
| 265 | #define CONFIG_SYS_FLASH_BASE PHYS_FLASH_1 |
| 266 | #define CONFIG_SYS_MAX_FLASH_BANKS 1 |
| 267 | #define CONFIG_SYS_MAX_FLASH_SECT 512 |
| 268 | #define CONFIG_SYS_FLASH_ERASE_TOUT 6000 |
| 269 | #define CONFIG_SYS_FLASH_WRITE_TOUT 2000 |
| 270 | |
| 271 | /* NAND */ |
| 272 | |
| 273 | #define CONFIG_SYS_NAND_MAX_CHIPS 1 |
| 274 | #define CONFIG_SYS_MAX_NAND_DEVICE 1 |
| 275 | #define CONFIG_SYS_NAND_BASE 0x40000000 |
| 276 | #define CONFIG_SYS_NAND_DBW_8 1 |
| 277 | |
| 278 | #define CONFIG_SYS_64BIT_VSPRINTF 1 |
| 279 | |
| 280 | /* Status LED's */ |
| 281 | |
| 282 | #define CONFIG_STATUS_LED 1 |
| 283 | #define CONFIG_BOARD_SPECIFIC_LED 1 |
| 284 | |
| 285 | #define STATUS_LED_BOOT 1 |
| 286 | #define STATUS_LED_ACTIVE 0 |
| 287 | |
| 288 | #define STATUS_LED_BIT 1 /* AT91C_PIO_PD0 green LED */ |
| 289 | #define STATUS_LED_PERIOD (CONFIG_SYS_HZ / 2) |
| 290 | #define STATUS_LED_STATE STATUS_LED_OFF /* BLINKING */ |
| 291 | #define STATUS_LED_BIT1 2 /* AT91C_PIO_PD1 red LED */ |
| 292 | #define STATUS_LED_STATE1 STATUS_LED_ON /* BLINKING */ |
| 293 | #define STATUS_LED_PERIOD1 (CONFIG_SYS_HZ / 4) |
| 294 | |
| 295 | #define CONFIG_VIDEO 1 |
| 296 | |
| 297 | /* Options */ |
| 298 | |
| 299 | #ifdef CONFIG_VIDEO |
| 300 | |
| 301 | #define CONFIG_VIDEO_VCXK 1 |
| 302 | |
| 303 | #define CONFIG_SPLASH_SCREEN 1 |
| 304 | |
| 305 | #define CONFIG_SYS_VCXK_DEFAULT_LINEALIGN 4 |
| 306 | #define CONFIG_SYS_VCXK_BASE 0x30000000 |
| 307 | |
| 308 | #define CONFIG_SYS_VCXK_ACKNOWLEDGE_PIN (1<<3) |
| 309 | #define CONFIG_SYS_VCXK_ACKNOWLEDGE_PORT piob |
| 310 | #define CONFIG_SYS_VCXK_ACKNOWLEDGE_DDR odr |
| 311 | |
| 312 | #define CONFIG_SYS_VCXK_ENABLE_PIN (1<<5) |
| 313 | #define CONFIG_SYS_VCXK_ENABLE_PORT piob |
| 314 | #define CONFIG_SYS_VCXK_ENABLE_DDR oer |
| 315 | |
| 316 | #define CONFIG_SYS_VCXK_REQUEST_PIN (1<<2) |
| 317 | #define CONFIG_SYS_VCXK_REQUEST_PORT piob |
| 318 | #define CONFIG_SYS_VCXK_REQUEST_DDR oer |
| 319 | |
| 320 | #define CONFIG_SYS_VCXK_INVERT_PIN (1<<4) |
| 321 | #define CONFIG_SYS_VCXK_INVERT_PORT piob |
| 322 | #define CONFIG_SYS_VCXK_INVERT_DDR oer |
| 323 | |
| 324 | #define CONFIG_SYS_VCXK_RESET_PIN (1<<6) |
| 325 | #define CONFIG_SYS_VCXK_RESET_PORT piob |
| 326 | #define CONFIG_SYS_VCXK_RESET_DDR oer |
| 327 | |
| 328 | #endif /* CONFIG_VIDEO */ |
| 329 | |
| 330 | /* Environment */ |
| 331 | |
| 332 | #define CONFIG_BOOTDELAY 5 |
| 333 | |
| 334 | #define CONFIG_ENV_IS_IN_FLASH 1 |
| 335 | #define CONFIG_ENV_ADDR (PHYS_FLASH_1 + 0x60000) |
| 336 | #define CONFIG_ENV_SIZE 0x20000 /* sectors are 128K here */ |
| 337 | |
| 338 | #define CONFIG_BAUDRATE 115200 |
| 339 | |
| 340 | #define CONFIG_BOOTCOMMAND "run nfsboot" |
| 341 | |
| 342 | #define CONFIG_NFSBOOTCOMMAND \ |
| 343 | "dhcp $(copy_addr) uImage_cpux9k2;" \ |
| 344 | "run bootargsdefaults;" \ |
| 345 | "set bootargs $(bootargs) boot=nfs " \ |
| 346 | ";echo $(bootargs)" \ |
| 347 | ";bootm" |
| 348 | |
| 349 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
| 350 | "displaywidth=256\0" \ |
| 351 | "displayheight=512\0" \ |
| 352 | "displaybsteps=1023\0" \ |
| 353 | "ubootaddr=10000000\0" \ |
| 354 | "splashimage=10080000\0" \ |
| 355 | "kerneladdr=100A0000\0" \ |
| 356 | "kernelsize=00400000\0" \ |
| 357 | "rootfsaddr=104A0000\0" \ |
| 358 | "copy_addr=21200000\0" \ |
| 359 | "rootfssize=00B60000\0" \ |
| 360 | "bootargsdefaults=set bootargs " \ |
| 361 | "console=ttyS0,115200 " \ |
| 362 | "video=vcxk_fb:xres:${displaywidth}," \ |
| 363 | "yres:${displayheight}," \ |
| 364 | "bres:${displaybsteps} " \ |
| 365 | "mem=62M " \ |
| 366 | "panic=10 " \ |
| 367 | "uboot=\\\"${ver}\\\" " \ |
| 368 | "\0" \ |
| 369 | "update_kernel=protect off $(kerneladdr) +$(kernelsize);" \ |
| 370 | "dhcp $(copy_addr) uImage_cpux9k2;" \ |
| 371 | "erase $(kerneladdr) +$(kernelsize);" \ |
| 372 | "cp.b $(fileaddr) $(kerneladdr) $(filesize);" \ |
| 373 | "protect on $(kerneladdr) +$(kernelsize)" \ |
| 374 | "\0" \ |
| 375 | "update_root=protect off $(rootfsaddr) +$(rootfssize);" \ |
| 376 | "dhcp $(copy_addr) rfs;" \ |
| 377 | "erase $(rootfsaddr) +$(rootfssize);" \ |
| 378 | "cp.b $(fileaddr) $(rootfsaddr) $(filesize);" \ |
| 379 | "\0" \ |
| 380 | "update_uboot=protect off 10000000 1005FFFF;" \ |
| 381 | "dhcp $(copy_addr) u-boot_eb_cpux9k2;" \ |
| 382 | "erase 10000000 1005FFFF;" \ |
| 383 | "cp.b $(fileaddr) $(ubootaddr) $(filesize);" \ |
| 384 | "protect on 10000000 1005FFFF;reset\0" \ |
| 385 | "update_splash=protect off $(splashimage) +20000;" \ |
| 386 | "dhcp $(copy_addr) splash_eb_cpux9k2.bmp;" \ |
| 387 | "erase $(splashimage) +20000;" \ |
| 388 | "cp.b $(fileaddr) 10080000 $(filesize);" \ |
| 389 | "protect on $(splashimage) +20000;reset\0" \ |
| 390 | "emergency=run bootargsdefaults;" \ |
| 391 | "set bootargs $(bootargs) root=initramfs boot=emergency " \ |
| 392 | ";bootm $(kerneladdr)\0" \ |
| 393 | "netemergency=run bootargsdefaults;" \ |
| 394 | "dhcp $(copy_addr) uImage_cpux9k2;" \ |
| 395 | "set bootargs $(bootargs) root=initramfs boot=emergency " \ |
| 396 | ";bootm $(copy_addr)\0" \ |
| 397 | "norboot=run bootargsdefaults;" \ |
| 398 | "set bootargs $(bootargs) root=initramfs boot=local " \ |
| 399 | ";bootm $(kerneladdr)\0" \ |
| 400 | "nandboot=run bootargsdefaults;" \ |
| 401 | "set bootargs $(bootargs) root=initramfs boot=nand " \ |
| 402 | ";bootm $(kerneladdr)\0" \ |
Jens Scharsig | 77e7273 | 2010-02-03 22:48:09 +0100 | [diff] [blame] | 403 | " " |
| 404 | |
| 405 | /*--------------------------------------------------------------------------*/ |
| 406 | |
| 407 | #endif |
| 408 | |
| 409 | /* EOF */ |