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