1d9b94f28SJon Loeliger /* 2f2cff6b1SEd Swarthout * Copyright 2004, 2007 Freescale Semiconductor. 3d9b94f28SJon Loeliger * 4d9b94f28SJon Loeliger * See file CREDITS for list of people who contributed to this 5d9b94f28SJon Loeliger * project. 6d9b94f28SJon Loeliger * 7d9b94f28SJon Loeliger * This program is free software; you can redistribute it and/or 8d9b94f28SJon Loeliger * modify it under the terms of the GNU General Public License as 9d9b94f28SJon Loeliger * published by the Free Software Foundation; either version 2 of 10d9b94f28SJon Loeliger * the License, or (at your option) any later version. 11d9b94f28SJon Loeliger * 12d9b94f28SJon Loeliger * This program is distributed in the hope that it will be useful, 13d9b94f28SJon Loeliger * but WITHOUT ANY WARRANTY; without even the implied warranty of 14d9b94f28SJon Loeliger * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15d9b94f28SJon Loeliger * GNU General Public License for more details. 16d9b94f28SJon Loeliger * 17d9b94f28SJon Loeliger * You should have received a copy of the GNU General Public License 18d9b94f28SJon Loeliger * along with this program; if not, write to the Free Software 19d9b94f28SJon Loeliger * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 20d9b94f28SJon Loeliger * MA 02111-1307 USA 21d9b94f28SJon Loeliger */ 22d9b94f28SJon Loeliger 23d9b94f28SJon Loeliger /* 24d9b94f28SJon Loeliger * mpc8548cds board configuration file 25d9b94f28SJon Loeliger * 26d9b94f28SJon Loeliger * Please refer to doc/README.mpc85xxcds for more info. 27d9b94f28SJon Loeliger * 28d9b94f28SJon Loeliger */ 29d9b94f28SJon Loeliger #ifndef __CONFIG_H 30d9b94f28SJon Loeliger #define __CONFIG_H 31d9b94f28SJon Loeliger 32d9b94f28SJon Loeliger /* High Level Configuration Options */ 33d9b94f28SJon Loeliger #define CONFIG_BOOKE 1 /* BOOKE */ 34d9b94f28SJon Loeliger #define CONFIG_E500 1 /* BOOKE e500 family */ 35d9b94f28SJon Loeliger #define CONFIG_MPC85xx 1 /* MPC8540/60/55/41/48 */ 36d9b94f28SJon Loeliger #define CONFIG_MPC8548 1 /* MPC8548 specific */ 37d9b94f28SJon Loeliger #define CONFIG_MPC8548CDS 1 /* MPC8548CDS board specific */ 38d9b94f28SJon Loeliger 39f2cff6b1SEd Swarthout #define CONFIG_PCI /* enable any pci type devices */ 40f2cff6b1SEd Swarthout #define CONFIG_PCI1 /* PCI controller 1 */ 41f2cff6b1SEd Swarthout #define CONFIG_PCIE1 /* PCIE controler 1 (slot 1) */ 42f2cff6b1SEd Swarthout #undef CONFIG_RIO 43f2cff6b1SEd Swarthout #undef CONFIG_PCI2 44f2cff6b1SEd Swarthout #define CONFIG_FSL_PCI_INIT 1 /* Use common FSL init code */ 45f2cff6b1SEd Swarthout 46d9b94f28SJon Loeliger #define CONFIG_TSEC_ENET /* tsec ethernet support */ 47d9b94f28SJon Loeliger #define CONFIG_ENV_OVERWRITE 48d9b94f28SJon Loeliger #define CONFIG_SPD_EEPROM /* Use SPD EEPROM for DDR setup*/ 49d9b94f28SJon Loeliger #define CONFIG_DDR_DLL /* possible DLL fix needed */ 5039b18c4fSebony.zhu@freescale.com #undef CONFIG_DDR_2T_TIMING /* Sets the 2T timing bit */ 51d9b94f28SJon Loeliger 52d9b94f28SJon Loeliger #define CONFIG_DDR_ECC /* only for ECC DDR module */ 53d9b94f28SJon Loeliger #define CONFIG_ECC_INIT_VIA_DDRCONTROLLER /* DDR controller or DMA? */ 54d9b94f28SJon Loeliger #define CONFIG_MEM_INIT_VALUE 0xDeadBeef 55f2cff6b1SEd Swarthout #define CONFIG_INTERRUPTS /* enable pci, srio, ddr interrupts */ 56d9b94f28SJon Loeliger 57d9b94f28SJon Loeliger 58d9b94f28SJon Loeliger /* 59d9b94f28SJon Loeliger * When initializing flash, if we cannot find the manufacturer ID, 60d9b94f28SJon Loeliger * assume this is the AMD flash associated with the CDS board. 61d9b94f28SJon Loeliger * This allows booting from a promjet. 62d9b94f28SJon Loeliger */ 63d9b94f28SJon Loeliger #define CONFIG_ASSUME_AMD_FLASH 64d9b94f28SJon Loeliger 65d9b94f28SJon Loeliger #define MPC85xx_DDR_SDRAM_CLK_CNTL /* 85xx has clock control reg */ 66d9b94f28SJon Loeliger 67d9b94f28SJon Loeliger #ifndef __ASSEMBLY__ 68d9b94f28SJon Loeliger extern unsigned long get_clock_freq(void); 69d9b94f28SJon Loeliger #endif 70d9b94f28SJon Loeliger #define CONFIG_SYS_CLK_FREQ get_clock_freq() /* sysclk for MPC85xx */ 71d9b94f28SJon Loeliger 72d9b94f28SJon Loeliger /* 73d9b94f28SJon Loeliger * These can be toggled for performance analysis, otherwise use default. 74d9b94f28SJon Loeliger */ 75d9b94f28SJon Loeliger #define CONFIG_L2_CACHE /* toggle L2 cache */ 76d9b94f28SJon Loeliger #define CONFIG_BTB /* toggle branch predition */ 77d9b94f28SJon Loeliger #define CONFIG_ADDR_STREAMING /* toggle addr streaming */ 78f2cff6b1SEd Swarthout #define CONFIG_CLEAR_LAW0 /* Clear LAW0 in cpu_init_r */ 79d9b94f28SJon Loeliger 80d9b94f28SJon Loeliger /* 81d9b94f28SJon Loeliger * Only possible on E500 Version 2 or newer cores. 82d9b94f28SJon Loeliger */ 83d9b94f28SJon Loeliger #define CONFIG_ENABLE_36BIT_PHYS 1 84d9b94f28SJon Loeliger 85d9b94f28SJon Loeliger #define CONFIG_BOARD_EARLY_INIT_F 1 /* Call board_pre_init */ 86d9b94f28SJon Loeliger 87d9b94f28SJon Loeliger #undef CFG_DRAM_TEST /* memory test, takes time */ 88d9b94f28SJon Loeliger #define CFG_MEMTEST_START 0x00200000 /* memtest works on */ 89d9b94f28SJon Loeliger #define CFG_MEMTEST_END 0x00400000 90d9b94f28SJon Loeliger 91d9b94f28SJon Loeliger /* 92d9b94f28SJon Loeliger * Base addresses -- Note these are effective addresses where the 93d9b94f28SJon Loeliger * actual resources get mapped (not physical addresses) 94d9b94f28SJon Loeliger */ 95d9b94f28SJon Loeliger #define CFG_CCSRBAR_DEFAULT 0xff700000 /* CCSRBAR Default */ 96d9b94f28SJon Loeliger #define CFG_CCSRBAR 0xe0000000 /* relocated CCSRBAR */ 97d9b94f28SJon Loeliger #define CFG_IMMR CFG_CCSRBAR /* PQII uses CFG_IMMR */ 98d9b94f28SJon Loeliger 99f2cff6b1SEd Swarthout #define CFG_PCI1_ADDR (CFG_CCSRBAR+0x8000) 100f2cff6b1SEd Swarthout #define CFG_PCI2_ADDR (CFG_CCSRBAR+0x9000) 101f2cff6b1SEd Swarthout #define CFG_PCIE1_ADDR (CFG_CCSRBAR+0xa000) 102f2cff6b1SEd Swarthout 103d9b94f28SJon Loeliger /* 104d9b94f28SJon Loeliger * DDR Setup 105d9b94f28SJon Loeliger */ 106d9b94f28SJon Loeliger #define CFG_DDR_SDRAM_BASE 0x00000000 /* DDR is system memory*/ 107d9b94f28SJon Loeliger #define CFG_SDRAM_BASE CFG_DDR_SDRAM_BASE 108d9b94f28SJon Loeliger 109d9b94f28SJon Loeliger #define SPD_EEPROM_ADDRESS 0x51 /* DDR DIMM */ 110d9b94f28SJon Loeliger 111d9b94f28SJon Loeliger /* 112d9b94f28SJon Loeliger * Make sure required options are set 113d9b94f28SJon Loeliger */ 114d9b94f28SJon Loeliger #ifndef CONFIG_SPD_EEPROM 115d9b94f28SJon Loeliger #error ("CONFIG_SPD_EEPROM is required") 116d9b94f28SJon Loeliger #endif 117d9b94f28SJon Loeliger 118d9b94f28SJon Loeliger #undef CONFIG_CLOCKS_IN_MHZ 119d9b94f28SJon Loeliger 120d9b94f28SJon Loeliger /* 121d9b94f28SJon Loeliger * Local Bus Definitions 122d9b94f28SJon Loeliger */ 123d9b94f28SJon Loeliger 124d9b94f28SJon Loeliger /* 125d9b94f28SJon Loeliger * FLASH on the Local Bus 126d9b94f28SJon Loeliger * Two banks, 8M each, using the CFI driver. 127d9b94f28SJon Loeliger * Boot from BR0/OR0 bank at 0xff00_0000 128d9b94f28SJon Loeliger * Alternate BR1/OR1 bank at 0xff80_0000 129d9b94f28SJon Loeliger * 130d9b94f28SJon Loeliger * BR0, BR1: 131d9b94f28SJon Loeliger * Base address 0 = 0xff00_0000 = BR0[0:16] = 1111 1111 0000 0000 0 132d9b94f28SJon Loeliger * Base address 1 = 0xff80_0000 = BR1[0:16] = 1111 1111 1000 0000 0 133d9b94f28SJon Loeliger * Port Size = 16 bits = BRx[19:20] = 10 134d9b94f28SJon Loeliger * Use GPCM = BRx[24:26] = 000 135d9b94f28SJon Loeliger * Valid = BRx[31] = 1 136d9b94f28SJon Loeliger * 137d9b94f28SJon Loeliger * 0 4 8 12 16 20 24 28 138d9b94f28SJon Loeliger * 1111 1111 1000 0000 0001 0000 0000 0001 = ff801001 BR0 139d9b94f28SJon Loeliger * 1111 1111 0000 0000 0001 0000 0000 0001 = ff001001 BR1 140d9b94f28SJon Loeliger * 141d9b94f28SJon Loeliger * OR0, OR1: 142d9b94f28SJon Loeliger * Addr Mask = 8M = ORx[0:16] = 1111 1111 1000 0000 0 143d9b94f28SJon Loeliger * Reserved ORx[17:18] = 11, confusion here? 144d9b94f28SJon Loeliger * CSNT = ORx[20] = 1 145d9b94f28SJon Loeliger * ACS = half cycle delay = ORx[21:22] = 11 146d9b94f28SJon Loeliger * SCY = 6 = ORx[24:27] = 0110 147d9b94f28SJon Loeliger * TRLX = use relaxed timing = ORx[29] = 1 148d9b94f28SJon Loeliger * EAD = use external address latch delay = OR[31] = 1 149d9b94f28SJon Loeliger * 150d9b94f28SJon Loeliger * 0 4 8 12 16 20 24 28 151d9b94f28SJon Loeliger * 1111 1111 1000 0000 0110 1110 0110 0101 = ff806e65 ORx 152d9b94f28SJon Loeliger */ 153d9b94f28SJon Loeliger 154f2cff6b1SEd Swarthout #define CFG_BOOT_BLOCK 0xff000000 /* boot TLB block */ 155f2cff6b1SEd Swarthout #define CFG_FLASH_BASE CFG_BOOT_BLOCK /* start of FLASH 16M */ 156d9b94f28SJon Loeliger 157d9b94f28SJon Loeliger #define CFG_BR0_PRELIM 0xff801001 158d9b94f28SJon Loeliger #define CFG_BR1_PRELIM 0xff001001 159d9b94f28SJon Loeliger 160d9b94f28SJon Loeliger #define CFG_OR0_PRELIM 0xff806e65 161d9b94f28SJon Loeliger #define CFG_OR1_PRELIM 0xff806e65 162d9b94f28SJon Loeliger 163d9b94f28SJon Loeliger #define CFG_FLASH_BANKS_LIST {0xff800000, CFG_FLASH_BASE} 164d9b94f28SJon Loeliger #define CFG_MAX_FLASH_BANKS 2 /* number of banks */ 165d9b94f28SJon Loeliger #define CFG_MAX_FLASH_SECT 128 /* sectors per device */ 166d9b94f28SJon Loeliger #undef CFG_FLASH_CHECKSUM 167d9b94f28SJon Loeliger #define CFG_FLASH_ERASE_TOUT 60000 /* Flash Erase Timeout (ms) */ 168d9b94f28SJon Loeliger #define CFG_FLASH_WRITE_TOUT 500 /* Flash Write Timeout (ms) */ 169d9b94f28SJon Loeliger 170d9b94f28SJon Loeliger #define CFG_MONITOR_BASE TEXT_BASE /* start of monitor */ 171d9b94f28SJon Loeliger 172d9b94f28SJon Loeliger #define CFG_FLASH_CFI_DRIVER 173d9b94f28SJon Loeliger #define CFG_FLASH_CFI 174d9b94f28SJon Loeliger #define CFG_FLASH_EMPTY_INFO 175d9b94f28SJon Loeliger 176d9b94f28SJon Loeliger 177d9b94f28SJon Loeliger /* 178d9b94f28SJon Loeliger * SDRAM on the Local Bus 179d9b94f28SJon Loeliger */ 180f2cff6b1SEd Swarthout #define CFG_LBC_CACHE_BASE 0xf0000000 /* Localbus cacheable */ 181f2cff6b1SEd Swarthout #define CFG_LBC_CACHE_SIZE 64 182f2cff6b1SEd Swarthout #define CFG_LBC_NONCACHE_BASE 0xf8000000 /* Localbus non-cacheable */ 183f2cff6b1SEd Swarthout #define CFG_LBC_NONCACHE_SIZE 64 184f2cff6b1SEd Swarthout 185f2cff6b1SEd Swarthout #define CFG_LBC_SDRAM_BASE CFG_LBC_CACHE_BASE /* Localbus SDRAM */ 186d9b94f28SJon Loeliger #define CFG_LBC_SDRAM_SIZE 64 /* LBC SDRAM is 64MB */ 187d9b94f28SJon Loeliger 188d9b94f28SJon Loeliger /* 189d9b94f28SJon Loeliger * Base Register 2 and Option Register 2 configure SDRAM. 190d9b94f28SJon Loeliger * The SDRAM base address, CFG_LBC_SDRAM_BASE, is 0xf0000000. 191d9b94f28SJon Loeliger * 192d9b94f28SJon Loeliger * For BR2, need: 193d9b94f28SJon Loeliger * Base address of 0xf0000000 = BR[0:16] = 1111 0000 0000 0000 0 194d9b94f28SJon Loeliger * port-size = 32-bits = BR2[19:20] = 11 195d9b94f28SJon Loeliger * no parity checking = BR2[21:22] = 00 196d9b94f28SJon Loeliger * SDRAM for MSEL = BR2[24:26] = 011 197d9b94f28SJon Loeliger * Valid = BR[31] = 1 198d9b94f28SJon Loeliger * 199d9b94f28SJon Loeliger * 0 4 8 12 16 20 24 28 200d9b94f28SJon Loeliger * 1111 0000 0000 0000 0001 1000 0110 0001 = f0001861 201d9b94f28SJon Loeliger * 202d9b94f28SJon Loeliger * FIXME: CFG_LBC_SDRAM_BASE should be masked and OR'ed into 203d9b94f28SJon Loeliger * FIXME: the top 17 bits of BR2. 204d9b94f28SJon Loeliger */ 205d9b94f28SJon Loeliger 206d9b94f28SJon Loeliger #define CFG_BR2_PRELIM 0xf0001861 207d9b94f28SJon Loeliger 208d9b94f28SJon Loeliger /* 209d9b94f28SJon Loeliger * The SDRAM size in MB, CFG_LBC_SDRAM_SIZE, is 64. 210d9b94f28SJon Loeliger * 211d9b94f28SJon Loeliger * For OR2, need: 212d9b94f28SJon Loeliger * 64MB mask for AM, OR2[0:7] = 1111 1100 213d9b94f28SJon Loeliger * XAM, OR2[17:18] = 11 214d9b94f28SJon Loeliger * 9 columns OR2[19-21] = 010 215d9b94f28SJon Loeliger * 13 rows OR2[23-25] = 100 216d9b94f28SJon Loeliger * EAD set for extra time OR[31] = 1 217d9b94f28SJon Loeliger * 218d9b94f28SJon Loeliger * 0 4 8 12 16 20 24 28 219d9b94f28SJon Loeliger * 1111 1100 0000 0000 0110 1001 0000 0001 = fc006901 220d9b94f28SJon Loeliger */ 221d9b94f28SJon Loeliger 222d9b94f28SJon Loeliger #define CFG_OR2_PRELIM 0xfc006901 223d9b94f28SJon Loeliger 224d9b94f28SJon Loeliger #define CFG_LBC_LCRR 0x00030004 /* LB clock ratio reg */ 225d9b94f28SJon Loeliger #define CFG_LBC_LBCR 0x00000000 /* LB config reg */ 226d9b94f28SJon Loeliger #define CFG_LBC_LSRT 0x20000000 /* LB sdram refresh timer */ 227d9b94f28SJon Loeliger #define CFG_LBC_MRTPR 0x00000000 /* LB refresh timer prescal*/ 228d9b94f28SJon Loeliger 229d9b94f28SJon Loeliger /* 230d9b94f28SJon Loeliger * LSDMR masks 231d9b94f28SJon Loeliger */ 232d9b94f28SJon Loeliger #define CFG_LBC_LSDMR_RFEN (1 << (31 - 1)) 233d9b94f28SJon Loeliger #define CFG_LBC_LSDMR_BSMA1516 (3 << (31 - 10)) 234d9b94f28SJon Loeliger #define CFG_LBC_LSDMR_BSMA1617 (4 << (31 - 10)) 235d9b94f28SJon Loeliger #define CFG_LBC_LSDMR_RFCR16 (7 << (31 - 16)) 236d9b94f28SJon Loeliger #define CFG_LBC_LSDMR_PRETOACT7 (7 << (31 - 19)) 237d9b94f28SJon Loeliger #define CFG_LBC_LSDMR_ACTTORW7 (7 << (31 - 22)) 238d9b94f28SJon Loeliger #define CFG_LBC_LSDMR_ACTTORW6 (6 << (31 - 22)) 239d9b94f28SJon Loeliger #define CFG_LBC_LSDMR_BL8 (1 << (31 - 23)) 240d9b94f28SJon Loeliger #define CFG_LBC_LSDMR_WRC4 (0 << (31 - 27)) 241d9b94f28SJon Loeliger #define CFG_LBC_LSDMR_CL3 (3 << (31 - 31)) 242d9b94f28SJon Loeliger 243d9b94f28SJon Loeliger #define CFG_LBC_LSDMR_OP_NORMAL (0 << (31 - 4)) 244d9b94f28SJon Loeliger #define CFG_LBC_LSDMR_OP_ARFRSH (1 << (31 - 4)) 245d9b94f28SJon Loeliger #define CFG_LBC_LSDMR_OP_SRFRSH (2 << (31 - 4)) 246d9b94f28SJon Loeliger #define CFG_LBC_LSDMR_OP_MRW (3 << (31 - 4)) 247d9b94f28SJon Loeliger #define CFG_LBC_LSDMR_OP_PRECH (4 << (31 - 4)) 248d9b94f28SJon Loeliger #define CFG_LBC_LSDMR_OP_PCHALL (5 << (31 - 4)) 249d9b94f28SJon Loeliger #define CFG_LBC_LSDMR_OP_ACTBNK (6 << (31 - 4)) 250d9b94f28SJon Loeliger #define CFG_LBC_LSDMR_OP_RWINV (7 << (31 - 4)) 251d9b94f28SJon Loeliger 252d9b94f28SJon Loeliger /* 253d9b94f28SJon Loeliger * Common settings for all Local Bus SDRAM commands. 254d9b94f28SJon Loeliger * At run time, either BSMA1516 (for CPU 1.1) 255d9b94f28SJon Loeliger * or BSMA1617 (for CPU 1.0) (old) 256d9b94f28SJon Loeliger * is OR'ed in too. 257d9b94f28SJon Loeliger */ 258d9b94f28SJon Loeliger #define CFG_LBC_LSDMR_COMMON ( CFG_LBC_LSDMR_RFCR16 \ 259d9b94f28SJon Loeliger | CFG_LBC_LSDMR_PRETOACT7 \ 260d9b94f28SJon Loeliger | CFG_LBC_LSDMR_ACTTORW7 \ 261d9b94f28SJon Loeliger | CFG_LBC_LSDMR_BL8 \ 262d9b94f28SJon Loeliger | CFG_LBC_LSDMR_WRC4 \ 263d9b94f28SJon Loeliger | CFG_LBC_LSDMR_CL3 \ 264d9b94f28SJon Loeliger | CFG_LBC_LSDMR_RFEN \ 265d9b94f28SJon Loeliger ) 266d9b94f28SJon Loeliger 267d9b94f28SJon Loeliger /* 268d9b94f28SJon Loeliger * The CADMUS registers are connected to CS3 on CDS. 269d9b94f28SJon Loeliger * The new memory map places CADMUS at 0xf8000000. 270d9b94f28SJon Loeliger * 271d9b94f28SJon Loeliger * For BR3, need: 272d9b94f28SJon Loeliger * Base address of 0xf8000000 = BR[0:16] = 1111 1000 0000 0000 0 273d9b94f28SJon Loeliger * port-size = 8-bits = BR[19:20] = 01 274d9b94f28SJon Loeliger * no parity checking = BR[21:22] = 00 275d9b94f28SJon Loeliger * GPMC for MSEL = BR[24:26] = 000 276d9b94f28SJon Loeliger * Valid = BR[31] = 1 277d9b94f28SJon Loeliger * 278d9b94f28SJon Loeliger * 0 4 8 12 16 20 24 28 279d9b94f28SJon Loeliger * 1111 1000 0000 0000 0000 1000 0000 0001 = f8000801 280d9b94f28SJon Loeliger * 281d9b94f28SJon Loeliger * For OR3, need: 282d9b94f28SJon Loeliger * 1 MB mask for AM, OR[0:16] = 1111 1111 1111 0000 0 283d9b94f28SJon Loeliger * disable buffer ctrl OR[19] = 0 284d9b94f28SJon Loeliger * CSNT OR[20] = 1 285d9b94f28SJon Loeliger * ACS OR[21:22] = 11 286d9b94f28SJon Loeliger * XACS OR[23] = 1 287d9b94f28SJon Loeliger * SCY 15 wait states OR[24:27] = 1111 max is suboptimal but safe 288d9b94f28SJon Loeliger * SETA OR[28] = 0 289d9b94f28SJon Loeliger * TRLX OR[29] = 1 290d9b94f28SJon Loeliger * EHTR OR[30] = 1 291d9b94f28SJon Loeliger * EAD extra time OR[31] = 1 292d9b94f28SJon Loeliger * 293d9b94f28SJon Loeliger * 0 4 8 12 16 20 24 28 294d9b94f28SJon Loeliger * 1111 1111 1111 0000 0000 1111 1111 0111 = fff00ff7 295d9b94f28SJon Loeliger */ 296d9b94f28SJon Loeliger 297d9b94f28SJon Loeliger #define CADMUS_BASE_ADDR 0xf8000000 298d9b94f28SJon Loeliger #define CFG_BR3_PRELIM 0xf8000801 299d9b94f28SJon Loeliger #define CFG_OR3_PRELIM 0xfff00ff7 300d9b94f28SJon Loeliger 301d9b94f28SJon Loeliger #define CONFIG_L1_INIT_RAM 302d9b94f28SJon Loeliger #define CFG_INIT_RAM_LOCK 1 303d9b94f28SJon Loeliger #define CFG_INIT_RAM_ADDR 0xe4010000 /* Initial RAM address */ 304d9b94f28SJon Loeliger #define CFG_INIT_RAM_END 0x4000 /* End of used area in RAM */ 305d9b94f28SJon Loeliger 306f2cff6b1SEd Swarthout #define CFG_INIT_L2_ADDR 0xf8f80000 /* relocate boot L2SRAM */ 307f2cff6b1SEd Swarthout 308d9b94f28SJon Loeliger #define CFG_GBL_DATA_SIZE 128 /* num bytes initial data */ 309d9b94f28SJon Loeliger #define CFG_GBL_DATA_OFFSET (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE) 310d9b94f28SJon Loeliger #define CFG_INIT_SP_OFFSET CFG_GBL_DATA_OFFSET 311d9b94f28SJon Loeliger 312d9b94f28SJon Loeliger #define CFG_MONITOR_LEN (256 * 1024) /* Reserve 256 kB for Mon */ 313d9b94f28SJon Loeliger #define CFG_MALLOC_LEN (128 * 1024) /* Reserved for malloc */ 314d9b94f28SJon Loeliger 315d9b94f28SJon Loeliger /* Serial Port */ 316d9b94f28SJon Loeliger #define CONFIG_CONS_INDEX 2 317d9b94f28SJon Loeliger #undef CONFIG_SERIAL_SOFTWARE_FIFO 318d9b94f28SJon Loeliger #define CFG_NS16550 319d9b94f28SJon Loeliger #define CFG_NS16550_SERIAL 320d9b94f28SJon Loeliger #define CFG_NS16550_REG_SIZE 1 321d9b94f28SJon Loeliger #define CFG_NS16550_CLK get_bus_freq(0) 322d9b94f28SJon Loeliger 323d9b94f28SJon Loeliger #define CFG_BAUDRATE_TABLE \ 324d9b94f28SJon Loeliger {300, 600, 1200, 2400, 4800, 9600, 19200, 38400,115200} 325d9b94f28SJon Loeliger 326d9b94f28SJon Loeliger #define CFG_NS16550_COM1 (CFG_CCSRBAR+0x4500) 327d9b94f28SJon Loeliger #define CFG_NS16550_COM2 (CFG_CCSRBAR+0x4600) 328d9b94f28SJon Loeliger 329d9b94f28SJon Loeliger /* Use the HUSH parser */ 330d9b94f28SJon Loeliger #define CFG_HUSH_PARSER 331d9b94f28SJon Loeliger #ifdef CFG_HUSH_PARSER 332d9b94f28SJon Loeliger #define CFG_PROMPT_HUSH_PS2 "> " 333d9b94f28SJon Loeliger #endif 334d9b94f28SJon Loeliger 33540d5fa35SMatthew McClintock /* pass open firmware flat tree */ 33640d5fa35SMatthew McClintock #define CONFIG_OF_FLAT_TREE 1 33740d5fa35SMatthew McClintock #define CONFIG_OF_BOARD_SETUP 1 33840d5fa35SMatthew McClintock 33940d5fa35SMatthew McClintock #define OF_CPU "PowerPC,8548@0" 34040d5fa35SMatthew McClintock #define OF_SOC "soc8548@e0000000" 34140d5fa35SMatthew McClintock #define OF_TBCLK (bd->bi_busfreq / 8) 342cbfc7ce7SMatthew McClintock #define OF_STDOUT_PATH "/soc8548@e0000000/serial@4600" 34340d5fa35SMatthew McClintock 34420476726SJon Loeliger /* 34520476726SJon Loeliger * I2C 34620476726SJon Loeliger */ 34720476726SJon Loeliger #define CONFIG_FSL_I2C /* Use FSL common I2C driver */ 348d9b94f28SJon Loeliger #define CONFIG_HARD_I2C /* I2C with hardware support*/ 349d9b94f28SJon Loeliger #undef CONFIG_SOFT_I2C /* I2C bit-banged */ 350d9b94f28SJon Loeliger #define CFG_I2C_SPEED 400000 /* I2C speed and slave address */ 351d9b94f28SJon Loeliger #define CFG_I2C_EEPROM_ADDR 0x57 352d9b94f28SJon Loeliger #define CFG_I2C_SLAVE 0x7F 353d9b94f28SJon Loeliger #define CFG_I2C_NOPROBES {0x69} /* Don't probe these addrs */ 35420476726SJon Loeliger #define CFG_I2C_OFFSET 0x3000 355d9b94f28SJon Loeliger 356d9b94f28SJon Loeliger /* 357d9b94f28SJon Loeliger * General PCI 358362dd830SSergei Shtylyov * Memory space is mapped 1-1, but I/O space must start from 0. 359d9b94f28SJon Loeliger */ 360f2cff6b1SEd Swarthout #define CFG_PCI_PHYS 0x80000000 /* 1G PCI TLB */ 361f2cff6b1SEd Swarthout 362d9b94f28SJon Loeliger #define CFG_PCI1_MEM_BASE 0x80000000 363d9b94f28SJon Loeliger #define CFG_PCI1_MEM_PHYS CFG_PCI1_MEM_BASE 364f2cff6b1SEd Swarthout #define CFG_PCI1_MEM_SIZE 0x20000000 /* 512M */ 365cbfc7ce7SMatthew McClintock #define CFG_PCI1_IO_BASE 0x00000000 366cbfc7ce7SMatthew McClintock #define CFG_PCI1_IO_PHYS 0xe2000000 367f2cff6b1SEd Swarthout #define CFG_PCI1_IO_SIZE 0x00100000 /* 1M */ 368d9b94f28SJon Loeliger 369f2cff6b1SEd Swarthout #ifdef CONFIG_PCI2 370f2cff6b1SEd Swarthout #define CFG_PCI2_MEM_BASE 0xa0000000 371d9b94f28SJon Loeliger #define CFG_PCI2_MEM_PHYS CFG_PCI2_MEM_BASE 372f2cff6b1SEd Swarthout #define CFG_PCI2_MEM_SIZE 0x20000000 /* 512M */ 373ffa621a0SAndy Fleming #define CFG_PCI2_IO_BASE 0x00000000 37441fb7e0fSZang Roy-r61911 #define CFG_PCI2_IO_PHYS 0xe2800000 375f2cff6b1SEd Swarthout #define CFG_PCI2_IO_SIZE 0x00100000 /* 1M */ 376f2cff6b1SEd Swarthout #endif 377d9b94f28SJon Loeliger 378f2cff6b1SEd Swarthout #ifdef CONFIG_PCIE1 379f2cff6b1SEd Swarthout #define CFG_PCIE1_MEM_BASE 0xa0000000 380f2cff6b1SEd Swarthout #define CFG_PCIE1_MEM_PHYS CFG_PCIE1_MEM_BASE 381f2cff6b1SEd Swarthout #define CFG_PCIE1_MEM_SIZE 0x20000000 /* 512M */ 382f2cff6b1SEd Swarthout #define CFG_PCIE1_IO_BASE 0x00000000 383f2cff6b1SEd Swarthout #define CFG_PCIE1_IO_PHYS 0xe3000000 384f2cff6b1SEd Swarthout #define CFG_PCIE1_IO_SIZE 0x00100000 /* 1M */ 385f2cff6b1SEd Swarthout #endif 38641fb7e0fSZang Roy-r61911 387f2cff6b1SEd Swarthout #ifdef CONFIG_RIO 38841fb7e0fSZang Roy-r61911 /* 38941fb7e0fSZang Roy-r61911 * RapidIO MMU 39041fb7e0fSZang Roy-r61911 */ 39141fb7e0fSZang Roy-r61911 #define CFG_RIO_MEM_BASE 0xC0000000 39241fb7e0fSZang Roy-r61911 #define CFG_RIO_MEM_SIZE 0x20000000 /* 512M */ 393f2cff6b1SEd Swarthout #endif 394d9b94f28SJon Loeliger 3957f3f2bd2SRandy Vinson #ifdef CONFIG_LEGACY 3967f3f2bd2SRandy Vinson #define BRIDGE_ID 17 3977f3f2bd2SRandy Vinson #define VIA_ID 2 3987f3f2bd2SRandy Vinson #else 3997f3f2bd2SRandy Vinson #define BRIDGE_ID 28 4007f3f2bd2SRandy Vinson #define VIA_ID 4 4017f3f2bd2SRandy Vinson #endif 4027f3f2bd2SRandy Vinson 403d9b94f28SJon Loeliger #if defined(CONFIG_PCI) 404d9b94f28SJon Loeliger 405d9b94f28SJon Loeliger #define CONFIG_NET_MULTI 406d9b94f28SJon Loeliger #define CONFIG_PCI_PNP /* do pci plug-and-play */ 407d9b94f28SJon Loeliger 408d9b94f28SJon Loeliger #undef CONFIG_EEPRO100 409d9b94f28SJon Loeliger #undef CONFIG_TULIP 410d9b94f28SJon Loeliger 411d9b94f28SJon Loeliger #undef CONFIG_PCI_SCAN_SHOW /* show pci devices on startup */ 412f2cff6b1SEd Swarthout 413f2cff6b1SEd Swarthout /* PCI view of System Memory */ 414f2cff6b1SEd Swarthout #define CFG_PCI_MEMORY_BUS 0x00000000 415f2cff6b1SEd Swarthout #define CFG_PCI_MEMORY_PHYS 0x00000000 416f2cff6b1SEd Swarthout #define CFG_PCI_MEMORY_SIZE 0x80000000 417d9b94f28SJon Loeliger 418d9b94f28SJon Loeliger #endif /* CONFIG_PCI */ 419d9b94f28SJon Loeliger 420d9b94f28SJon Loeliger 421d9b94f28SJon Loeliger #if defined(CONFIG_TSEC_ENET) 422d9b94f28SJon Loeliger 423d9b94f28SJon Loeliger #ifndef CONFIG_NET_MULTI 424d9b94f28SJon Loeliger #define CONFIG_NET_MULTI 1 425d9b94f28SJon Loeliger #endif 426d9b94f28SJon Loeliger 427d9b94f28SJon Loeliger #define CONFIG_MII 1 /* MII PHY management */ 428255a3577SKim Phillips #define CONFIG_TSEC1 1 429255a3577SKim Phillips #define CONFIG_TSEC1_NAME "eTSEC0" 430255a3577SKim Phillips #define CONFIG_TSEC2 1 431255a3577SKim Phillips #define CONFIG_TSEC2_NAME "eTSEC1" 432255a3577SKim Phillips #define CONFIG_TSEC3 1 433255a3577SKim Phillips #define CONFIG_TSEC3_NAME "eTSEC2" 434f2cff6b1SEd Swarthout #define CONFIG_TSEC4 435255a3577SKim Phillips #define CONFIG_TSEC4_NAME "eTSEC3" 436d9b94f28SJon Loeliger #undef CONFIG_MPC85XX_FEC 437d9b94f28SJon Loeliger 438d9b94f28SJon Loeliger #define TSEC1_PHY_ADDR 0 439d9b94f28SJon Loeliger #define TSEC2_PHY_ADDR 1 440d9b94f28SJon Loeliger #define TSEC3_PHY_ADDR 2 441d9b94f28SJon Loeliger #define TSEC4_PHY_ADDR 3 442d9b94f28SJon Loeliger 443d9b94f28SJon Loeliger #define TSEC1_PHYIDX 0 444d9b94f28SJon Loeliger #define TSEC2_PHYIDX 0 445d9b94f28SJon Loeliger #define TSEC3_PHYIDX 0 446d9b94f28SJon Loeliger #define TSEC4_PHYIDX 0 4473a79013eSAndy Fleming #define TSEC1_FLAGS TSEC_GIGABIT 4483a79013eSAndy Fleming #define TSEC2_FLAGS TSEC_GIGABIT 4493a79013eSAndy Fleming #define TSEC3_FLAGS (TSEC_GIGABIT | TSEC_REDUCED) 4503a79013eSAndy Fleming #define TSEC4_FLAGS (TSEC_GIGABIT | TSEC_REDUCED) 451d9b94f28SJon Loeliger 452d9b94f28SJon Loeliger /* Options are: eTSEC[0-3] */ 453d9b94f28SJon Loeliger #define CONFIG_ETHPRIME "eTSEC0" 454f2cff6b1SEd Swarthout #define CONFIG_PHY_GIGE 1 /* Include GbE speed/duplex detection */ 455d9b94f28SJon Loeliger #endif /* CONFIG_TSEC_ENET */ 456d9b94f28SJon Loeliger 457d9b94f28SJon Loeliger /* 458d9b94f28SJon Loeliger * Environment 459d9b94f28SJon Loeliger */ 460d9b94f28SJon Loeliger #define CFG_ENV_IS_IN_FLASH 1 461d9b94f28SJon Loeliger #define CFG_ENV_ADDR (CFG_MONITOR_BASE + 0x40000) 462d9b94f28SJon Loeliger #define CFG_ENV_SECT_SIZE 0x40000 /* 256K(one sector) for env */ 463d9b94f28SJon Loeliger #define CFG_ENV_SIZE 0x2000 464d9b94f28SJon Loeliger 465d9b94f28SJon Loeliger #define CONFIG_LOADS_ECHO 1 /* echo on for serial download */ 466d9b94f28SJon Loeliger #define CFG_LOADS_BAUD_CHANGE 1 /* allow baudrate change */ 467d9b94f28SJon Loeliger 4682835e518SJon Loeliger /* 469659e2f67SJon Loeliger * BOOTP options 470659e2f67SJon Loeliger */ 471659e2f67SJon Loeliger #define CONFIG_BOOTP_BOOTFILESIZE 472659e2f67SJon Loeliger #define CONFIG_BOOTP_BOOTPATH 473659e2f67SJon Loeliger #define CONFIG_BOOTP_GATEWAY 474659e2f67SJon Loeliger #define CONFIG_BOOTP_HOSTNAME 475659e2f67SJon Loeliger 476659e2f67SJon Loeliger 477659e2f67SJon Loeliger /* 4782835e518SJon Loeliger * Command line configuration. 4792835e518SJon Loeliger */ 4802835e518SJon Loeliger #include <config_cmd_default.h> 4812835e518SJon Loeliger 4822835e518SJon Loeliger #define CONFIG_CMD_PING 4832835e518SJon Loeliger #define CONFIG_CMD_I2C 4842835e518SJon Loeliger #define CONFIG_CMD_MII 4852835e518SJon Loeliger 486d9b94f28SJon Loeliger #if defined(CONFIG_PCI) 4872835e518SJon Loeliger #define CONFIG_CMD_PCI 488d9b94f28SJon Loeliger #endif 4892835e518SJon Loeliger 490d9b94f28SJon Loeliger 491d9b94f28SJon Loeliger #undef CONFIG_WATCHDOG /* watchdog disabled */ 492d9b94f28SJon Loeliger 493d9b94f28SJon Loeliger /* 494d9b94f28SJon Loeliger * Miscellaneous configurable options 495d9b94f28SJon Loeliger */ 496d9b94f28SJon Loeliger #define CFG_LONGHELP /* undef to save memory */ 497d9b94f28SJon Loeliger #define CFG_LOAD_ADDR 0x2000000 /* default load address */ 498d9b94f28SJon Loeliger #define CFG_PROMPT "=> " /* Monitor Command Prompt */ 4992835e518SJon Loeliger #if defined(CONFIG_CMD_KGDB) 500d9b94f28SJon Loeliger #define CFG_CBSIZE 1024 /* Console I/O Buffer Size */ 501d9b94f28SJon Loeliger #else 502d9b94f28SJon Loeliger #define CFG_CBSIZE 256 /* Console I/O Buffer Size */ 503d9b94f28SJon Loeliger #endif 504d9b94f28SJon Loeliger #define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */ 505d9b94f28SJon Loeliger #define CFG_MAXARGS 16 /* max number of command args */ 506d9b94f28SJon Loeliger #define CFG_BARGSIZE CFG_CBSIZE /* Boot Argument Buffer Size */ 507d9b94f28SJon Loeliger #define CFG_HZ 1000 /* decrementer freq: 1ms ticks */ 508d9b94f28SJon Loeliger 509d9b94f28SJon Loeliger /* 510d9b94f28SJon Loeliger * For booting Linux, the board info and command line data 511d9b94f28SJon Loeliger * have to be in the first 8 MB of memory, since this is 512d9b94f28SJon Loeliger * the maximum mapped by the Linux kernel during initialization. 513d9b94f28SJon Loeliger */ 514d9b94f28SJon Loeliger #define CFG_BOOTMAPSZ (8 << 20) /* Initial Memory map for Linux*/ 515d9b94f28SJon Loeliger 516d9b94f28SJon Loeliger /* Cache Configuration */ 517d9b94f28SJon Loeliger #define CFG_DCACHE_SIZE 32768 518d9b94f28SJon Loeliger #define CFG_CACHELINE_SIZE 32 5192835e518SJon Loeliger #if defined(CONFIG_CMD_KGDB) 520d9b94f28SJon Loeliger #define CFG_CACHELINE_SHIFT 5 /*log base 2 of the above value*/ 521d9b94f28SJon Loeliger #endif 522d9b94f28SJon Loeliger 523d9b94f28SJon Loeliger /* 524d9b94f28SJon Loeliger * Internal Definitions 525d9b94f28SJon Loeliger * 526d9b94f28SJon Loeliger * Boot Flags 527d9b94f28SJon Loeliger */ 528d9b94f28SJon Loeliger #define BOOTFLAG_COLD 0x01 /* Normal Power-On: Boot from FLASH */ 529d9b94f28SJon Loeliger #define BOOTFLAG_WARM 0x02 /* Software reboot */ 530d9b94f28SJon Loeliger 5312835e518SJon Loeliger #if defined(CONFIG_CMD_KGDB) 532d9b94f28SJon Loeliger #define CONFIG_KGDB_BAUDRATE 230400 /* speed to run kgdb serial port */ 533d9b94f28SJon Loeliger #define CONFIG_KGDB_SER_INDEX 2 /* which serial port to use */ 534d9b94f28SJon Loeliger #endif 535d9b94f28SJon Loeliger 536d9b94f28SJon Loeliger /* 537d9b94f28SJon Loeliger * Environment Configuration 538d9b94f28SJon Loeliger */ 539d9b94f28SJon Loeliger 540d9b94f28SJon Loeliger /* The mac addresses for all ethernet interface */ 541d9b94f28SJon Loeliger #if defined(CONFIG_TSEC_ENET) 54210327dc5SAndy Fleming #define CONFIG_HAS_ETH0 543d9b94f28SJon Loeliger #define CONFIG_ETHADDR 00:E0:0C:00:00:FD 544d9b94f28SJon Loeliger #define CONFIG_HAS_ETH1 545d9b94f28SJon Loeliger #define CONFIG_ETH1ADDR 00:E0:0C:00:01:FD 546d9b94f28SJon Loeliger #define CONFIG_HAS_ETH2 547d9b94f28SJon Loeliger #define CONFIG_ETH2ADDR 00:E0:0C:00:02:FD 54809f3e09eSAndy Fleming #define CONFIG_HAS_ETH3 54909f3e09eSAndy Fleming #define CONFIG_ETH3ADDR 00:E0:0C:00:03:FD 550d9b94f28SJon Loeliger #endif 551d9b94f28SJon Loeliger 552d9b94f28SJon Loeliger #define CONFIG_IPADDR 192.168.1.253 553d9b94f28SJon Loeliger 554d9b94f28SJon Loeliger #define CONFIG_HOSTNAME unknown 555d9b94f28SJon Loeliger #define CONFIG_ROOTPATH /nfsroot 556f2cff6b1SEd Swarthout #define CONFIG_BOOTFILE 8548cds/uImage.uboot 557f2cff6b1SEd Swarthout #define CONFIG_UBOOTPATH 8548cds/u-boot.bin /* TFTP server */ 558d9b94f28SJon Loeliger 559d9b94f28SJon Loeliger #define CONFIG_SERVERIP 192.168.1.1 560d9b94f28SJon Loeliger #define CONFIG_GATEWAYIP 192.168.1.1 561d9b94f28SJon Loeliger #define CONFIG_NETMASK 255.255.255.0 562d9b94f28SJon Loeliger 563f2cff6b1SEd Swarthout #define CONFIG_LOADADDR 1000000 /*default location for tftp and bootm*/ 564d9b94f28SJon Loeliger 565d9b94f28SJon Loeliger #define CONFIG_BOOTDELAY 10 /* -1 disables auto-boot */ 566d9b94f28SJon Loeliger #undef CONFIG_BOOTARGS /* the boot command will set bootargs*/ 567d9b94f28SJon Loeliger 568d9b94f28SJon Loeliger #define CONFIG_BAUDRATE 115200 569d9b94f28SJon Loeliger 570f2cff6b1SEd Swarthout #if defined(CONFIG_PCIE1) 571f2cff6b1SEd Swarthout #define PCIE_ENV \ 572f2cff6b1SEd Swarthout "pciereg=md ${a}000 6; md ${a}020 4; md ${a}bf8 2; echo o;md ${a}c00 25;" \ 573f2cff6b1SEd Swarthout "echo i; md ${a}da0 15; echo e;md ${a}e00 e; echo d; md ${a}f00 c\0" \ 574f2cff6b1SEd Swarthout "pcieerr=md ${a}020 1; md ${a}e00 e; pci d.b $b.0 7 1; pci d.w $b.0 1e 1;" \ 575f2cff6b1SEd Swarthout "pci d.w $b.0 56 1; pci d $b.0 104 1; pci d $b.0 110 1;" \ 576f2cff6b1SEd Swarthout "pci d $b.0 130 1\0" \ 577f2cff6b1SEd Swarthout "pcieerrc=mw ${a}020 ffffffff; mw ${a}e00 ffffffff; pci w.b $b.0 7 ff;" \ 578f2cff6b1SEd Swarthout "pci w.w $b.0 1e ffff; pci w.w $b.0 56 ffff; pci w $b.0 104 ffffffff;"\ 579f2cff6b1SEd Swarthout "pci w $b.0 110 ffffffff; pci w $b.0 130 ffffffff\0" \ 580f2cff6b1SEd Swarthout "pciecfg=pci d $b.0 0 20; pci d $b.0 100 e; pci d $b.0 400 69\0" \ 581f2cff6b1SEd Swarthout "pcie1regs=setenv a e000a; run pciereg\0" \ 582f2cff6b1SEd Swarthout "pcie1cfg=setenv b 3; run pciecfg\0" \ 583f2cff6b1SEd Swarthout "pcie1err=setenv a e000a; setenv b 3; run pcieerr\0" \ 584f2cff6b1SEd Swarthout "pcie1errc=setenv a e000a; setenv b 3; run pcieerrc\0" 585f2cff6b1SEd Swarthout #else 586f2cff6b1SEd Swarthout #define PCIE_ENV "" 587f2cff6b1SEd Swarthout #endif 588f2cff6b1SEd Swarthout 589f2cff6b1SEd Swarthout #if defined(CONFIG_PCI1) || defined(CONFIG_PCI2) 590f2cff6b1SEd Swarthout #define PCI_ENV \ 591f2cff6b1SEd Swarthout "pcireg=md ${a}000 3; echo o;md ${a}c00 25; echo i; md ${a}da0 15;" \ 592f2cff6b1SEd Swarthout "echo e;md ${a}e00 9\0" \ 593f2cff6b1SEd Swarthout "pcierr=md ${a}e00 8; pci d.b $b.0 7 1;pci d.w $b.0 1e 1;" \ 594f2cff6b1SEd Swarthout "pci d.w $b.0 56 1\0" \ 595f2cff6b1SEd Swarthout "pcierrc=mw ${a}e00 ffffffff; mw ${a}e0c 0; pci w.b $b.0 7 ff;" \ 596f2cff6b1SEd Swarthout "pci w.w $b.0 1e ffff; pci w.w $b.0 56 ffff\0" 597f2cff6b1SEd Swarthout #else 598f2cff6b1SEd Swarthout #define PCI_ENV "" 599f2cff6b1SEd Swarthout #endif 600f2cff6b1SEd Swarthout 601f2cff6b1SEd Swarthout #if defined(CONFIG_PCI1) 602f2cff6b1SEd Swarthout #define PCI_ENV1 \ 603f2cff6b1SEd Swarthout "pci1regs=setenv a e0008; run pcireg\0" \ 604f2cff6b1SEd Swarthout "pci1err=setenv a e0008; setenv b 0; run pcierr\0" \ 605f2cff6b1SEd Swarthout "pci1errc=setenv a e0008; setenv b 0; run pcierrc\0" 606f2cff6b1SEd Swarthout #else 607f2cff6b1SEd Swarthout #define PCI_ENV1 "" 608f2cff6b1SEd Swarthout #endif 609f2cff6b1SEd Swarthout 610f2cff6b1SEd Swarthout #if defined(CONFIG_PCI2) 611f2cff6b1SEd Swarthout #define PCI_ENV2 \ 612f2cff6b1SEd Swarthout "pci2regs=setenv a e0009; run pcireg\0" \ 613f2cff6b1SEd Swarthout "pci2err=setenv a e0009; setenv b 123; run pcierr\0" \ 614f2cff6b1SEd Swarthout "pci2errc=setenv a e0009; setenv b 123; run pcierrc\0" 615f2cff6b1SEd Swarthout #else 616f2cff6b1SEd Swarthout #define PCI_ENV2 "" 617f2cff6b1SEd Swarthout #endif 618f2cff6b1SEd Swarthout 619f2cff6b1SEd Swarthout #if defined(CONFIG_TSEC_ENET) 620f2cff6b1SEd Swarthout #define ENET_ENV \ 621f2cff6b1SEd Swarthout "enetreg1=md ${a}000 2; md ${a}010 9; md ${a}050 4; md ${a}08c 1;" \ 622f2cff6b1SEd Swarthout "md ${a}098 2\0" \ 623f2cff6b1SEd Swarthout "enetregt=echo t;md ${a}100 6; md ${a}140 2; md ${a}180 10; md ${a}200 10\0" \ 624f2cff6b1SEd Swarthout "enetregr=echo r;md ${a}300 6; md ${a}330 5; md ${a}380 10; md ${a}400 10\0" \ 625f2cff6b1SEd Swarthout "enetregm=echo mac;md ${a}500 5; md ${a}520 28;echo fifo;md ${a}a00 1;" \ 626f2cff6b1SEd Swarthout "echo mib;md ${a}680 31\0" \ 627f2cff6b1SEd Swarthout "enetreg=run enetreg1; run enetregm; run enetregt; run enetregr\0" \ 628f2cff6b1SEd Swarthout "enet1regs=setenv a e0024; run enetreg\0" \ 629f2cff6b1SEd Swarthout "enet2regs=setenv a e0025; run enetreg\0" \ 630f2cff6b1SEd Swarthout "enet3regs=setenv a e0026; run enetreg\0" \ 631f2cff6b1SEd Swarthout "enet4regs=setenv a e0027; run enetreg\0" 632f2cff6b1SEd Swarthout #else 633f2cff6b1SEd Swarthout #define ENET_ENV "" 634f2cff6b1SEd Swarthout #endif 635f2cff6b1SEd Swarthout 636d9b94f28SJon Loeliger #define CONFIG_EXTRA_ENV_SETTINGS \ 637d9b94f28SJon Loeliger "netdev=eth0\0" \ 638f2cff6b1SEd Swarthout "uboot=" MK_STR(CONFIG_UBOOTPATH) "\0" \ 639f2cff6b1SEd Swarthout "tftpflash=tftpboot $loadaddr $uboot; " \ 640f2cff6b1SEd Swarthout "protect off " MK_STR(TEXT_BASE) " +$filesize; " \ 641f2cff6b1SEd Swarthout "erase " MK_STR(TEXT_BASE) " +$filesize; " \ 642f2cff6b1SEd Swarthout "cp.b $loadaddr " MK_STR(TEXT_BASE) " $filesize; " \ 643f2cff6b1SEd Swarthout "protect on " MK_STR(TEXT_BASE) " +$filesize; " \ 644f2cff6b1SEd Swarthout "cmp.b $loadaddr " MK_STR(TEXT_BASE) " $filesize\0" \ 645d9b94f28SJon Loeliger "consoledev=ttyS1\0" \ 646f2cff6b1SEd Swarthout "ramdiskaddr=2000000\0" \ 6476c543597SAndy Fleming "ramdiskfile=ramdisk.uboot\0" \ 648*4bf4abb8SEd Swarthout "fdtaddr=c00000\0" \ 649*4bf4abb8SEd Swarthout "fdtfile=mpc8548cds.dtb\0" \ 650f2cff6b1SEd Swarthout "eoi=mw e00400b0 0\0" \ 651f2cff6b1SEd Swarthout "iack=md e00400a0 1\0" \ 652f2cff6b1SEd Swarthout "ddrreg=md ${a}000 8; md ${a}080 8;md ${a}100 d; md ${a}140 4; md ${a}bf0 4;" \ 653f2cff6b1SEd Swarthout "md ${a}e00 3; md ${a}e20 3; md ${a}e40 7; md ${a}f00 5\0" \ 654f2cff6b1SEd Swarthout "ddrregs=setenv a e0002; run ddrreg\0" \ 655f2cff6b1SEd Swarthout "gureg=md ${a}000 2c; md ${a}0b0 1; md ${a}0c0 1; md ${a}b20 3;" \ 656f2cff6b1SEd Swarthout "md ${a}e00 1; md ${a}e60 1; md ${a}ef0 15\0" \ 657f2cff6b1SEd Swarthout "guregs=setenv a e00e0; run gureg\0" \ 658f2cff6b1SEd Swarthout "ecmreg=md ${a}000 1; md ${a}010 1; md ${a}bf8 2; md ${a}e00 6\0" \ 659f2cff6b1SEd Swarthout "ecmregs=setenv a e0001; run ecmreg\0" \ 660f2cff6b1SEd Swarthout "lawregs=md e0000c08 4b\0" \ 661f2cff6b1SEd Swarthout "lbcregs=md e0005000 36\0" \ 662f2cff6b1SEd Swarthout "dma0regs=md e0021100 12\0" \ 663f2cff6b1SEd Swarthout "dma1regs=md e0021180 12\0" \ 664f2cff6b1SEd Swarthout "dma2regs=md e0021200 12\0" \ 665f2cff6b1SEd Swarthout "dma3regs=md e0021280 12\0" \ 666f2cff6b1SEd Swarthout PCIE_ENV \ 667f2cff6b1SEd Swarthout PCI_ENV \ 668f2cff6b1SEd Swarthout PCI_ENV1 \ 669f2cff6b1SEd Swarthout PCI_ENV2 \ 670f2cff6b1SEd Swarthout ENET_ENV 671d9b94f28SJon Loeliger 672d9b94f28SJon Loeliger #define CONFIG_NFSBOOTCOMMAND \ 673d9b94f28SJon Loeliger "setenv bootargs root=/dev/nfs rw " \ 674d9b94f28SJon Loeliger "nfsroot=$serverip:$rootpath " \ 675d9b94f28SJon Loeliger "ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname:$netdev:off " \ 676d9b94f28SJon Loeliger "console=$consoledev,$baudrate $othbootargs;" \ 677d9b94f28SJon Loeliger "tftp $loadaddr $bootfile;" \ 678*4bf4abb8SEd Swarthout "tftp $fdtaddr $fdtfile;" \ 679*4bf4abb8SEd Swarthout "bootm $loadaddr - $fdtaddr" 6808272dc2fSAndy Fleming 681d9b94f28SJon Loeliger 682d9b94f28SJon Loeliger #define CONFIG_RAMBOOTCOMMAND \ 683d9b94f28SJon Loeliger "setenv bootargs root=/dev/ram rw " \ 684d9b94f28SJon Loeliger "console=$consoledev,$baudrate $othbootargs;" \ 685d9b94f28SJon Loeliger "tftp $ramdiskaddr $ramdiskfile;" \ 686d9b94f28SJon Loeliger "tftp $loadaddr $bootfile;" \ 687*4bf4abb8SEd Swarthout "tftp $fdtaddr $fdtfile;" \ 688*4bf4abb8SEd Swarthout "bootm $loadaddr $ramdiskaddr $fdtaddr" 689d9b94f28SJon Loeliger 690d9b94f28SJon Loeliger #define CONFIG_BOOTCOMMAND CONFIG_NFSBOOTCOMMAND 691d9b94f28SJon Loeliger 692d9b94f28SJon Loeliger #endif /* __CONFIG_H */ 693