Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Paul Gortmaker | 91e2576 | 2007-01-16 11:38:14 -0500 | [diff] [blame] | 2 | /* |
| 3 | * WindRiver SBC8349 U-Boot configuration file. |
| 4 | * Copyright (c) 2006, 2007 Wind River Systems, Inc. |
| 5 | * |
| 6 | * Paul Gortmaker <paul.gortmaker@windriver.com> |
| 7 | * Based on the MPC8349EMDS config. |
Paul Gortmaker | 91e2576 | 2007-01-16 11:38:14 -0500 | [diff] [blame] | 8 | */ |
| 9 | |
| 10 | /* |
| 11 | * sbc8349 board configuration file. |
| 12 | */ |
| 13 | |
| 14 | #ifndef __CONFIG_H |
| 15 | #define __CONFIG_H |
| 16 | |
Paul Gortmaker | 91e2576 | 2007-01-16 11:38:14 -0500 | [diff] [blame] | 17 | /* |
| 18 | * High Level Configuration Options |
| 19 | */ |
| 20 | #define CONFIG_E300 1 /* E300 Family */ |
Paul Gortmaker | 91e2576 | 2007-01-16 11:38:14 -0500 | [diff] [blame] | 21 | |
Paul Gortmaker | 91e2576 | 2007-01-16 11:38:14 -0500 | [diff] [blame] | 22 | /* Don't enable PCI2 on sbc834x - it doesn't exist physically. */ |
| 23 | #undef CONFIG_MPC83XX_PCI2 /* support for 2nd PCI controller */ |
| 24 | |
Joe Hershberger | 60e1dc1 | 2011-10-11 23:57:25 -0500 | [diff] [blame] | 25 | #undef CONFIG_SYS_DRAM_TEST /* memory test, takes time */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 26 | #define CONFIG_SYS_MEMTEST_START 0x00000000 /* memtest region */ |
| 27 | #define CONFIG_SYS_MEMTEST_END 0x00100000 |
Paul Gortmaker | 91e2576 | 2007-01-16 11:38:14 -0500 | [diff] [blame] | 28 | |
| 29 | /* |
| 30 | * DDR Setup |
| 31 | */ |
| 32 | #undef CONFIG_DDR_ECC /* only for ECC DDR module */ |
| 33 | #undef CONFIG_DDR_ECC_CMD /* use DDR ECC user commands */ |
| 34 | #define CONFIG_SPD_EEPROM /* use SPD EEPROM for DDR setup*/ |
Joe Hershberger | 60e1dc1 | 2011-10-11 23:57:25 -0500 | [diff] [blame] | 35 | #define CONFIG_SYS_83XX_DDR_USES_CS0 /* WRS; Fsl board uses CS2/CS3 */ |
Paul Gortmaker | 91e2576 | 2007-01-16 11:38:14 -0500 | [diff] [blame] | 36 | |
| 37 | /* |
| 38 | * 32-bit data path mode. |
| 39 | * |
| 40 | * Please note that using this mode for devices with the real density of 64-bit |
| 41 | * effectively reduces the amount of available memory due to the effect of |
| 42 | * wrapping around while translating address to row/columns, for example in the |
| 43 | * 256MB module the upper 128MB get aliased with contents of the lower |
| 44 | * 128MB); normally this define should be used for devices with real 32-bit |
| 45 | * data path. |
| 46 | */ |
| 47 | #undef CONFIG_DDR_32BIT |
| 48 | |
Mario Six | 8a81bfd | 2019-01-21 09:18:15 +0100 | [diff] [blame] | 49 | #define CONFIG_SYS_SDRAM_BASE 0x00000000 /* DDR is system memory*/ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 50 | #define CONFIG_SYS_DDR_SDRAM_CLK_CNTL (DDR_SDRAM_CLK_CNTL_SS_EN | \ |
Paul Gortmaker | 91e2576 | 2007-01-16 11:38:14 -0500 | [diff] [blame] | 51 | DDR_SDRAM_CLK_CNTL_CLK_ADJUST_075) |
| 52 | #define CONFIG_DDR_2T_TIMING |
| 53 | |
| 54 | #if defined(CONFIG_SPD_EEPROM) |
| 55 | /* |
| 56 | * Determine DDR configuration from I2C interface. |
| 57 | */ |
| 58 | #define SPD_EEPROM_ADDRESS 0x52 /* DDR DIMM */ |
| 59 | |
| 60 | #else |
| 61 | /* |
| 62 | * Manually set up DDR parameters |
| 63 | * NB: manual DDR setup untested on sbc834x |
| 64 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 65 | #define CONFIG_SYS_DDR_SIZE 256 /* MB */ |
Joe Hershberger | 2e651b2 | 2011-10-11 23:57:31 -0500 | [diff] [blame] | 66 | #define CONFIG_SYS_DDR_CS2_CONFIG (CSCONFIG_EN \ |
Joe Hershberger | 60e1dc1 | 2011-10-11 23:57:25 -0500 | [diff] [blame] | 67 | | CSCONFIG_ROW_BIT_13 \ |
| 68 | | CSCONFIG_COL_BIT_10) |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 69 | #define CONFIG_SYS_DDR_TIMING_1 0x36332321 |
| 70 | #define CONFIG_SYS_DDR_TIMING_2 0x00000800 /* P9-45,may need tuning */ |
Joe Hershberger | 60e1dc1 | 2011-10-11 23:57:25 -0500 | [diff] [blame] | 71 | #define CONFIG_SYS_DDR_CONTROL 0xc2000000 /* unbuffered,no DYN_PWR */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 72 | #define CONFIG_SYS_DDR_INTERVAL 0x04060100 /* autocharge,no open page */ |
Paul Gortmaker | 91e2576 | 2007-01-16 11:38:14 -0500 | [diff] [blame] | 73 | |
| 74 | #if defined(CONFIG_DDR_32BIT) |
| 75 | /* set burst length to 8 for 32-bit data path */ |
Joe Hershberger | 60e1dc1 | 2011-10-11 23:57:25 -0500 | [diff] [blame] | 76 | /* DLL,normal,seq,4/2.5, 8 burst len */ |
| 77 | #define CONFIG_SYS_DDR_MODE 0x00000023 |
Paul Gortmaker | 91e2576 | 2007-01-16 11:38:14 -0500 | [diff] [blame] | 78 | #else |
| 79 | /* the default burst length is 4 - for 64-bit data path */ |
Joe Hershberger | 60e1dc1 | 2011-10-11 23:57:25 -0500 | [diff] [blame] | 80 | /* DLL,normal,seq,4/2.5, 4 burst len */ |
| 81 | #define CONFIG_SYS_DDR_MODE 0x00000022 |
Paul Gortmaker | 91e2576 | 2007-01-16 11:38:14 -0500 | [diff] [blame] | 82 | #endif |
| 83 | #endif |
| 84 | |
| 85 | /* |
| 86 | * SDRAM on the Local Bus |
| 87 | */ |
Joe Hershberger | 7d6a098 | 2011-10-11 23:57:30 -0500 | [diff] [blame] | 88 | #define CONFIG_SYS_LBC_SDRAM_BASE 0xF0000000 /* Localbus SDRAM */ |
| 89 | #define CONFIG_SYS_LBC_SDRAM_SIZE 64 /* LBC SDRAM is 64MB */ |
Paul Gortmaker | 91e2576 | 2007-01-16 11:38:14 -0500 | [diff] [blame] | 90 | |
| 91 | /* |
| 92 | * FLASH on the Local Bus |
| 93 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 94 | #define CONFIG_SYS_FLASH_BASE 0xFF800000 /* start of FLASH */ |
| 95 | #define CONFIG_SYS_FLASH_SIZE 8 /* flash size in MB */ |
Paul Gortmaker | 91e2576 | 2007-01-16 11:38:14 -0500 | [diff] [blame] | 96 | |
Joe Hershberger | 7d6a098 | 2011-10-11 23:57:30 -0500 | [diff] [blame] | 97 | |
Joe Hershberger | 60e1dc1 | 2011-10-11 23:57:25 -0500 | [diff] [blame] | 98 | #define CONFIG_SYS_MAX_FLASH_BANKS 1 /* number of banks */ |
| 99 | #define CONFIG_SYS_MAX_FLASH_SECT 64 /* sectors per device */ |
Paul Gortmaker | 91e2576 | 2007-01-16 11:38:14 -0500 | [diff] [blame] | 100 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 101 | #undef CONFIG_SYS_FLASH_CHECKSUM |
| 102 | #define CONFIG_SYS_FLASH_ERASE_TOUT 60000 /* Flash Erase Timeout (ms) */ |
| 103 | #define CONFIG_SYS_FLASH_WRITE_TOUT 500 /* Flash Write Timeout (ms) */ |
Paul Gortmaker | 91e2576 | 2007-01-16 11:38:14 -0500 | [diff] [blame] | 104 | |
Wolfgang Denk | 14d0a02 | 2010-10-07 21:51:12 +0200 | [diff] [blame] | 105 | #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE /* start of monitor */ |
Paul Gortmaker | 91e2576 | 2007-01-16 11:38:14 -0500 | [diff] [blame] | 106 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 107 | #if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE) |
| 108 | #define CONFIG_SYS_RAMBOOT |
Paul Gortmaker | 91e2576 | 2007-01-16 11:38:14 -0500 | [diff] [blame] | 109 | #else |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 110 | #undef CONFIG_SYS_RAMBOOT |
Paul Gortmaker | 91e2576 | 2007-01-16 11:38:14 -0500 | [diff] [blame] | 111 | #endif |
| 112 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 113 | #define CONFIG_SYS_INIT_RAM_LOCK 1 |
Joe Hershberger | 60e1dc1 | 2011-10-11 23:57:25 -0500 | [diff] [blame] | 114 | /* Initial RAM address */ |
| 115 | #define CONFIG_SYS_INIT_RAM_ADDR 0xFD000000 |
| 116 | /* Size of used area in RAM*/ |
| 117 | #define CONFIG_SYS_INIT_RAM_SIZE 0x1000 |
Paul Gortmaker | 91e2576 | 2007-01-16 11:38:14 -0500 | [diff] [blame] | 118 | |
Joe Hershberger | 60e1dc1 | 2011-10-11 23:57:25 -0500 | [diff] [blame] | 119 | #define CONFIG_SYS_GBL_DATA_OFFSET \ |
| 120 | (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE) |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 121 | #define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET |
Paul Gortmaker | 91e2576 | 2007-01-16 11:38:14 -0500 | [diff] [blame] | 122 | |
Joe Hershberger | 60e1dc1 | 2011-10-11 23:57:25 -0500 | [diff] [blame] | 123 | #define CONFIG_SYS_MONITOR_LEN (256 * 1024) /* Reserve 256 kB for Mon */ |
Kim Phillips | c8a9064 | 2012-06-30 18:29:20 -0500 | [diff] [blame] | 124 | #define CONFIG_SYS_MALLOC_LEN (256 * 1024) /* Reserved for malloc */ |
Paul Gortmaker | 91e2576 | 2007-01-16 11:38:14 -0500 | [diff] [blame] | 125 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 126 | #undef CONFIG_SYS_LB_SDRAM /* if board has SDRAM on local bus */ |
Paul Gortmaker | 91e2576 | 2007-01-16 11:38:14 -0500 | [diff] [blame] | 127 | |
Paul Gortmaker | 91e2576 | 2007-01-16 11:38:14 -0500 | [diff] [blame] | 128 | /* |
| 129 | * Serial Port |
| 130 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 131 | #define CONFIG_SYS_NS16550_SERIAL |
| 132 | #define CONFIG_SYS_NS16550_REG_SIZE 1 |
| 133 | #define CONFIG_SYS_NS16550_CLK get_bus_freq(0) |
Paul Gortmaker | 91e2576 | 2007-01-16 11:38:14 -0500 | [diff] [blame] | 134 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 135 | #define CONFIG_SYS_BAUDRATE_TABLE \ |
Joe Hershberger | 60e1dc1 | 2011-10-11 23:57:25 -0500 | [diff] [blame] | 136 | {300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 115200} |
Paul Gortmaker | 91e2576 | 2007-01-16 11:38:14 -0500 | [diff] [blame] | 137 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 138 | #define CONFIG_SYS_NS16550_COM1 (CONFIG_SYS_IMMR+0x4500) |
| 139 | #define CONFIG_SYS_NS16550_COM2 (CONFIG_SYS_IMMR+0x4600) |
Paul Gortmaker | 91e2576 | 2007-01-16 11:38:14 -0500 | [diff] [blame] | 140 | |
Paul Gortmaker | 91e2576 | 2007-01-16 11:38:14 -0500 | [diff] [blame] | 141 | /* I2C */ |
Heiko Schocher | 00f792e | 2012-10-24 13:48:22 +0200 | [diff] [blame] | 142 | #define CONFIG_SYS_I2C |
| 143 | #define CONFIG_SYS_I2C_FSL |
| 144 | #define CONFIG_SYS_FSL_I2C_SPEED 400000 |
| 145 | #define CONFIG_SYS_FSL_I2C_SLAVE 0x7F |
| 146 | #define CONFIG_SYS_FSL_I2C_OFFSET 0x3000 |
| 147 | #define CONFIG_SYS_FSL_I2C2_SPEED 400000 |
| 148 | #define CONFIG_SYS_FSL_I2C2_SLAVE 0x7F |
| 149 | #define CONFIG_SYS_FSL_I2C2_OFFSET 0x3100 |
| 150 | #define CONFIG_SYS_I2C_NOPROBES { {0, 0x69}, {1, 0x69} } |
Paul Gortmaker | efaf6f1 | 2009-10-02 18:54:20 -0400 | [diff] [blame] | 151 | /* could also use CONFIG_I2C_MULTI_BUS and CONFIG_SYS_SPD_BUS_NUM... */ |
Paul Gortmaker | 91e2576 | 2007-01-16 11:38:14 -0500 | [diff] [blame] | 152 | |
| 153 | /* TSEC */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 154 | #define CONFIG_SYS_TSEC1_OFFSET 0x24000 |
Joe Hershberger | 60e1dc1 | 2011-10-11 23:57:25 -0500 | [diff] [blame] | 155 | #define CONFIG_SYS_TSEC1 (CONFIG_SYS_IMMR+CONFIG_SYS_TSEC1_OFFSET) |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 156 | #define CONFIG_SYS_TSEC2_OFFSET 0x25000 |
Joe Hershberger | 60e1dc1 | 2011-10-11 23:57:25 -0500 | [diff] [blame] | 157 | #define CONFIG_SYS_TSEC2 (CONFIG_SYS_IMMR+CONFIG_SYS_TSEC2_OFFSET) |
Paul Gortmaker | 91e2576 | 2007-01-16 11:38:14 -0500 | [diff] [blame] | 158 | |
| 159 | /* |
| 160 | * General PCI |
| 161 | * Addresses are mapped 1-1. |
| 162 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 163 | #define CONFIG_SYS_PCI1_MEM_BASE 0x80000000 |
| 164 | #define CONFIG_SYS_PCI1_MEM_PHYS CONFIG_SYS_PCI1_MEM_BASE |
| 165 | #define CONFIG_SYS_PCI1_MEM_SIZE 0x10000000 /* 256M */ |
| 166 | #define CONFIG_SYS_PCI1_MMIO_BASE 0x90000000 |
| 167 | #define CONFIG_SYS_PCI1_MMIO_PHYS CONFIG_SYS_PCI1_MMIO_BASE |
| 168 | #define CONFIG_SYS_PCI1_MMIO_SIZE 0x10000000 /* 256M */ |
Joe Hershberger | 60e1dc1 | 2011-10-11 23:57:25 -0500 | [diff] [blame] | 169 | #define CONFIG_SYS_PCI1_IO_BASE 0x00000000 |
| 170 | #define CONFIG_SYS_PCI1_IO_PHYS 0xE2000000 |
| 171 | #define CONFIG_SYS_PCI1_IO_SIZE 0x00100000 /* 1M */ |
Paul Gortmaker | 91e2576 | 2007-01-16 11:38:14 -0500 | [diff] [blame] | 172 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 173 | #define CONFIG_SYS_PCI2_MEM_BASE 0xA0000000 |
| 174 | #define CONFIG_SYS_PCI2_MEM_PHYS CONFIG_SYS_PCI2_MEM_BASE |
| 175 | #define CONFIG_SYS_PCI2_MEM_SIZE 0x10000000 /* 256M */ |
| 176 | #define CONFIG_SYS_PCI2_MMIO_BASE 0xB0000000 |
| 177 | #define CONFIG_SYS_PCI2_MMIO_PHYS CONFIG_SYS_PCI2_MMIO_BASE |
| 178 | #define CONFIG_SYS_PCI2_MMIO_SIZE 0x10000000 /* 256M */ |
Joe Hershberger | 60e1dc1 | 2011-10-11 23:57:25 -0500 | [diff] [blame] | 179 | #define CONFIG_SYS_PCI2_IO_BASE 0x00000000 |
| 180 | #define CONFIG_SYS_PCI2_IO_PHYS 0xE2100000 |
| 181 | #define CONFIG_SYS_PCI2_IO_SIZE 0x00100000 /* 1M */ |
Paul Gortmaker | 91e2576 | 2007-01-16 11:38:14 -0500 | [diff] [blame] | 182 | |
| 183 | #if defined(CONFIG_PCI) |
| 184 | |
Paul Gortmaker | 91e2576 | 2007-01-16 11:38:14 -0500 | [diff] [blame] | 185 | #undef CONFIG_EEPRO100 |
| 186 | #undef CONFIG_TULIP |
| 187 | |
| 188 | #if !defined(CONFIG_PCI_PNP) |
| 189 | #define PCI_ENET0_IOADDR 0xFIXME |
| 190 | #define PCI_ENET0_MEMADDR 0xFIXME |
| 191 | #define PCI_IDSEL_NUMBER 0xFIXME |
| 192 | #endif |
| 193 | |
| 194 | #undef CONFIG_PCI_SCAN_SHOW /* show pci devices on startup */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 195 | #define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x1057 /* Motorola */ |
Paul Gortmaker | 91e2576 | 2007-01-16 11:38:14 -0500 | [diff] [blame] | 196 | |
| 197 | #endif /* CONFIG_PCI */ |
| 198 | |
| 199 | /* |
| 200 | * TSEC configuration |
| 201 | */ |
Paul Gortmaker | 91e2576 | 2007-01-16 11:38:14 -0500 | [diff] [blame] | 202 | |
| 203 | #if defined(CONFIG_TSEC_ENET) |
Paul Gortmaker | 91e2576 | 2007-01-16 11:38:14 -0500 | [diff] [blame] | 204 | |
Kim Phillips | 255a3577 | 2007-05-16 16:52:19 -0500 | [diff] [blame] | 205 | #define CONFIG_TSEC1 1 |
| 206 | #define CONFIG_TSEC1_NAME "TSEC0" |
| 207 | #define CONFIG_TSEC2 1 |
| 208 | #define CONFIG_TSEC2_NAME "TSEC1" |
Paul Gortmaker | 91e2576 | 2007-01-16 11:38:14 -0500 | [diff] [blame] | 209 | #define CONFIG_PHY_BCM5421S 1 |
| 210 | #define TSEC1_PHY_ADDR 0x19 |
| 211 | #define TSEC2_PHY_ADDR 0x1a |
| 212 | #define TSEC1_PHYIDX 0 |
| 213 | #define TSEC2_PHYIDX 0 |
Andy Fleming | 3a79013 | 2007-08-15 20:03:25 -0500 | [diff] [blame] | 214 | #define TSEC1_FLAGS TSEC_GIGABIT |
| 215 | #define TSEC2_FLAGS TSEC_GIGABIT |
Paul Gortmaker | 91e2576 | 2007-01-16 11:38:14 -0500 | [diff] [blame] | 216 | |
| 217 | /* Options are: TSEC[0-1] */ |
| 218 | #define CONFIG_ETHPRIME "TSEC0" |
| 219 | |
| 220 | #endif /* CONFIG_TSEC_ENET */ |
| 221 | |
| 222 | /* |
| 223 | * Environment |
| 224 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 225 | #ifndef CONFIG_SYS_RAMBOOT |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 226 | #define CONFIG_ENV_ADDR (CONFIG_SYS_MONITOR_BASE + 0x40000) |
Jean-Christophe PLAGNIOL-VILLARD | 0e8d158 | 2008-09-10 22:48:06 +0200 | [diff] [blame] | 227 | #define CONFIG_ENV_SECT_SIZE 0x20000 /* 128K(one sector) for env */ |
| 228 | #define CONFIG_ENV_SIZE 0x2000 |
Paul Gortmaker | 91e2576 | 2007-01-16 11:38:14 -0500 | [diff] [blame] | 229 | |
| 230 | /* Address and size of Redundant Environment Sector */ |
Jean-Christophe PLAGNIOL-VILLARD | 0e8d158 | 2008-09-10 22:48:06 +0200 | [diff] [blame] | 231 | #define CONFIG_ENV_ADDR_REDUND (CONFIG_ENV_ADDR + CONFIG_ENV_SECT_SIZE) |
| 232 | #define CONFIG_ENV_SIZE_REDUND (CONFIG_ENV_SIZE) |
Paul Gortmaker | 91e2576 | 2007-01-16 11:38:14 -0500 | [diff] [blame] | 233 | |
| 234 | #else |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 235 | #define CONFIG_ENV_ADDR (CONFIG_SYS_MONITOR_BASE - 0x1000) |
Jean-Christophe PLAGNIOL-VILLARD | 0e8d158 | 2008-09-10 22:48:06 +0200 | [diff] [blame] | 236 | #define CONFIG_ENV_SIZE 0x2000 |
Paul Gortmaker | 91e2576 | 2007-01-16 11:38:14 -0500 | [diff] [blame] | 237 | #endif |
| 238 | |
| 239 | #define CONFIG_LOADS_ECHO 1 /* echo on for serial download */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 240 | #define CONFIG_SYS_LOADS_BAUD_CHANGE 1 /* allow baudrate change */ |
Paul Gortmaker | 91e2576 | 2007-01-16 11:38:14 -0500 | [diff] [blame] | 241 | |
Jon Loeliger | 866e308 | 2007-07-04 22:30:58 -0500 | [diff] [blame] | 242 | /* |
Jon Loeliger | 079a136 | 2007-07-10 10:12:10 -0500 | [diff] [blame] | 243 | * BOOTP options |
| 244 | */ |
| 245 | #define CONFIG_BOOTP_BOOTFILESIZE |
Jon Loeliger | 079a136 | 2007-07-10 10:12:10 -0500 | [diff] [blame] | 246 | |
Jon Loeliger | 079a136 | 2007-07-10 10:12:10 -0500 | [diff] [blame] | 247 | /* |
Jon Loeliger | 866e308 | 2007-07-04 22:30:58 -0500 | [diff] [blame] | 248 | * Command line configuration. |
| 249 | */ |
Jon Loeliger | 866e308 | 2007-07-04 22:30:58 -0500 | [diff] [blame] | 250 | |
Paul Gortmaker | 91e2576 | 2007-01-16 11:38:14 -0500 | [diff] [blame] | 251 | #undef CONFIG_WATCHDOG /* watchdog disabled */ |
| 252 | |
| 253 | /* |
| 254 | * Miscellaneous configurable options |
| 255 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 256 | #define CONFIG_SYS_LOAD_ADDR 0x2000000 /* default load address */ |
Paul Gortmaker | 91e2576 | 2007-01-16 11:38:14 -0500 | [diff] [blame] | 257 | |
Paul Gortmaker | 91e2576 | 2007-01-16 11:38:14 -0500 | [diff] [blame] | 258 | /* |
| 259 | * For booting Linux, the board info and command line data |
Ira W. Snyder | 9f530d5 | 2010-09-10 15:42:32 -0700 | [diff] [blame] | 260 | * have to be in the first 256 MB of memory, since this is |
Paul Gortmaker | 91e2576 | 2007-01-16 11:38:14 -0500 | [diff] [blame] | 261 | * the maximum mapped by the Linux kernel during initialization. |
| 262 | */ |
Joe Hershberger | 60e1dc1 | 2011-10-11 23:57:25 -0500 | [diff] [blame] | 263 | /* Initial Memory map for Linux*/ |
| 264 | #define CONFIG_SYS_BOOTMAPSZ (256 << 20) |
Paul Gortmaker | 91e2576 | 2007-01-16 11:38:14 -0500 | [diff] [blame] | 265 | |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 266 | #define CONFIG_SYS_RCWH_PCIHOST 0x80000000 /* PCIHOST */ |
Paul Gortmaker | 91e2576 | 2007-01-16 11:38:14 -0500 | [diff] [blame] | 267 | |
Paul Gortmaker | 91e2576 | 2007-01-16 11:38:14 -0500 | [diff] [blame] | 268 | /* System IO Config */ |
Kim Phillips | 3c9b1ee | 2009-06-05 14:11:33 -0500 | [diff] [blame] | 269 | #define CONFIG_SYS_SICRH 0 |
Jean-Christophe PLAGNIOL-VILLARD | 6d0f6bc | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 270 | #define CONFIG_SYS_SICRL SICRL_LDP_A |
Paul Gortmaker | 91e2576 | 2007-01-16 11:38:14 -0500 | [diff] [blame] | 271 | |
Paul Gortmaker | 91e2576 | 2007-01-16 11:38:14 -0500 | [diff] [blame] | 272 | #ifdef CONFIG_PCI |
Gabor Juhos | 842033e | 2013-05-30 07:06:12 +0000 | [diff] [blame] | 273 | #define CONFIG_PCI_INDIRECT_BRIDGE |
Paul Gortmaker | 91e2576 | 2007-01-16 11:38:14 -0500 | [diff] [blame] | 274 | #endif |
| 275 | |
Jon Loeliger | 866e308 | 2007-07-04 22:30:58 -0500 | [diff] [blame] | 276 | #if defined(CONFIG_CMD_KGDB) |
Paul Gortmaker | 91e2576 | 2007-01-16 11:38:14 -0500 | [diff] [blame] | 277 | #define CONFIG_KGDB_BAUDRATE 230400 /* speed of kgdb serial port */ |
Paul Gortmaker | 91e2576 | 2007-01-16 11:38:14 -0500 | [diff] [blame] | 278 | #endif |
| 279 | |
| 280 | /* |
| 281 | * Environment Configuration |
| 282 | */ |
| 283 | #define CONFIG_ENV_OVERWRITE |
| 284 | |
| 285 | #if defined(CONFIG_TSEC_ENET) |
Andy Fleming | 10327dc | 2007-08-16 16:35:02 -0500 | [diff] [blame] | 286 | #define CONFIG_HAS_ETH0 |
Paul Gortmaker | 91e2576 | 2007-01-16 11:38:14 -0500 | [diff] [blame] | 287 | #define CONFIG_HAS_ETH1 |
Paul Gortmaker | 91e2576 | 2007-01-16 11:38:14 -0500 | [diff] [blame] | 288 | #endif |
| 289 | |
Mario Six | 5bc0543 | 2018-03-28 14:38:20 +0200 | [diff] [blame] | 290 | #define CONFIG_HOSTNAME "SBC8349" |
Joe Hershberger | 8b3637c | 2011-10-13 13:03:47 +0000 | [diff] [blame] | 291 | #define CONFIG_ROOTPATH "/tftpboot/rootfs" |
Joe Hershberger | b3f44c2 | 2011-10-13 13:03:48 +0000 | [diff] [blame] | 292 | #define CONFIG_BOOTFILE "uImage" |
Paul Gortmaker | 91e2576 | 2007-01-16 11:38:14 -0500 | [diff] [blame] | 293 | |
Joe Hershberger | 60e1dc1 | 2011-10-11 23:57:25 -0500 | [diff] [blame] | 294 | /* default location for tftp and bootm */ |
| 295 | #define CONFIG_LOADADDR 800000 |
Paul Gortmaker | 91e2576 | 2007-01-16 11:38:14 -0500 | [diff] [blame] | 296 | |
Paul Gortmaker | 91e2576 | 2007-01-16 11:38:14 -0500 | [diff] [blame] | 297 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
| 298 | "netdev=eth0\0" \ |
Detlev Zundel | a99715b | 2008-04-18 14:50:01 +0200 | [diff] [blame] | 299 | "hostname=sbc8349\0" \ |
Paul Gortmaker | 91e2576 | 2007-01-16 11:38:14 -0500 | [diff] [blame] | 300 | "nfsargs=setenv bootargs root=/dev/nfs rw " \ |
| 301 | "nfsroot=${serverip}:${rootpath}\0" \ |
| 302 | "ramargs=setenv bootargs root=/dev/ram rw\0" \ |
| 303 | "addip=setenv bootargs ${bootargs} " \ |
| 304 | "ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}" \ |
| 305 | ":${hostname}:${netdev}:off panic=1\0" \ |
| 306 | "addtty=setenv bootargs ${bootargs} console=ttyS0,${baudrate}\0"\ |
| 307 | "flash_nfs=run nfsargs addip addtty;" \ |
| 308 | "bootm ${kernel_addr}\0" \ |
| 309 | "flash_self=run ramargs addip addtty;" \ |
| 310 | "bootm ${kernel_addr} ${ramdisk_addr}\0" \ |
| 311 | "net_nfs=tftp 200000 ${bootfile};run nfsargs addip addtty;" \ |
| 312 | "bootm\0" \ |
| 313 | "load=tftp 100000 /tftpboot/sbc8349/u-boot.bin\0" \ |
Paul Gortmaker | fe613cd | 2009-07-23 17:10:55 -0400 | [diff] [blame] | 314 | "update=protect off ff800000 ff83ffff; " \ |
Joe Hershberger | 60e1dc1 | 2011-10-11 23:57:25 -0500 | [diff] [blame] | 315 | "era ff800000 ff83ffff; cp.b 100000 ff800000 ${filesize}\0" \ |
Detlev Zundel | d8ab58b | 2008-03-06 16:45:53 +0100 | [diff] [blame] | 316 | "upd=run load update\0" \ |
Kim Phillips | 79f516b | 2009-08-21 16:34:38 -0500 | [diff] [blame] | 317 | "fdtaddr=780000\0" \ |
Detlev Zundel | a99715b | 2008-04-18 14:50:01 +0200 | [diff] [blame] | 318 | "fdtfile=sbc8349.dtb\0" \ |
Paul Gortmaker | 91e2576 | 2007-01-16 11:38:14 -0500 | [diff] [blame] | 319 | "" |
| 320 | |
Joe Hershberger | 60e1dc1 | 2011-10-11 23:57:25 -0500 | [diff] [blame] | 321 | #define CONFIG_NFSBOOTCOMMAND \ |
| 322 | "setenv bootargs root=/dev/nfs rw " \ |
| 323 | "nfsroot=$serverip:$rootpath " \ |
| 324 | "ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname:" \ |
| 325 | "$netdev:off " \ |
| 326 | "console=$consoledev,$baudrate $othbootargs;" \ |
| 327 | "tftp $loadaddr $bootfile;" \ |
| 328 | "tftp $fdtaddr $fdtfile;" \ |
| 329 | "bootm $loadaddr - $fdtaddr" |
Paul Gortmaker | 91e2576 | 2007-01-16 11:38:14 -0500 | [diff] [blame] | 330 | |
| 331 | #define CONFIG_RAMBOOTCOMMAND \ |
Joe Hershberger | 60e1dc1 | 2011-10-11 23:57:25 -0500 | [diff] [blame] | 332 | "setenv bootargs root=/dev/ram rw " \ |
| 333 | "console=$consoledev,$baudrate $othbootargs;" \ |
| 334 | "tftp $ramdiskaddr $ramdiskfile;" \ |
| 335 | "tftp $loadaddr $bootfile;" \ |
| 336 | "tftp $fdtaddr $fdtfile;" \ |
| 337 | "bootm $loadaddr $ramdiskaddr $fdtaddr" |
Paul Gortmaker | 91e2576 | 2007-01-16 11:38:14 -0500 | [diff] [blame] | 338 | |
| 339 | #define CONFIG_BOOTCOMMAND "run flash_self" |
| 340 | |
| 341 | #endif /* __CONFIG_H */ |