1*83d290c5STom Rini /* SPDX-License-Identifier: GPL-2.0+ */ 267431059SAndy Fleming /* 35f7bbd13SKumar Gala * Copyright 2004-2007, 2010-2011 Freescale Semiconductor. 467431059SAndy Fleming */ 567431059SAndy Fleming 667431059SAndy Fleming /* 767431059SAndy Fleming * mpc8568mds board configuration file 867431059SAndy Fleming */ 967431059SAndy Fleming #ifndef __CONFIG_H 1067431059SAndy Fleming #define __CONFIG_H 1167431059SAndy Fleming 125f7bbd13SKumar Gala #define CONFIG_SYS_SRIO 135f7bbd13SKumar Gala #define CONFIG_SRIO1 /* SRIO port 1 */ 145f7bbd13SKumar Gala 151563f56eSHaiying Wang #define CONFIG_PCI1 1 /* PCI controller */ 161563f56eSHaiying Wang #define CONFIG_PCIE1 1 /* PCIE controller */ 171563f56eSHaiying Wang #define CONFIG_FSL_PCI_INIT 1 /* use common fsl pci init code */ 18842033e6SGabor Juhos #define CONFIG_PCI_INDIRECT_BRIDGE 1 /* indirect PCI bridge support */ 198ff3de61SKumar Gala #define CONFIG_FSL_PCIE_RESET 1 /* need PCIe reset errata */ 200151cbacSKumar Gala #define CONFIG_SYS_PCI_64BIT 1 /* enable 64-bit PCI resources */ 21b96c83d4SAndy Fleming #define CONFIG_QE /* Enable QE */ 2267431059SAndy Fleming #define CONFIG_ENV_OVERWRITE 2367431059SAndy Fleming 2467431059SAndy Fleming #ifndef __ASSEMBLY__ 2567431059SAndy Fleming extern unsigned long get_clock_freq(void); 2667431059SAndy Fleming #endif /*Replace a call to get_clock_freq (after it is implemented)*/ 2767431059SAndy Fleming #define CONFIG_SYS_CLK_FREQ 66000000 /*TODO: restore if wanting to read from BCSR: get_clock_freq()*/ /* sysclk for MPC85xx */ 2867431059SAndy Fleming 2967431059SAndy Fleming /* 3067431059SAndy Fleming * These can be toggled for performance analysis, otherwise use default. 3167431059SAndy Fleming */ 327a1ac419SHaiying Wang #define CONFIG_L2_CACHE /* toggle L2 cache */ 3367431059SAndy Fleming #define CONFIG_BTB /* toggle branch predition */ 3467431059SAndy Fleming 3567431059SAndy Fleming /* 3667431059SAndy Fleming * Only possible on E500 Version 2 or newer cores. 3767431059SAndy Fleming */ 3867431059SAndy Fleming #define CONFIG_ENABLE_36BIT_PHYS 1 3967431059SAndy Fleming 406d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MEMTEST_START 0x00200000 /* memtest works on */ 416d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MEMTEST_END 0x00400000 4267431059SAndy Fleming 43e46fedfeSTimur Tabi #define CONFIG_SYS_CCSRBAR 0xe0000000 44e46fedfeSTimur Tabi #define CONFIG_SYS_CCSRBAR_PHYS_LOW CONFIG_SYS_CCSRBAR 4567431059SAndy Fleming 46e6f5b35bSJon Loeliger /* DDR Setup */ 47e6f5b35bSJon Loeliger #define CONFIG_SPD_EEPROM /* Use SPD EEPROM for DDR setup*/ 48e6f5b35bSJon Loeliger #define CONFIG_DDR_SPD 499b0ad1b1SDave Liu #define CONFIG_ECC_INIT_VIA_DDRCONTROLLER /* DDR controller or DMA? */ 50e6f5b35bSJon Loeliger 51e6f5b35bSJon Loeliger #define CONFIG_MEM_INIT_VALUE 0xDeadBeef 52e6f5b35bSJon Loeliger 536d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_SDRAM_BASE 0x00000000 /* DDR is system memory*/ 546d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_SDRAM_BASE CONFIG_SYS_DDR_SDRAM_BASE 5567431059SAndy Fleming 56e6f5b35bSJon Loeliger #define CONFIG_DIMM_SLOTS_PER_CTLR 1 57e6f5b35bSJon Loeliger #define CONFIG_CHIP_SELECTS_PER_CTRL (2 * CONFIG_DIMM_SLOTS_PER_CTLR) 5867431059SAndy Fleming 59e6f5b35bSJon Loeliger /* I2C addresses of SPD EEPROMs */ 60e6f5b35bSJon Loeliger #define SPD_EEPROM_ADDRESS 0x51 /* CTLR 0 DIMM 0 */ 61e6f5b35bSJon Loeliger 62e6f5b35bSJon Loeliger /* Make sure required options are set */ 6367431059SAndy Fleming #ifndef CONFIG_SPD_EEPROM 6467431059SAndy Fleming #error ("CONFIG_SPD_EEPROM is required") 6567431059SAndy Fleming #endif 6667431059SAndy Fleming 6767431059SAndy Fleming #undef CONFIG_CLOCKS_IN_MHZ 6867431059SAndy Fleming 6967431059SAndy Fleming /* 7067431059SAndy Fleming * Local Bus Definitions 7167431059SAndy Fleming */ 7267431059SAndy Fleming 7367431059SAndy Fleming /* 7467431059SAndy Fleming * FLASH on the Local Bus 7567431059SAndy Fleming * Two banks, 8M each, using the CFI driver. 7667431059SAndy Fleming * Boot from BR0/OR0 bank at 0xff00_0000 7767431059SAndy Fleming * Alternate BR1/OR1 bank at 0xff80_0000 7867431059SAndy Fleming * 7967431059SAndy Fleming * BR0, BR1: 8067431059SAndy Fleming * Base address 0 = 0xff00_0000 = BR0[0:16] = 1111 1111 0000 0000 0 8167431059SAndy Fleming * Base address 1 = 0xff80_0000 = BR1[0:16] = 1111 1111 1000 0000 0 8267431059SAndy Fleming * Port Size = 16 bits = BRx[19:20] = 10 8367431059SAndy Fleming * Use GPCM = BRx[24:26] = 000 8467431059SAndy Fleming * Valid = BRx[31] = 1 8567431059SAndy Fleming * 8667431059SAndy Fleming * 0 4 8 12 16 20 24 28 8767431059SAndy Fleming * 1111 1111 1000 0000 0001 0000 0000 0001 = ff801001 BR0 8867431059SAndy Fleming * 1111 1111 0000 0000 0001 0000 0000 0001 = ff001001 BR1 8967431059SAndy Fleming * 9067431059SAndy Fleming * OR0, OR1: 9167431059SAndy Fleming * Addr Mask = 8M = ORx[0:16] = 1111 1111 1000 0000 0 9267431059SAndy Fleming * Reserved ORx[17:18] = 11, confusion here? 9367431059SAndy Fleming * CSNT = ORx[20] = 1 9467431059SAndy Fleming * ACS = half cycle delay = ORx[21:22] = 11 9567431059SAndy Fleming * SCY = 6 = ORx[24:27] = 0110 9667431059SAndy Fleming * TRLX = use relaxed timing = ORx[29] = 1 9767431059SAndy Fleming * EAD = use external address latch delay = OR[31] = 1 9867431059SAndy Fleming * 9967431059SAndy Fleming * 0 4 8 12 16 20 24 28 10067431059SAndy Fleming * 1111 1111 1000 0000 0110 1110 0110 0101 = ff806e65 ORx 10167431059SAndy Fleming */ 1026d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_BCSR_BASE 0xf8000000 10367431059SAndy Fleming 1046d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_FLASH_BASE 0xfe000000 /* start of FLASH 32M */ 10567431059SAndy Fleming 10667431059SAndy Fleming /*Chip select 0 - Flash*/ 1076d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_BR0_PRELIM 0xfe001001 1086d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_OR0_PRELIM 0xfe006ff7 10967431059SAndy Fleming 11067431059SAndy Fleming /*Chip slelect 1 - BCSR*/ 1116d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_BR1_PRELIM 0xf8000801 1126d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_OR1_PRELIM 0xffffe9f7 11367431059SAndy Fleming 1146d0f6bcfSJean-Christophe PLAGNIOL-VILLARD /*#define CONFIG_SYS_FLASH_BANKS_LIST {0xff800000, CONFIG_SYS_FLASH_BASE} */ 1156d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MAX_FLASH_BANKS 1 /* number of banks */ 1166d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MAX_FLASH_SECT 512 /* sectors per device */ 1176d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #undef CONFIG_SYS_FLASH_CHECKSUM 1186d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_FLASH_ERASE_TOUT 60000 /* Flash Erase Timeout (ms) */ 1196d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_FLASH_WRITE_TOUT 500 /* Flash Write Timeout (ms) */ 12067431059SAndy Fleming 12114d0a02aSWolfgang Denk #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE /* start of monitor */ 12267431059SAndy Fleming 1236d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_FLASH_EMPTY_INFO 12467431059SAndy Fleming 12567431059SAndy Fleming /* 12667431059SAndy Fleming * SDRAM on the LocalBus 12767431059SAndy Fleming */ 1286d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_LBC_SDRAM_BASE 0xf0000000 /* Localbus SDRAM */ 1296d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_LBC_SDRAM_SIZE 64 /* LBC SDRAM is 64MB */ 13067431059SAndy Fleming 13167431059SAndy Fleming /*Chip select 2 - SDRAM*/ 1326d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_BR2_PRELIM 0xf0001861 1336d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_OR2_PRELIM 0xfc006901 13467431059SAndy Fleming 1356d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_LBC_LCRR 0x00030004 /* LB clock ratio reg */ 1366d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_LBC_LBCR 0x00000000 /* LB config reg */ 1376d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_LBC_LSRT 0x20000000 /* LB sdram refresh timer */ 1386d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_LBC_MRTPR 0x00000000 /* LB refresh timer prescal*/ 13967431059SAndy Fleming 14067431059SAndy Fleming /* 14167431059SAndy Fleming * Common settings for all Local Bus SDRAM commands. 14267431059SAndy Fleming * At run time, either BSMA1516 (for CPU 1.1) 14367431059SAndy Fleming * or BSMA1617 (for CPU 1.0) (old) 14467431059SAndy Fleming * is OR'ed in too. 14567431059SAndy Fleming */ 146b0fe93edSKumar Gala #define CONFIG_SYS_LBC_LSDMR_COMMON ( LSDMR_RFCR16 \ 147b0fe93edSKumar Gala | LSDMR_PRETOACT7 \ 148b0fe93edSKumar Gala | LSDMR_ACTTORW7 \ 149b0fe93edSKumar Gala | LSDMR_BL8 \ 150b0fe93edSKumar Gala | LSDMR_WRC4 \ 151b0fe93edSKumar Gala | LSDMR_CL3 \ 152b0fe93edSKumar Gala | LSDMR_RFEN \ 15367431059SAndy Fleming ) 15467431059SAndy Fleming 15567431059SAndy Fleming /* 15667431059SAndy Fleming * The bcsr registers are connected to CS3 on MDS. 15767431059SAndy Fleming * The new memory map places bcsr at 0xf8000000. 15867431059SAndy Fleming * 15967431059SAndy Fleming * For BR3, need: 16067431059SAndy Fleming * Base address of 0xf8000000 = BR[0:16] = 1111 1000 0000 0000 0 16167431059SAndy Fleming * port-size = 8-bits = BR[19:20] = 01 16267431059SAndy Fleming * no parity checking = BR[21:22] = 00 16367431059SAndy Fleming * GPMC for MSEL = BR[24:26] = 000 16467431059SAndy Fleming * Valid = BR[31] = 1 16567431059SAndy Fleming * 16667431059SAndy Fleming * 0 4 8 12 16 20 24 28 16767431059SAndy Fleming * 1111 1000 0000 0000 0000 1000 0000 0001 = f8000801 16867431059SAndy Fleming * 16967431059SAndy Fleming * For OR3, need: 17067431059SAndy Fleming * 1 MB mask for AM, OR[0:16] = 1111 1111 1111 0000 0 17167431059SAndy Fleming * disable buffer ctrl OR[19] = 0 17267431059SAndy Fleming * CSNT OR[20] = 1 17367431059SAndy Fleming * ACS OR[21:22] = 11 17467431059SAndy Fleming * XACS OR[23] = 1 17567431059SAndy Fleming * SCY 15 wait states OR[24:27] = 1111 max is suboptimal but safe 17667431059SAndy Fleming * SETA OR[28] = 0 17767431059SAndy Fleming * TRLX OR[29] = 1 17867431059SAndy Fleming * EHTR OR[30] = 1 17967431059SAndy Fleming * EAD extra time OR[31] = 1 18067431059SAndy Fleming * 18167431059SAndy Fleming * 0 4 8 12 16 20 24 28 18267431059SAndy Fleming * 1111 1111 1111 0000 0000 1111 1111 0111 = fff00ff7 18367431059SAndy Fleming */ 1846d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_BCSR (0xf8000000) 18567431059SAndy Fleming 18667431059SAndy Fleming /*Chip slelect 4 - PIB*/ 1876d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_BR4_PRELIM 0xf8008801 1886d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_OR4_PRELIM 0xffffe9f7 18967431059SAndy Fleming 19067431059SAndy Fleming /*Chip select 5 - PIB*/ 1916d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_BR5_PRELIM 0xf8010801 1926d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_OR5_PRELIM 0xffff69f7 19367431059SAndy Fleming 1946d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_INIT_RAM_LOCK 1 1956d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_INIT_RAM_ADDR 0xe4010000 /* Initial RAM address */ 196553f0982SWolfgang Denk #define CONFIG_SYS_INIT_RAM_SIZE 0x4000 /* Size of used area in RAM */ 19767431059SAndy Fleming 19825ddd1fbSWolfgang Denk #define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE) 1996d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET 20067431059SAndy Fleming 2016d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MONITOR_LEN (256 * 1024) /* Reserve 256 kB for Mon */ 202cdab5e90SYork Sun #define CONFIG_SYS_MALLOC_LEN (512 * 1024) /* Reserved for malloc */ 20367431059SAndy Fleming 20467431059SAndy Fleming /* Serial Port */ 2056d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_NS16550_SERIAL 2066d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_NS16550_REG_SIZE 1 2076d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_NS16550_CLK get_bus_freq(0) 20867431059SAndy Fleming 2096d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_BAUDRATE_TABLE \ 21067431059SAndy Fleming {300, 600, 1200, 2400, 4800, 9600, 19200, 38400,115200} 21167431059SAndy Fleming 2126d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_NS16550_COM1 (CONFIG_SYS_CCSRBAR+0x4500) 2136d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_NS16550_COM2 (CONFIG_SYS_CCSRBAR+0x4600) 21467431059SAndy Fleming 21567431059SAndy Fleming /* 21667431059SAndy Fleming * I2C 21767431059SAndy Fleming */ 21800f792e0SHeiko Schocher #define CONFIG_SYS_I2C 21900f792e0SHeiko Schocher #define CONFIG_SYS_I2C_FSL 22000f792e0SHeiko Schocher #define CONFIG_SYS_FSL_I2C_SPEED 400000 22100f792e0SHeiko Schocher #define CONFIG_SYS_FSL_I2C_SLAVE 0x7F 22200f792e0SHeiko Schocher #define CONFIG_SYS_FSL_I2C_OFFSET 0x3000 22300f792e0SHeiko Schocher #define CONFIG_SYS_FSL_I2C2_SPEED 400000 22400f792e0SHeiko Schocher #define CONFIG_SYS_FSL_I2C2_SLAVE 0x7F 22500f792e0SHeiko Schocher #define CONFIG_SYS_FSL_I2C2_OFFSET 0x3100 22600f792e0SHeiko Schocher #define CONFIG_SYS_I2C_NOPROBES { {0, 0x69} } 2276d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_I2C_EEPROM_ADDR 0x52 22867431059SAndy Fleming 22967431059SAndy Fleming /* 23067431059SAndy Fleming * General PCI 23167431059SAndy Fleming * Memory Addresses are mapped 1-1. I/O is mapped from 0 23267431059SAndy Fleming */ 2335af0fdd8SKumar Gala #define CONFIG_SYS_PCI1_MEM_VIRT 0x80000000 23410795f42SKumar Gala #define CONFIG_SYS_PCI1_MEM_BUS 0x80000000 2355af0fdd8SKumar Gala #define CONFIG_SYS_PCI1_MEM_PHYS 0x80000000 2366d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCI1_MEM_SIZE 0x20000000 /* 512M */ 237aca5f018SKumar Gala #define CONFIG_SYS_PCI1_IO_VIRT 0xe2000000 2385f91ef6aSKumar Gala #define CONFIG_SYS_PCI1_IO_BUS 0x00000000 2396d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCI1_IO_PHYS 0xe2000000 2406d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCI1_IO_SIZE 0x00800000 /* 8M */ 24167431059SAndy Fleming 2423f6f9d76SKumar Gala #define CONFIG_SYS_PCIE1_NAME "Slot" 2435af0fdd8SKumar Gala #define CONFIG_SYS_PCIE1_MEM_VIRT 0xa0000000 24410795f42SKumar Gala #define CONFIG_SYS_PCIE1_MEM_BUS 0xa0000000 2455af0fdd8SKumar Gala #define CONFIG_SYS_PCIE1_MEM_PHYS 0xa0000000 2466d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE1_MEM_SIZE 0x20000000 /* 512M */ 247aca5f018SKumar Gala #define CONFIG_SYS_PCIE1_IO_VIRT 0xe2800000 2485f91ef6aSKumar Gala #define CONFIG_SYS_PCIE1_IO_BUS 0x00000000 2496d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE1_IO_PHYS 0xe2800000 2506d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE1_IO_SIZE 0x00800000 /* 8M */ 25167431059SAndy Fleming 2525f7bbd13SKumar Gala #define CONFIG_SYS_SRIO1_MEM_VIRT 0xC0000000 2535f7bbd13SKumar Gala #define CONFIG_SYS_SRIO1_MEM_BUS 0xC0000000 2545f7bbd13SKumar Gala #define CONFIG_SYS_SRIO1_MEM_PHYS CONFIG_SYS_SRIO1_MEM_BUS 2555f7bbd13SKumar Gala #define CONFIG_SYS_SRIO1_MEM_SIZE 0x20000000 /* 512M */ 25667431059SAndy Fleming 257da9d4610SAndy Fleming #ifdef CONFIG_QE 258da9d4610SAndy Fleming /* 259da9d4610SAndy Fleming * QE UEC ethernet configuration 260da9d4610SAndy Fleming */ 261da9d4610SAndy Fleming #define CONFIG_UEC_ETH 262da9d4610SAndy Fleming #ifndef CONFIG_TSEC_ENET 26378b7a8efSKim Phillips #define CONFIG_ETHPRIME "UEC0" 264da9d4610SAndy Fleming #endif 265da9d4610SAndy Fleming #define CONFIG_PHY_MODE_NEED_CHANGE 266da9d4610SAndy Fleming #define CONFIG_eTSEC_MDIO_BUS 267da9d4610SAndy Fleming 268da9d4610SAndy Fleming #ifdef CONFIG_eTSEC_MDIO_BUS 269da9d4610SAndy Fleming #define CONFIG_MIIM_ADDRESS 0xE0024520 270da9d4610SAndy Fleming #endif 271da9d4610SAndy Fleming 272da9d4610SAndy Fleming #define CONFIG_UEC_ETH1 /* GETH1 */ 273da9d4610SAndy Fleming 274da9d4610SAndy Fleming #ifdef CONFIG_UEC_ETH1 2756d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_UEC1_UCC_NUM 0 /* UCC1 */ 2766d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_UEC1_RX_CLK QE_CLK_NONE 2776d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_UEC1_TX_CLK QE_CLK16 2786d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_UEC1_ETH_TYPE GIGA_ETH 2796d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_UEC1_PHY_ADDR 7 280865ff856SAndy Fleming #define CONFIG_SYS_UEC1_INTERFACE_TYPE PHY_INTERFACE_MODE_RGMII_ID 281582c55a0SHeiko Schocher #define CONFIG_SYS_UEC1_INTERFACE_SPEED 1000 282da9d4610SAndy Fleming #endif 283da9d4610SAndy Fleming 284da9d4610SAndy Fleming #define CONFIG_UEC_ETH2 /* GETH2 */ 285da9d4610SAndy Fleming 286da9d4610SAndy Fleming #ifdef CONFIG_UEC_ETH2 2876d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_UEC2_UCC_NUM 1 /* UCC2 */ 2886d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_UEC2_RX_CLK QE_CLK_NONE 2896d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_UEC2_TX_CLK QE_CLK16 2906d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_UEC2_ETH_TYPE GIGA_ETH 2916d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_UEC2_PHY_ADDR 1 292865ff856SAndy Fleming #define CONFIG_SYS_UEC2_INTERFACE_TYPE PHY_INTERFACE_MODE_RGMII_ID 293582c55a0SHeiko Schocher #define CONFIG_SYS_UEC2_INTERFACE_SPEED 1000 294da9d4610SAndy Fleming #endif 295da9d4610SAndy Fleming #endif /* CONFIG_QE */ 296da9d4610SAndy Fleming 297f30ad49bSHaiying Wang #if defined(CONFIG_PCI) 29867431059SAndy Fleming #undef CONFIG_EEPRO100 29967431059SAndy Fleming #undef CONFIG_TULIP 30067431059SAndy Fleming 30167431059SAndy Fleming #undef CONFIG_PCI_SCAN_SHOW /* show pci devices on startup */ 3026d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x1057 /* Motorola */ 30367431059SAndy Fleming 30467431059SAndy Fleming #endif /* CONFIG_PCI */ 30567431059SAndy Fleming 306da9d4610SAndy Fleming #if defined(CONFIG_TSEC_ENET) 307da9d4610SAndy Fleming 308255a3577SKim Phillips #define CONFIG_TSEC1 1 309255a3577SKim Phillips #define CONFIG_TSEC1_NAME "eTSEC0" 310255a3577SKim Phillips #define CONFIG_TSEC2 1 311255a3577SKim Phillips #define CONFIG_TSEC2_NAME "eTSEC1" 31267431059SAndy Fleming 31367431059SAndy Fleming #define TSEC1_PHY_ADDR 2 31467431059SAndy Fleming #define TSEC2_PHY_ADDR 3 31567431059SAndy Fleming 31667431059SAndy Fleming #define TSEC1_PHYIDX 0 31767431059SAndy Fleming #define TSEC2_PHYIDX 0 31867431059SAndy Fleming 3193a79013eSAndy Fleming #define TSEC1_FLAGS TSEC_GIGABIT 3203a79013eSAndy Fleming #define TSEC2_FLAGS TSEC_GIGABIT 3213a79013eSAndy Fleming 322b96c83d4SAndy Fleming /* Options are: eTSEC[0-1] */ 32367431059SAndy Fleming #define CONFIG_ETHPRIME "eTSEC0" 32467431059SAndy Fleming 32567431059SAndy Fleming #endif /* CONFIG_TSEC_ENET */ 32667431059SAndy Fleming 32767431059SAndy Fleming /* 32867431059SAndy Fleming * Environment 32967431059SAndy Fleming */ 330cdab5e90SYork Sun #define CONFIG_ENV_SECT_SIZE 0x20000 /* 128K(one sector) for env */ 3310e8d1586SJean-Christophe PLAGNIOL-VILLARD #define CONFIG_ENV_SIZE 0x2000 332cdab5e90SYork Sun #define CONFIG_ENV_ADDR (CONFIG_SYS_MONITOR_BASE - CONFIG_ENV_SECT_SIZE) 33367431059SAndy Fleming 33467431059SAndy Fleming #define CONFIG_LOADS_ECHO 1 /* echo on for serial download */ 3356d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_LOADS_BAUD_CHANGE 1 /* allow baudrate change */ 33667431059SAndy Fleming 3372835e518SJon Loeliger /* 338079a136cSJon Loeliger * BOOTP options 339079a136cSJon Loeliger */ 340079a136cSJon Loeliger #define CONFIG_BOOTP_BOOTFILESIZE 341079a136cSJon Loeliger 34267431059SAndy Fleming #undef CONFIG_WATCHDOG /* watchdog disabled */ 34367431059SAndy Fleming 34467431059SAndy Fleming /* 34567431059SAndy Fleming * Miscellaneous configurable options 34667431059SAndy Fleming */ 3476d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_LOAD_ADDR 0x2000000 /* default load address */ 34867431059SAndy Fleming 34967431059SAndy Fleming /* 35067431059SAndy Fleming * For booting Linux, the board info and command line data 351a832ac41SKumar Gala * have to be in the first 64 MB of memory, since this is 35267431059SAndy Fleming * the maximum mapped by the Linux kernel during initialization. 35367431059SAndy Fleming */ 354a832ac41SKumar Gala #define CONFIG_SYS_BOOTMAPSZ (64 << 20) /* Initial Memory map for Linux*/ 355a832ac41SKumar Gala #define CONFIG_SYS_BOOTM_LEN (64 << 20) /* Increase max gunzip size */ 35667431059SAndy Fleming 3572835e518SJon Loeliger #if defined(CONFIG_CMD_KGDB) 35867431059SAndy Fleming #define CONFIG_KGDB_BAUDRATE 230400 /* speed to run kgdb serial port */ 35967431059SAndy Fleming #endif 36067431059SAndy Fleming 36167431059SAndy Fleming /* 36267431059SAndy Fleming * Environment Configuration 36367431059SAndy Fleming */ 36467431059SAndy Fleming 36567431059SAndy Fleming /* The mac addresses for all ethernet interface */ 366da9d4610SAndy Fleming #if defined(CONFIG_TSEC_ENET) || defined(CONFIG_UEC_ETH) 367da9d4610SAndy Fleming #define CONFIG_HAS_ETH0 36867431059SAndy Fleming #define CONFIG_HAS_ETH1 36967431059SAndy Fleming #define CONFIG_HAS_ETH2 370da9d4610SAndy Fleming #define CONFIG_HAS_ETH3 37167431059SAndy Fleming #endif 37267431059SAndy Fleming 37367431059SAndy Fleming #define CONFIG_IPADDR 192.168.1.253 37467431059SAndy Fleming 3755bc0543dSMario Six #define CONFIG_HOSTNAME "unknown" 3768b3637c6SJoe Hershberger #define CONFIG_ROOTPATH "/nfsroot" 377b3f44c21SJoe Hershberger #define CONFIG_BOOTFILE "your.uImage" 37867431059SAndy Fleming 37967431059SAndy Fleming #define CONFIG_SERVERIP 192.168.1.1 38067431059SAndy Fleming #define CONFIG_GATEWAYIP 192.168.1.1 38167431059SAndy Fleming #define CONFIG_NETMASK 255.255.255.0 38267431059SAndy Fleming 38367431059SAndy Fleming #define CONFIG_LOADADDR 200000 /*default location for tftp and bootm*/ 38467431059SAndy Fleming 38567431059SAndy Fleming #define CONFIG_EXTRA_ENV_SETTINGS \ 38667431059SAndy Fleming "netdev=eth0\0" \ 38767431059SAndy Fleming "consoledev=ttyS0\0" \ 38867431059SAndy Fleming "ramdiskaddr=600000\0" \ 38967431059SAndy Fleming "ramdiskfile=your.ramdisk.u-boot\0" \ 39067431059SAndy Fleming "fdtaddr=400000\0" \ 39167431059SAndy Fleming "fdtfile=your.fdt.dtb\0" \ 39267431059SAndy Fleming "nfsargs=setenv bootargs root=/dev/nfs rw " \ 39367431059SAndy Fleming "nfsroot=$serverip:$rootpath " \ 39467431059SAndy Fleming "ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname:$netdev:off " \ 39567431059SAndy Fleming "console=$consoledev,$baudrate $othbootargs\0" \ 39667431059SAndy Fleming "ramargs=setenv bootargs root=/dev/ram rw " \ 39767431059SAndy Fleming "console=$consoledev,$baudrate $othbootargs\0" \ 39867431059SAndy Fleming 39967431059SAndy Fleming #define CONFIG_NFSBOOTCOMMAND \ 40067431059SAndy Fleming "run nfsargs;" \ 40167431059SAndy Fleming "tftp $loadaddr $bootfile;" \ 40267431059SAndy Fleming "tftp $fdtaddr $fdtfile;" \ 40367431059SAndy Fleming "bootm $loadaddr - $fdtaddr" 40467431059SAndy Fleming 40567431059SAndy Fleming #define CONFIG_RAMBOOTCOMMAND \ 40667431059SAndy Fleming "run ramargs;" \ 40767431059SAndy Fleming "tftp $ramdiskaddr $ramdiskfile;" \ 40867431059SAndy Fleming "tftp $loadaddr $bootfile;" \ 40967431059SAndy Fleming "bootm $loadaddr $ramdiskaddr" 41067431059SAndy Fleming 41167431059SAndy Fleming #define CONFIG_BOOTCOMMAND CONFIG_NFSBOOTCOMMAND 41267431059SAndy Fleming 41367431059SAndy Fleming #endif /* __CONFIG_H */ 414