Ron Madrid | 5bb907a | 2009-01-22 15:05:24 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) Sheldon Instruments, Inc. 2008 |
| 3 | * |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame^] | 4 | * SPDX-License-Identifier: GPL-2.0+ |
Ron Madrid | 5bb907a | 2009-01-22 15:05:24 -0800 | [diff] [blame] | 5 | */ |
| 6 | /* |
| 7 | * simpc8313 board configuration file |
| 8 | */ |
| 9 | |
| 10 | #ifndef __CONFIG_H |
| 11 | #define __CONFIG_H |
| 12 | |
| 13 | /* |
| 14 | * High Level Configuration Options |
| 15 | */ |
| 16 | #define CONFIG_NAND_U_BOOT |
| 17 | |
| 18 | #define CONFIG_E300 1 |
Peter Tyser | 0f89860 | 2009-05-22 17:23:24 -0500 | [diff] [blame] | 19 | #define CONFIG_MPC83xx 1 |
Peter Tyser | 2c7920a | 2009-05-22 17:23:25 -0500 | [diff] [blame] | 20 | #define CONFIG_MPC831x 1 |
Ron Madrid | 5bb907a | 2009-01-22 15:05:24 -0800 | [diff] [blame] | 21 | #define CONFIG_MPC8313 1 |
| 22 | |
Scott Wood | f1c574d | 2010-11-24 13:28:40 +0000 | [diff] [blame] | 23 | #define CONFIG_SYS_NAND_U_BOOT_SIZE (512 << 10) |
| 24 | #define CONFIG_SYS_NAND_U_BOOT_DST 0x00100000 |
| 25 | #define CONFIG_SYS_NAND_U_BOOT_START 0x00100100 |
| 26 | #define CONFIG_SYS_NAND_U_BOOT_RELOC 0x00010000 |
| 27 | #define CONFIG_SYS_NAND_U_BOOT_RELOC_SP (CONFIG_SYS_NAND_U_BOOT_RELOC + 0x10000) |
| 28 | |
| 29 | #define CONFIG_SYS_TEXT_BASE 0x00100000 /* CONFIG_SYS_NAND_U_BOOT_DST */ |
| 30 | #define CONFIG_SYS_TEXT_BASE_SPL 0xfff00000 |
| 31 | |
| 32 | #ifdef CONFIG_NAND_SPL |
| 33 | #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE_SPL /* start of monitor */ |
| 34 | #else |
| 35 | #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE /* start of monitor */ |
Wolfgang Denk | 2ae1824 | 2010-10-06 09:05:45 +0200 | [diff] [blame] | 36 | #endif |
| 37 | |
Ron Madrid | 5bb907a | 2009-01-22 15:05:24 -0800 | [diff] [blame] | 38 | #define CONFIG_PCI |
Gabor Juhos | 842033e | 2013-05-30 07:06:12 +0000 | [diff] [blame] | 39 | #define CONFIG_PCI_INDIRECT_BRIDGE |
Becky Bruce | 0914f48 | 2010-06-17 11:37:18 -0500 | [diff] [blame] | 40 | #define CONFIG_FSL_ELBC 1 |
Ron Madrid | 5bb907a | 2009-01-22 15:05:24 -0800 | [diff] [blame] | 41 | |
| 42 | #define CONFIG_MISC_INIT_R |
| 43 | |
| 44 | /* |
| 45 | * On-board devices |
| 46 | * |
| 47 | * TSEC1 is Marvell PHY 88E1118 |
| 48 | */ |
| 49 | |
| 50 | #define CONFIG_SYS_33MHZ |
| 51 | |
| 52 | #define CONFIG_83XX_CLKIN 33333333 /* in Hz */ |
| 53 | |
| 54 | #define CONFIG_SYS_CLK_FREQ CONFIG_83XX_CLKIN |
| 55 | |
| 56 | #define CONFIG_SYS_IMMR 0xE0000000 |
| 57 | |
| 58 | #if defined(CONFIG_NAND_U_BOOT) && !defined(CONFIG_NAND_SPL) |
| 59 | #define CONFIG_DEFAULT_IMMR CONFIG_SYS_IMMR |
| 60 | #endif |
| 61 | |
| 62 | #define CONFIG_SYS_MEMTEST_START 0x00001000 |
| 63 | #define CONFIG_SYS_MEMTEST_END 0x07f00000 |
| 64 | |
Joe Hershberger | bb0f5bc | 2011-10-11 23:57:21 -0500 | [diff] [blame] | 65 | #define CONFIG_SYS_ACR_PIPE_DEP 3 /* Arbiter pipeline depth (0-3) */ |
| 66 | #define CONFIG_SYS_ACR_RPTCNT 3 /* Arbiter repeat count (0-7) */ |
Ron Madrid | 5bb907a | 2009-01-22 15:05:24 -0800 | [diff] [blame] | 67 | |
| 68 | /* |
| 69 | * Device configurations |
| 70 | */ |
| 71 | #define CONFIG_TSEC1 |
| 72 | |
| 73 | /* |
| 74 | * DDR Setup |
| 75 | */ |
Joe Hershberger | bb0f5bc | 2011-10-11 23:57:21 -0500 | [diff] [blame] | 76 | /* DDR is system memory*/ |
| 77 | #define CONFIG_SYS_DDR_BASE 0x00000000 |
Ron Madrid | 5bb907a | 2009-01-22 15:05:24 -0800 | [diff] [blame] | 78 | #define CONFIG_SYS_SDRAM_BASE CONFIG_SYS_DDR_BASE |
| 79 | #define CONFIG_SYS_DDR_SDRAM_BASE CONFIG_SYS_DDR_BASE |
| 80 | |
| 81 | #define CONFIG_VERY_BIG_RAM |
| 82 | #define CONFIG_MAX_MEM_MAPPED (512 << 20) |
| 83 | |
Joe Hershberger | bb0f5bc | 2011-10-11 23:57:21 -0500 | [diff] [blame] | 84 | #define CONFIG_SYS_DDRCDR (DDRCDR_EN \ |
Ron Madrid | 5bb907a | 2009-01-22 15:05:24 -0800 | [diff] [blame] | 85 | | DDRCDR_PZ_NOMZ \ |
| 86 | | DDRCDR_NZ_NOMZ \ |
Joe Hershberger | bb0f5bc | 2011-10-11 23:57:21 -0500 | [diff] [blame] | 87 | | DDRCDR_M_ODR) |
Ron Madrid | 5bb907a | 2009-01-22 15:05:24 -0800 | [diff] [blame] | 88 | /* 0x73000002 TODO ODR & DRN ? */ |
| 89 | |
| 90 | /* |
| 91 | * FLASH on the Local Bus |
| 92 | */ |
| 93 | #define CONFIG_SYS_NO_FLASH |
| 94 | |
Ron Madrid | 5bb907a | 2009-01-22 15:05:24 -0800 | [diff] [blame] | 95 | #if !defined(CONFIG_NAND_SPL) |
| 96 | #define CONFIG_SYS_RAMBOOT |
| 97 | #endif |
| 98 | |
| 99 | #define CONFIG_SYS_INIT_RAM_LOCK 1 |
Joe Hershberger | bb0f5bc | 2011-10-11 23:57:21 -0500 | [diff] [blame] | 100 | #define CONFIG_SYS_INIT_RAM_ADDR 0xFD000000 /* Initial RAM address */ |
| 101 | #define CONFIG_SYS_INIT_RAM_SIZE 0x1000 /* Size of used area in RAM*/ |
Ron Madrid | 5bb907a | 2009-01-22 15:05:24 -0800 | [diff] [blame] | 102 | |
Joe Hershberger | bb0f5bc | 2011-10-11 23:57:21 -0500 | [diff] [blame] | 103 | #define CONFIG_SYS_GBL_DATA_OFFSET \ |
| 104 | (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE) |
Ron Madrid | 5bb907a | 2009-01-22 15:05:24 -0800 | [diff] [blame] | 105 | #define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET |
| 106 | |
| 107 | /* CONFIG_SYS_MONITOR_LEN must be a multiple of CONFIG_ENV_SECT_SIZE */ |
Joe Hershberger | bb0f5bc | 2011-10-11 23:57:21 -0500 | [diff] [blame] | 108 | #define CONFIG_SYS_MONITOR_LEN (256 * 1024) /* Reserve 256 kB for Mon */ |
| 109 | #define CONFIG_SYS_MALLOC_LEN (512 * 1024) /* Reserved for malloc */ |
Ron Madrid | 5bb907a | 2009-01-22 15:05:24 -0800 | [diff] [blame] | 110 | |
| 111 | /* |
| 112 | * Local Bus LCRR and LBCR regs |
| 113 | */ |
Kim Phillips | c7190f0 | 2009-09-25 18:19:44 -0500 | [diff] [blame] | 114 | #define CONFIG_SYS_LCRR_DBYP LCRR_DBYP |
| 115 | #define CONFIG_SYS_LCRR_EADC LCRR_EADC_1 |
| 116 | #define CONFIG_SYS_LCRR_CLKDIV LCRR_CLKDIV_2 |
Ron Madrid | 5bb907a | 2009-01-22 15:05:24 -0800 | [diff] [blame] | 117 | #define CONFIG_SYS_LBC_LBCR (0x00040000 /* TODO */ \ |
| 118 | | (0xFF << LBCR_BMT_SHIFT) \ |
Joe Hershberger | bb0f5bc | 2011-10-11 23:57:21 -0500 | [diff] [blame] | 119 | | 0xF) /* 0x0004ff0f */ |
Ron Madrid | 5bb907a | 2009-01-22 15:05:24 -0800 | [diff] [blame] | 120 | |
Joe Hershberger | bb0f5bc | 2011-10-11 23:57:21 -0500 | [diff] [blame] | 121 | /* LB refresh timer prescal, 266MHz/32 */ |
| 122 | #define CONFIG_SYS_LBC_MRTPR 0x20000000 |
Ron Madrid | 5bb907a | 2009-01-22 15:05:24 -0800 | [diff] [blame] | 123 | |
| 124 | /* drivers/mtd/nand/nand.c */ |
| 125 | #ifdef CONFIG_NAND_SPL |
| 126 | #define CONFIG_SYS_NAND_BASE 0xFFF00000 |
| 127 | #else |
| 128 | #define CONFIG_SYS_NAND_BASE 0xE2800000 |
| 129 | #endif |
Ron Madrid | 3b43979 | 2010-04-28 16:04:43 -0700 | [diff] [blame] | 130 | #define CONFIG_SYS_FPGA_BASE 0xFF000000 |
Ron Madrid | 5bb907a | 2009-01-22 15:05:24 -0800 | [diff] [blame] | 131 | |
Vladimir Zapolskiy | 6bbb3e9 | 2011-11-20 16:10:16 +0200 | [diff] [blame] | 132 | #define CONFIG_CMD_NAND |
Ron Madrid | 5bb907a | 2009-01-22 15:05:24 -0800 | [diff] [blame] | 133 | #define CONFIG_SYS_MAX_NAND_DEVICE 1 |
Ron Madrid | 5bb907a | 2009-01-22 15:05:24 -0800 | [diff] [blame] | 134 | #define CONFIG_MTD_NAND_VERIFY_WRITE |
Ron Madrid | 5bb907a | 2009-01-22 15:05:24 -0800 | [diff] [blame] | 135 | #define CONFIG_NAND_FSL_ELBC 1 |
| 136 | |
Joe Hershberger | bb0f5bc | 2011-10-11 23:57:21 -0500 | [diff] [blame] | 137 | #define CONFIG_SYS_NAND_BR_PRELIM (CONFIG_SYS_NAND_BASE \ |
Joe Hershberger | 7d6a098 | 2011-10-11 23:57:30 -0500 | [diff] [blame] | 138 | | BR_DECC_CHK_GEN /* Use HW ECC */ \ |
Joe Hershberger | bb0f5bc | 2011-10-11 23:57:21 -0500 | [diff] [blame] | 139 | | BR_PS_8 /* 8 bit Port */ \ |
| 140 | | BR_MS_FCM /* MSEL = FCM */ \ |
| 141 | | BR_V) /* valid */ |
Ron Madrid | 5bb907a | 2009-01-22 15:05:24 -0800 | [diff] [blame] | 142 | |
| 143 | #ifdef CONFIG_NAND_SP |
Joe Hershberger | 7d6a098 | 2011-10-11 23:57:30 -0500 | [diff] [blame] | 144 | #define CONFIG_SYS_NAND_OR_PRELIM (OR_AM_32KB \ |
Ron Madrid | 5bb907a | 2009-01-22 15:05:24 -0800 | [diff] [blame] | 145 | | OR_FCM_CSCT \ |
| 146 | | OR_FCM_CST \ |
| 147 | | OR_FCM_CHT \ |
| 148 | | OR_FCM_SCY_1 \ |
| 149 | | OR_FCM_TRLX \ |
Joe Hershberger | bb0f5bc | 2011-10-11 23:57:21 -0500 | [diff] [blame] | 150 | | OR_FCM_EHTR) |
Joe Hershberger | 7d6a098 | 2011-10-11 23:57:30 -0500 | [diff] [blame] | 151 | #define CONFIG_SYS_LBLAWAR0_PRELIM (LBLAWAR_EN | LBLAWAR_32KB) |
| 152 | #define CONFIG_SYS_NAND_PAGE_SIZE 512 /* NAND chip page size */ |
Joe Hershberger | bb0f5bc | 2011-10-11 23:57:21 -0500 | [diff] [blame] | 153 | /* NAND chip block size */ |
| 154 | #define CONFIG_SYS_NAND_BLOCK_SIZE (16 << 10) |
Ron Madrid | 5bb907a | 2009-01-22 15:05:24 -0800 | [diff] [blame] | 155 | #define NAND_CACHE_PAGES 32 |
| 156 | #elif defined(CONFIG_NAND_LP) |
Joe Hershberger | 7d6a098 | 2011-10-11 23:57:30 -0500 | [diff] [blame] | 157 | #define CONFIG_SYS_NAND_OR_PRELIM (OR_AM_256KB \ |
Ron Madrid | 5bb907a | 2009-01-22 15:05:24 -0800 | [diff] [blame] | 158 | | OR_FCM_PGS \ |
| 159 | | OR_FCM_CSCT \ |
| 160 | | OR_FCM_CST \ |
| 161 | | OR_FCM_CHT \ |
| 162 | | OR_FCM_SCY_1 \ |
| 163 | | OR_FCM_TRLX \ |
Joe Hershberger | bb0f5bc | 2011-10-11 23:57:21 -0500 | [diff] [blame] | 164 | | OR_FCM_EHTR) |
Joe Hershberger | 7d6a098 | 2011-10-11 23:57:30 -0500 | [diff] [blame] | 165 | #define CONFIG_SYS_LBLAWAR0_PRELIM (LBLAWAR_EN | LBLAWAR_256KB) |
| 166 | #define CONFIG_SYS_NAND_PAGE_SIZE 2048 /* NAND chip page size */ |
Joe Hershberger | bb0f5bc | 2011-10-11 23:57:21 -0500 | [diff] [blame] | 167 | /* NAND chip block size */ |
| 168 | #define CONFIG_SYS_NAND_BLOCK_SIZE (128 << 10) |
Ron Madrid | 5bb907a | 2009-01-22 15:05:24 -0800 | [diff] [blame] | 169 | #define NAND_CACHE_PAGES 64 |
| 170 | #else |
| 171 | #error Page size of NAND not defined. |
| 172 | #endif /* CONFIG_NAND_SP */ |
| 173 | |
| 174 | #define CONFIG_SYS_NAND_U_BOOT_OFFS CONFIG_SYS_NAND_BLOCK_SIZE |
| 175 | |
| 176 | #define CONFIG_SYS_BR0_PRELIM CONFIG_SYS_NAND_BR_PRELIM |
| 177 | #define CONFIG_SYS_OR0_PRELIM CONFIG_SYS_NAND_OR_PRELIM |
| 178 | |
| 179 | #define CONFIG_SYS_LBLAWBAR0_PRELIM CONFIG_SYS_NAND_BASE |
| 180 | |
| 181 | #define CONFIG_SYS_NAND_LBLAWBAR_PRELIM CONFIG_SYS_LBLAWBAR0_PRELIM |
| 182 | #define CONFIG_SYS_NAND_LBLAWAR_PRELIM CONFIG_SYS_LBLAWAR0_PRELIM |
| 183 | |
Joe Hershberger | bb0f5bc | 2011-10-11 23:57:21 -0500 | [diff] [blame] | 184 | #define CONFIG_SYS_BR1_PRELIM (CONFIG_SYS_FPGA_BASE \ |
Ron Madrid | 3b43979 | 2010-04-28 16:04:43 -0700 | [diff] [blame] | 185 | | BR_PS_16 \ |
| 186 | | BR_MS_UPMA \ |
Joe Hershberger | bb0f5bc | 2011-10-11 23:57:21 -0500 | [diff] [blame] | 187 | | BR_V) |
| 188 | #define CONFIG_SYS_OR1_PRELIM (OR_AM_2MB \ |
Ron Madrid | 3b43979 | 2010-04-28 16:04:43 -0700 | [diff] [blame] | 189 | | OR_UPM_BCTLD) |
| 190 | |
| 191 | #define CONFIG_SYS_LBLAWBAR1_PRELIM CONFIG_SYS_FPGA_BASE |
| 192 | #define CONFIG_SYS_LBLAWAR1_PRELIM (LBLAWAR_EN | LBLAWAR_2MB) |
| 193 | |
Ron Madrid | 5bb907a | 2009-01-22 15:05:24 -0800 | [diff] [blame] | 194 | /* |
| 195 | * JFFS2 configuration |
| 196 | */ |
| 197 | #define CONFIG_JFFS2_NAND |
| 198 | #define CONFIG_JFFS2_DEV "nand0" |
| 199 | |
| 200 | /* mtdparts command line support */ |
Stefan Roese | 68d7d65 | 2009-03-19 13:30:36 +0100 | [diff] [blame] | 201 | #define CONFIG_CMD_MTDPARTS |
Joe Hershberger | bb0f5bc | 2011-10-11 23:57:21 -0500 | [diff] [blame] | 202 | #define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ |
Ron Madrid | 5bb907a | 2009-01-22 15:05:24 -0800 | [diff] [blame] | 203 | #define MTDIDS_DEFAULT "nand0=nand0" |
| 204 | #define MTDPARTS_DEFAULT "mtdparts=nand0:2M(u-boot),6M(kernel),-(jffs2)" |
| 205 | |
| 206 | /* pass open firmware flat tree */ |
| 207 | #define CONFIG_OF_LIBFDT 1 |
| 208 | #define CONFIG_OF_BOARD_SETUP 1 |
| 209 | #define CONFIG_OF_STDOUT_VIA_ALIAS 1 |
| 210 | |
| 211 | /* |
| 212 | * Serial Port |
| 213 | */ |
| 214 | #define CONFIG_CONS_INDEX 1 |
| 215 | #define CONFIG_SYS_NS16550 |
| 216 | #define CONFIG_SYS_NS16550_SERIAL |
| 217 | #define CONFIG_SYS_NS16550_REG_SIZE 1 |
Ron Madrid | f5675aa | 2009-02-18 14:30:44 -0800 | [diff] [blame] | 218 | #ifdef CONFIG_NAND_SPL |
| 219 | #define CONFIG_NS16550_MIN_FUNCTIONS |
| 220 | #endif |
Ron Madrid | 5bb907a | 2009-01-22 15:05:24 -0800 | [diff] [blame] | 221 | |
| 222 | #define CONFIG_SYS_BAUDRATE_TABLE \ |
Joe Hershberger | bb0f5bc | 2011-10-11 23:57:21 -0500 | [diff] [blame] | 223 | {300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 115200} |
Ron Madrid | 5bb907a | 2009-01-22 15:05:24 -0800 | [diff] [blame] | 224 | |
| 225 | #define CONFIG_SYS_NS16550_COM1 (CONFIG_SYS_IMMR+0x4500) |
| 226 | #define CONFIG_SYS_NS16550_COM2 (CONFIG_SYS_IMMR+0x4600) |
| 227 | |
| 228 | /* Use the HUSH parser */ |
| 229 | #define CONFIG_SYS_HUSH_PARSER |
Ron Madrid | 5bb907a | 2009-01-22 15:05:24 -0800 | [diff] [blame] | 230 | |
| 231 | /* I2C */ |
Joe Hershberger | bb0f5bc | 2011-10-11 23:57:21 -0500 | [diff] [blame] | 232 | #define CONFIG_HARD_I2C /* I2C with hardware support*/ |
Ron Madrid | 5bb907a | 2009-01-22 15:05:24 -0800 | [diff] [blame] | 233 | #define CONFIG_FSL_I2C |
| 234 | #define CONFIG_I2C_MULTI_BUS |
Joe Hershberger | bb0f5bc | 2011-10-11 23:57:21 -0500 | [diff] [blame] | 235 | #define CONFIG_SYS_I2C_SPEED 400000 /* I2C speed and slave address */ |
| 236 | #define CONFIG_SYS_I2C_SLAVE 0x7F |
| 237 | #define CONFIG_SYS_I2C_NOPROBES { {0, 0x69} } /* Don't probe these addrs */ |
| 238 | #define CONFIG_SYS_I2C_OFFSET 0x3000 |
| 239 | #define CONFIG_SYS_I2C2_OFFSET 0x3100 |
Ron Madrid | 5bb907a | 2009-01-22 15:05:24 -0800 | [diff] [blame] | 240 | |
| 241 | /* |
| 242 | * General PCI |
| 243 | * Addresses are mapped 1-1. |
| 244 | */ |
| 245 | #define CONFIG_SYS_PCI1_MEM_BASE 0x80000000 |
| 246 | #define CONFIG_SYS_PCI1_MEM_PHYS CONFIG_SYS_PCI1_MEM_BASE |
| 247 | #define CONFIG_SYS_PCI1_MEM_SIZE 0x10000000 /* 256M */ |
| 248 | #define CONFIG_SYS_PCI1_MMIO_BASE 0x90000000 |
| 249 | #define CONFIG_SYS_PCI1_MMIO_PHYS CONFIG_SYS_PCI1_MMIO_BASE |
| 250 | #define CONFIG_SYS_PCI1_MMIO_SIZE 0x10000000 /* 256M */ |
| 251 | #define CONFIG_SYS_PCI1_IO_BASE 0x00000000 |
| 252 | #define CONFIG_SYS_PCI1_IO_PHYS 0xE2000000 |
| 253 | #define CONFIG_SYS_PCI1_IO_SIZE 0x00100000 /* 1M */ |
| 254 | |
| 255 | #define CONFIG_PCI_PNP /* do pci plug-and-play */ |
| 256 | #define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x1057 /* Motorola */ |
| 257 | |
| 258 | /* |
| 259 | * TSEC |
| 260 | */ |
| 261 | #define CONFIG_TSEC_ENET /* TSEC ethernet support */ |
| 262 | |
Ron Madrid | 5bb907a | 2009-01-22 15:05:24 -0800 | [diff] [blame] | 263 | #define CONFIG_GMII /* MII PHY management */ |
| 264 | |
| 265 | #ifdef CONFIG_TSEC1 |
| 266 | #define CONFIG_HAS_ETH0 |
| 267 | #define CONFIG_TSEC1_NAME "TSEC0" |
| 268 | #define CONFIG_SYS_TSEC1_OFFSET 0x24000 |
| 269 | #define TSEC1_PHY_ADDR 0x0 |
| 270 | #define TSEC1_FLAGS TSEC_GIGABIT |
| 271 | #define TSEC1_PHYIDX 0 |
| 272 | #endif |
| 273 | |
| 274 | #ifdef CONFIG_TSEC2 |
| 275 | #define CONFIG_HAS_ETH1 |
| 276 | #define CONFIG_TSEC2_NAME "TSEC1" |
| 277 | #define CONFIG_SYS_TSEC2_OFFSET 0x25000 |
| 278 | #define TSEC2_PHY_ADDR 4 |
| 279 | #define TSEC2_FLAGS TSEC_GIGABIT |
| 280 | #define TSEC2_PHYIDX 0 |
| 281 | #endif |
| 282 | |
| 283 | |
| 284 | /* Options are: TSEC[0-1] */ |
| 285 | #define CONFIG_ETHPRIME "TSEC1" |
| 286 | |
| 287 | /* |
| 288 | * Configure on-board RTC |
| 289 | */ |
| 290 | #define CONFIG_RTC_DS1337 |
| 291 | #define CONFIG_SYS_I2C_RTC_ADDR 0x68 |
| 292 | |
| 293 | /* |
| 294 | * Environment |
| 295 | */ |
| 296 | #if defined(CONFIG_NAND_U_BOOT) |
Joe Hershberger | bb0f5bc | 2011-10-11 23:57:21 -0500 | [diff] [blame] | 297 | #define CONFIG_ENV_IS_IN_NAND 1 |
| 298 | #define CONFIG_ENV_OFFSET (768 * 1024) |
| 299 | #define CONFIG_ENV_SECT_SIZE CONFIG_SYS_NAND_BLOCK_SIZE |
| 300 | #define CONFIG_ENV_SIZE CONFIG_ENV_SECT_SIZE |
| 301 | #define CONFIG_ENV_SIZE_REDUND CONFIG_ENV_SIZE |
| 302 | #define CONFIG_ENV_RANGE (CONFIG_ENV_SECT_SIZE * 4) |
| 303 | #define CONFIG_ENV_OFFSET_REDUND \ |
| 304 | (CONFIG_ENV_OFFSET + CONFIG_ENV_RANGE) |
Ron Madrid | 5bb907a | 2009-01-22 15:05:24 -0800 | [diff] [blame] | 305 | #elif !defined(CONFIG_SYS_RAMBOOT) |
Joe Hershberger | bb0f5bc | 2011-10-11 23:57:21 -0500 | [diff] [blame] | 306 | #define CONFIG_ENV_IS_IN_FLASH 1 |
| 307 | #define CONFIG_ENV_ADDR \ |
| 308 | (CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN) |
| 309 | #define CONFIG_ENV_SECT_SIZE 0x10000 /* 64K(one sector) for env */ |
| 310 | #define CONFIG_ENV_SIZE 0x2000 |
Ron Madrid | 5bb907a | 2009-01-22 15:05:24 -0800 | [diff] [blame] | 311 | |
| 312 | /* Address and size of Redundant Environment Sector */ |
| 313 | #else |
Joe Hershberger | bb0f5bc | 2011-10-11 23:57:21 -0500 | [diff] [blame] | 314 | #define CONFIG_ENV_IS_NOWHERE 1 /* Store ENV in memory only */ |
| 315 | #define CONFIG_ENV_ADDR (CONFIG_SYS_MONITOR_BASE - 0x1000) |
| 316 | #define CONFIG_ENV_SIZE 0x2000 |
Ron Madrid | 5bb907a | 2009-01-22 15:05:24 -0800 | [diff] [blame] | 317 | #endif |
| 318 | |
Joe Hershberger | bb0f5bc | 2011-10-11 23:57:21 -0500 | [diff] [blame] | 319 | #define CONFIG_LOADS_ECHO 1 /* echo on for serial download */ |
| 320 | #define CONFIG_SYS_LOADS_BAUD_CHANGE 1 /* allow baudrate change */ |
Ron Madrid | 5bb907a | 2009-01-22 15:05:24 -0800 | [diff] [blame] | 321 | |
| 322 | /* |
| 323 | * BOOTP options |
| 324 | */ |
| 325 | #define CONFIG_BOOTP_BOOTFILESIZE |
| 326 | #define CONFIG_BOOTP_BOOTPATH |
| 327 | #define CONFIG_BOOTP_GATEWAY |
| 328 | #define CONFIG_BOOTP_HOSTNAME |
| 329 | |
| 330 | |
| 331 | /* |
| 332 | * Command line configuration. |
| 333 | */ |
| 334 | #include <config_cmd_default.h> |
| 335 | #undef CONFIG_CMD_IMLS |
| 336 | #undef CONFIG_CMD_FLASH |
| 337 | |
| 338 | #define CONFIG_CMD_PING |
| 339 | #define CONFIG_CMD_DHCP |
| 340 | #define CONFIG_CMD_I2C |
| 341 | #define CONFIG_CMD_MII |
| 342 | #define CONFIG_CMD_DATE |
| 343 | #define CONFIG_CMD_PCI |
| 344 | #define CONFIG_CMD_JFFS2 |
| 345 | |
| 346 | #if defined(CONFIG_SYS_RAMBOOT) && !defined(CONFIG_NAND_U_BOOT) |
Mike Frysinger | bdab39d | 2009-01-28 19:08:14 -0500 | [diff] [blame] | 347 | #undef CONFIG_CMD_SAVEENV |
Ron Madrid | 5bb907a | 2009-01-22 15:05:24 -0800 | [diff] [blame] | 348 | #undef CONFIG_CMD_LOADS |
| 349 | #endif |
| 350 | |
Joe Hershberger | bb0f5bc | 2011-10-11 23:57:21 -0500 | [diff] [blame] | 351 | #define CONFIG_CMDLINE_EDITING 1 |
| 352 | #define CONFIG_AUTO_COMPLETE /* add autocompletion support */ |
Ron Madrid | 5bb907a | 2009-01-22 15:05:24 -0800 | [diff] [blame] | 353 | |
| 354 | /* |
| 355 | * Miscellaneous configurable options |
| 356 | */ |
Joe Hershberger | bb0f5bc | 2011-10-11 23:57:21 -0500 | [diff] [blame] | 357 | #define CONFIG_SYS_LONGHELP /* undef to save memory */ |
| 358 | #define CONFIG_SYS_LOAD_ADDR 0x2000000 /* default load address */ |
| 359 | #define CONFIG_SYS_PROMPT "=> " /* Monitor Command Prompt */ |
| 360 | #define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buffer Size */ |
Ron Madrid | 5bb907a | 2009-01-22 15:05:24 -0800 | [diff] [blame] | 361 | |
Joe Hershberger | bb0f5bc | 2011-10-11 23:57:21 -0500 | [diff] [blame] | 362 | #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE \ |
| 363 | + sizeof(CONFIG_SYS_PROMPT) \ |
| 364 | + 16) /* Print Buffer Size */ |
| 365 | #define CONFIG_SYS_MAXARGS 16 /* max number of command args */ |
| 366 | /* Boot Argument Buffer Size */ |
| 367 | #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE |
| 368 | #define CONFIG_SYS_HZ 1000 /* decrementer freq: 1ms ticks */ |
Ron Madrid | 5bb907a | 2009-01-22 15:05:24 -0800 | [diff] [blame] | 369 | |
| 370 | /* |
| 371 | * For booting Linux, the board info and command line data |
Ira W. Snyder | 9f530d5 | 2010-09-10 15:42:32 -0700 | [diff] [blame] | 372 | * have to be in the first 256 MB of memory, since this is |
Ron Madrid | 5bb907a | 2009-01-22 15:05:24 -0800 | [diff] [blame] | 373 | * the maximum mapped by the Linux kernel during initialization. |
| 374 | */ |
Joe Hershberger | bb0f5bc | 2011-10-11 23:57:21 -0500 | [diff] [blame] | 375 | /* Initial Memory map for Linux*/ |
| 376 | #define CONFIG_SYS_BOOTMAPSZ (256 << 20) |
Ron Madrid | 5bb907a | 2009-01-22 15:05:24 -0800 | [diff] [blame] | 377 | |
Joe Hershberger | bb0f5bc | 2011-10-11 23:57:21 -0500 | [diff] [blame] | 378 | #define CONFIG_SYS_RCWH_PCIHOST 0x80000000 /* PCIHOST */ |
Ron Madrid | 5bb907a | 2009-01-22 15:05:24 -0800 | [diff] [blame] | 379 | |
Joe Hershberger | bb0f5bc | 2011-10-11 23:57:21 -0500 | [diff] [blame] | 380 | #define CONFIG_SYS_HRCW_LOW (HRCWL_LCL_BUS_TO_SCB_CLK_1X1 \ |
| 381 | | 0x20000000 /* reserved */ \ |
| 382 | | HRCWL_DDR_TO_SCB_CLK_2X1 \ |
| 383 | | HRCWL_CSB_TO_CLKIN_4X1 \ |
| 384 | | HRCWL_CORE_TO_CSB_2_5X1) |
Ron Madrid | 5bb907a | 2009-01-22 15:05:24 -0800 | [diff] [blame] | 385 | |
Joe Hershberger | bb0f5bc | 2011-10-11 23:57:21 -0500 | [diff] [blame] | 386 | #define CONFIG_SYS_NS16550_CLK (CONFIG_83XX_CLKIN * 4) |
Ron Madrid | 5bb907a | 2009-01-22 15:05:24 -0800 | [diff] [blame] | 387 | |
Joe Hershberger | bb0f5bc | 2011-10-11 23:57:21 -0500 | [diff] [blame] | 388 | #define CONFIG_SYS_HRCW_HIGH_BASE (HRCWH_PCI_HOST \ |
| 389 | | HRCWH_PCI1_ARBITER_ENABLE \ |
| 390 | | HRCWH_CORE_ENABLE \ |
| 391 | | HRCWH_BOOTSEQ_DISABLE \ |
| 392 | | HRCWH_SW_WATCHDOG_DISABLE \ |
| 393 | | HRCWH_TSEC1M_IN_RGMII \ |
| 394 | | HRCWH_TSEC2M_IN_RGMII \ |
| 395 | | HRCWH_BIG_ENDIAN \ |
| 396 | | HRCWH_LALE_NORMAL) |
Ron Madrid | 5bb907a | 2009-01-22 15:05:24 -0800 | [diff] [blame] | 397 | |
| 398 | #ifdef CONFIG_NAND_LP |
Joe Hershberger | bb0f5bc | 2011-10-11 23:57:21 -0500 | [diff] [blame] | 399 | #define CONFIG_SYS_HRCW_HIGH (CONFIG_SYS_HRCW_HIGH_BASE \ |
| 400 | | HRCWH_FROM_0XFFF00100 \ |
| 401 | | HRCWH_ROM_LOC_NAND_LP_8BIT \ |
Ron Madrid | 5bb907a | 2009-01-22 15:05:24 -0800 | [diff] [blame] | 402 | | HRCWH_RL_EXT_NAND) |
| 403 | #else |
Joe Hershberger | bb0f5bc | 2011-10-11 23:57:21 -0500 | [diff] [blame] | 404 | #define CONFIG_SYS_HRCW_HIGH (CONFIG_SYS_HRCW_HIGH_BASE \ |
| 405 | | HRCWH_FROM_0XFFF00100 \ |
| 406 | | HRCWH_ROM_LOC_NAND_SP_8BIT \ |
| 407 | | HRCWH_RL_EXT_NAND) |
Ron Madrid | 5bb907a | 2009-01-22 15:05:24 -0800 | [diff] [blame] | 408 | #endif |
| 409 | |
| 410 | /* System IO Config */ |
Joe Hershberger | bb0f5bc | 2011-10-11 23:57:21 -0500 | [diff] [blame] | 411 | #define CONFIG_SYS_SICRH (SICRH_ETSEC2_B \ |
Ron Madrid | 5bb907a | 2009-01-22 15:05:24 -0800 | [diff] [blame] | 412 | | SICRH_ETSEC2_C \ |
| 413 | | SICRH_ETSEC2_D \ |
| 414 | | SICRH_ETSEC2_E \ |
| 415 | | SICRH_ETSEC2_F \ |
| 416 | | SICRH_ETSEC2_G \ |
| 417 | | SICRH_TSOBI1 \ |
Joe Hershberger | bb0f5bc | 2011-10-11 23:57:21 -0500 | [diff] [blame] | 418 | | SICRH_TSOBI2) |
| 419 | #define CONFIG_SYS_SICRL (SICRL_LBC \ |
Ron Madrid | f986325 | 2010-06-01 17:00:49 -0700 | [diff] [blame] | 420 | | SICRL_USBDR_10 \ |
Joe Hershberger | bb0f5bc | 2011-10-11 23:57:21 -0500 | [diff] [blame] | 421 | | SICRL_ETSEC2_A) |
Ron Madrid | 5bb907a | 2009-01-22 15:05:24 -0800 | [diff] [blame] | 422 | |
| 423 | #define CONFIG_SYS_HID0_INIT 0x000000000 |
Joe Hershberger | bb0f5bc | 2011-10-11 23:57:21 -0500 | [diff] [blame] | 424 | #define CONFIG_SYS_HID0_FINAL (HID0_ENABLE_MACHINE_CHECK \ |
| 425 | | HID0_ENABLE_INSTRUCTION_CACHE \ |
| 426 | | HID0_ENABLE_DYNAMIC_POWER_MANAGMENT) |
Ron Madrid | 5bb907a | 2009-01-22 15:05:24 -0800 | [diff] [blame] | 427 | |
| 428 | #define CONFIG_SYS_HID2 HID2_HBE |
| 429 | |
| 430 | #define CONFIG_HIGH_BATS 1 /* High BATs supported */ |
| 431 | |
| 432 | /* DDR @ 0x00000000 */ |
Joe Hershberger | 72cd408 | 2011-10-11 23:57:28 -0500 | [diff] [blame] | 433 | #define CONFIG_SYS_IBAT0L (CONFIG_SYS_SDRAM_BASE | BATL_PP_RW) |
Joe Hershberger | bb0f5bc | 2011-10-11 23:57:21 -0500 | [diff] [blame] | 434 | #define CONFIG_SYS_IBAT0U (CONFIG_SYS_SDRAM_BASE \ |
| 435 | | BATU_BL_256M \ |
| 436 | | BATU_VS \ |
| 437 | | BATU_VP) |
| 438 | #define CONFIG_SYS_IBAT1L ((CONFIG_SYS_SDRAM_BASE + 0x10000000) \ |
Joe Hershberger | 72cd408 | 2011-10-11 23:57:28 -0500 | [diff] [blame] | 439 | | BATL_PP_RW) |
Joe Hershberger | bb0f5bc | 2011-10-11 23:57:21 -0500 | [diff] [blame] | 440 | #define CONFIG_SYS_IBAT1U ((CONFIG_SYS_SDRAM_BASE + 0x10000000) \ |
| 441 | | BATU_BL_256M \ |
| 442 | | BATU_VS \ |
| 443 | | BATU_VP) |
Ron Madrid | 5bb907a | 2009-01-22 15:05:24 -0800 | [diff] [blame] | 444 | |
| 445 | /* PCI @ 0x80000000 */ |
Joe Hershberger | 72cd408 | 2011-10-11 23:57:28 -0500 | [diff] [blame] | 446 | #define CONFIG_SYS_IBAT2L (CONFIG_SYS_PCI1_MEM_BASE | BATL_PP_RW) |
Joe Hershberger | bb0f5bc | 2011-10-11 23:57:21 -0500 | [diff] [blame] | 447 | #define CONFIG_SYS_IBAT2U (CONFIG_SYS_PCI1_MEM_BASE \ |
| 448 | | BATU_BL_256M \ |
| 449 | | BATU_VS \ |
| 450 | | BATU_VP) |
| 451 | #define CONFIG_SYS_IBAT3L (CONFIG_SYS_PCI1_MMIO_BASE \ |
Joe Hershberger | 72cd408 | 2011-10-11 23:57:28 -0500 | [diff] [blame] | 452 | | BATL_PP_RW \ |
Joe Hershberger | bb0f5bc | 2011-10-11 23:57:21 -0500 | [diff] [blame] | 453 | | BATL_CACHEINHIBIT \ |
| 454 | | BATL_GUARDEDSTORAGE) |
| 455 | #define CONFIG_SYS_IBAT3U (CONFIG_SYS_PCI1_MMIO_BASE \ |
| 456 | | BATU_BL_256M \ |
| 457 | | BATU_VS \ |
| 458 | | BATU_VP) |
Ron Madrid | 5bb907a | 2009-01-22 15:05:24 -0800 | [diff] [blame] | 459 | |
| 460 | /* PCI2 not supported on 8313 */ |
| 461 | #define CONFIG_SYS_IBAT4L (0) |
| 462 | #define CONFIG_SYS_IBAT4U (0) |
| 463 | |
| 464 | /* IMMRBAR @ 0xE0000000, PCI IO @ 0xE2000000 */ |
Joe Hershberger | bb0f5bc | 2011-10-11 23:57:21 -0500 | [diff] [blame] | 465 | #define CONFIG_SYS_IBAT5L (CONFIG_SYS_IMMR \ |
Joe Hershberger | 72cd408 | 2011-10-11 23:57:28 -0500 | [diff] [blame] | 466 | | BATL_PP_RW \ |
Joe Hershberger | bb0f5bc | 2011-10-11 23:57:21 -0500 | [diff] [blame] | 467 | | BATL_CACHEINHIBIT \ |
| 468 | | BATL_GUARDEDSTORAGE) |
| 469 | #define CONFIG_SYS_IBAT5U (CONFIG_SYS_IMMR \ |
| 470 | | BATU_BL_256M \ |
| 471 | | BATU_VS \ |
| 472 | | BATU_VP) |
Ron Madrid | 5bb907a | 2009-01-22 15:05:24 -0800 | [diff] [blame] | 473 | |
| 474 | /* SDRAM @ 0xF0000000, stack in DCACHE 0xFDF00000 & FLASH @ 0xFE000000 */ |
Joe Hershberger | bb0f5bc | 2011-10-11 23:57:21 -0500 | [diff] [blame] | 475 | #define CONFIG_SYS_IBAT6L (0xF0000000 \ |
Joe Hershberger | 72cd408 | 2011-10-11 23:57:28 -0500 | [diff] [blame] | 476 | | BATL_PP_RW \ |
Joe Hershberger | bb0f5bc | 2011-10-11 23:57:21 -0500 | [diff] [blame] | 477 | | BATL_GUARDEDSTORAGE) |
| 478 | #define CONFIG_SYS_IBAT6U (0xF0000000 \ |
| 479 | | BATU_BL_256M \ |
| 480 | | BATU_VS \ |
| 481 | | BATU_VP) |
Ron Madrid | 5bb907a | 2009-01-22 15:05:24 -0800 | [diff] [blame] | 482 | |
| 483 | #define CONFIG_SYS_IBAT7L (0) |
| 484 | #define CONFIG_SYS_IBAT7U (0) |
| 485 | |
| 486 | #define CONFIG_SYS_DBAT0L CONFIG_SYS_IBAT0L |
| 487 | #define CONFIG_SYS_DBAT0U CONFIG_SYS_IBAT0U |
| 488 | #define CONFIG_SYS_DBAT1L CONFIG_SYS_IBAT1L |
| 489 | #define CONFIG_SYS_DBAT1U CONFIG_SYS_IBAT1U |
| 490 | #define CONFIG_SYS_DBAT2L CONFIG_SYS_IBAT2L |
| 491 | #define CONFIG_SYS_DBAT2U CONFIG_SYS_IBAT2U |
| 492 | #define CONFIG_SYS_DBAT3L CONFIG_SYS_IBAT3L |
| 493 | #define CONFIG_SYS_DBAT3U CONFIG_SYS_IBAT3U |
| 494 | #define CONFIG_SYS_DBAT4L CONFIG_SYS_IBAT4L |
| 495 | #define CONFIG_SYS_DBAT4U CONFIG_SYS_IBAT4U |
| 496 | #define CONFIG_SYS_DBAT5L CONFIG_SYS_IBAT5L |
| 497 | #define CONFIG_SYS_DBAT5U CONFIG_SYS_IBAT5U |
| 498 | #define CONFIG_SYS_DBAT6L CONFIG_SYS_IBAT6L |
| 499 | #define CONFIG_SYS_DBAT6U CONFIG_SYS_IBAT6U |
| 500 | #define CONFIG_SYS_DBAT7L CONFIG_SYS_IBAT7L |
| 501 | #define CONFIG_SYS_DBAT7U CONFIG_SYS_IBAT7U |
| 502 | |
| 503 | /* |
Ron Madrid | 5bb907a | 2009-01-22 15:05:24 -0800 | [diff] [blame] | 504 | * Environment Configuration |
| 505 | */ |
| 506 | #define CONFIG_ENV_OVERWRITE |
| 507 | |
Joe Hershberger | bb0f5bc | 2011-10-11 23:57:21 -0500 | [diff] [blame] | 508 | #define CONFIG_NETDEV "eth1" |
Ron Madrid | 5bb907a | 2009-01-22 15:05:24 -0800 | [diff] [blame] | 509 | |
| 510 | #define CONFIG_HOSTNAME simpc8313 |
Joe Hershberger | 8b3637c | 2011-10-13 13:03:47 +0000 | [diff] [blame] | 511 | #define CONFIG_ROOTPATH "/tftpboot/" |
Joe Hershberger | b3f44c2 | 2011-10-13 13:03:48 +0000 | [diff] [blame] | 512 | #define CONFIG_BOOTFILE "/tftpboot/uImage" |
Joe Hershberger | bb0f5bc | 2011-10-11 23:57:21 -0500 | [diff] [blame] | 513 | /* U-Boot image on TFTP server */ |
| 514 | #define CONFIG_UBOOTPATH "u-boot-nand.bin" |
| 515 | #define CONFIG_FDTFILE "simpc8313.dtb" |
Ron Madrid | 5bb907a | 2009-01-22 15:05:24 -0800 | [diff] [blame] | 516 | |
Joe Hershberger | bb0f5bc | 2011-10-11 23:57:21 -0500 | [diff] [blame] | 517 | /* default location for tftp and bootm */ |
| 518 | #define CONFIG_LOADADDR 500000 |
Ron Madrid | 5bb907a | 2009-01-22 15:05:24 -0800 | [diff] [blame] | 519 | #define CONFIG_BOOTDELAY 5 /* 5 second delay */ |
| 520 | #define CONFIG_BAUDRATE 115200 |
| 521 | |
Joe Hershberger | bb0f5bc | 2011-10-11 23:57:21 -0500 | [diff] [blame] | 522 | #define CONFIG_BOOTCOMMAND "nand read $loadaddr kernel 600000;" \ |
| 523 | "bootm $loadaddr - $fdtaddr" |
Ron Madrid | 5bb907a | 2009-01-22 15:05:24 -0800 | [diff] [blame] | 524 | |
Ron Madrid | 5bb907a | 2009-01-22 15:05:24 -0800 | [diff] [blame] | 525 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
Joe Hershberger | bb0f5bc | 2011-10-11 23:57:21 -0500 | [diff] [blame] | 526 | "netdev=" CONFIG_NETDEV "\0" \ |
Ron Madrid | 5bb907a | 2009-01-22 15:05:24 -0800 | [diff] [blame] | 527 | "ethprime=TSEC1\0" \ |
Joe Hershberger | bb0f5bc | 2011-10-11 23:57:21 -0500 | [diff] [blame] | 528 | "uboot=" CONFIG_UBOOTPATH "\0" \ |
Ron Madrid | 5bb907a | 2009-01-22 15:05:24 -0800 | [diff] [blame] | 529 | "tftpflash=tftpboot $loadaddr $uboot; " \ |
Marek Vasut | 5368c55 | 2012-09-23 17:41:24 +0200 | [diff] [blame] | 530 | "protect off " __stringify(CONFIG_SYS_TEXT_BASE) \ |
| 531 | " +$filesize; " \ |
| 532 | "erase " __stringify(CONFIG_SYS_TEXT_BASE) \ |
| 533 | " +$filesize; " \ |
| 534 | "cp.b $loadaddr " __stringify(CONFIG_SYS_TEXT_BASE) \ |
| 535 | " $filesize; " \ |
| 536 | "protect on " __stringify(CONFIG_SYS_TEXT_BASE) \ |
| 537 | " +$filesize; " \ |
| 538 | "cmp.b $loadaddr " __stringify(CONFIG_SYS_TEXT_BASE) \ |
| 539 | " $filesize\0" \ |
Ron Madrid | 5bb907a | 2009-01-22 15:05:24 -0800 | [diff] [blame] | 540 | "fdtaddr=ae0000\0" \ |
Joe Hershberger | bb0f5bc | 2011-10-11 23:57:21 -0500 | [diff] [blame] | 541 | "fdtfile=" CONFIG_FDTFILE "\0" \ |
Ron Madrid | 5bb907a | 2009-01-22 15:05:24 -0800 | [diff] [blame] | 542 | "console=ttyS0\0" \ |
| 543 | "setbootargs=setenv bootargs " \ |
| 544 | "root=$rootdev rw console=$console,$baudrate $othbootargs\0" \ |
Joe Hershberger | bb0f5bc | 2011-10-11 23:57:21 -0500 | [diff] [blame] | 545 | "setipargs=setenv bootargs nfsroot=$serverip:$rootpath " \ |
| 546 | "ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname:" \ |
| 547 | "$netdev:off " \ |
| 548 | "root=$rootdev rw console=$console,$baudrate $othbootargs\0" \ |
Ron Madrid | 5bb907a | 2009-01-22 15:05:24 -0800 | [diff] [blame] | 549 | "load_uboot=tftp 100000 u-boot-nand.bin\0" \ |
| 550 | "burn_uboot=nand erase u-boot 80000; " \ |
| 551 | "nand write 100000 u-boot $filesize\0" \ |
| 552 | "update_uboot=run load_uboot;run burn_uboot\0" \ |
| 553 | "mtdids=nand0=nand0\0" \ |
| 554 | "mtdparts=mtdparts=nand0:2M(u-boot),6M(kernel),-(jffs2)\0" \ |
| 555 | "nfsargs=setenv bootargs root=/dev/nfs rw " \ |
| 556 | "nfsroot=${serverip}:${rootpath}\0" \ |
| 557 | "ramargs=setenv bootargs root=/dev/ram rw\0" \ |
| 558 | "addip=setenv bootargs ${bootargs} " \ |
| 559 | "ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}" \ |
| 560 | ":${hostname}:${netdev}:off panic=1\0" \ |
Joe Hershberger | bb0f5bc | 2011-10-11 23:57:21 -0500 | [diff] [blame] | 561 | "addtty=setenv bootargs ${bootargs} console=ttyS0,${baudrate}\0" \ |
Ron Madrid | 5bb907a | 2009-01-22 15:05:24 -0800 | [diff] [blame] | 562 | "bootargs=root=/dev/mtdblock2 rootfstype=jffs2 rw " \ |
| 563 | "console=ttyS0,115200\0" \ |
| 564 | "" |
| 565 | |
| 566 | #define CONFIG_NFSBOOTCOMMAND \ |
| 567 | "setenv rootdev /dev/nfs;" \ |
| 568 | "run setbootargs;" \ |
| 569 | "run setipargs;" \ |
| 570 | "tftp $loadaddr $bootfile;" \ |
| 571 | "tftp $fdtaddr $fdtfile;" \ |
| 572 | "bootm $loadaddr - $fdtaddr" |
| 573 | |
| 574 | #define CONFIG_RAMBOOTCOMMAND \ |
| 575 | "setenv rootdev /dev/ram;" \ |
| 576 | "run setbootargs;" \ |
| 577 | "tftp $ramdiskaddr $ramdiskfile;" \ |
| 578 | "tftp $loadaddr $bootfile;" \ |
| 579 | "tftp $fdtaddr $fdtfile;" \ |
| 580 | "bootm $loadaddr $ramdiskaddr $fdtaddr" |
| 581 | |
Ron Madrid | 5bb907a | 2009-01-22 15:05:24 -0800 | [diff] [blame] | 582 | #endif /* __CONFIG_H */ |