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