167431059SAndy Fleming /* 267431059SAndy Fleming * Copyright 2004-2007 Freescale Semiconductor. 367431059SAndy Fleming * 467431059SAndy Fleming * See file CREDITS for list of people who contributed to this 567431059SAndy Fleming * project. 667431059SAndy Fleming * 767431059SAndy Fleming * This program is free software; you can redistribute it and/or 867431059SAndy Fleming * modify it under the terms of the GNU General Public License as 967431059SAndy Fleming * published by the Free Software Foundation; either version 2 of 1067431059SAndy Fleming * the License, or (at your option) any later version. 1167431059SAndy Fleming * 1267431059SAndy Fleming * This program is distributed in the hope that it will be useful, 1367431059SAndy Fleming * but WITHOUT ANY WARRANTY; without even the implied warranty of 1467431059SAndy Fleming * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1567431059SAndy Fleming * GNU General Public License for more details. 1667431059SAndy Fleming * 1767431059SAndy Fleming * You should have received a copy of the GNU General Public License 1867431059SAndy Fleming * along with this program; if not, write to the Free Software 1967431059SAndy Fleming * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 2067431059SAndy Fleming * MA 02111-1307 USA 2167431059SAndy Fleming */ 2267431059SAndy Fleming 2367431059SAndy Fleming /* 2467431059SAndy Fleming * mpc8568mds board configuration file 2567431059SAndy Fleming */ 2667431059SAndy Fleming #ifndef __CONFIG_H 2767431059SAndy Fleming #define __CONFIG_H 2867431059SAndy Fleming 2967431059SAndy Fleming /* High Level Configuration Options */ 3067431059SAndy Fleming #define CONFIG_BOOKE 1 /* BOOKE */ 3167431059SAndy Fleming #define CONFIG_E500 1 /* BOOKE e500 family */ 3267431059SAndy Fleming #define CONFIG_MPC85xx 1 /* MPC8540/60/55/41/48/68 */ 3367431059SAndy Fleming #define CONFIG_MPC8568 1 /* MPC8568 specific */ 3467431059SAndy Fleming #define CONFIG_MPC8568MDS 1 /* MPC8568MDS board specific */ 3567431059SAndy Fleming 361563f56eSHaiying Wang #define CONFIG_PCI 1 /* Enable PCI/PCIE */ 371563f56eSHaiying Wang #define CONFIG_PCI1 1 /* PCI controller */ 381563f56eSHaiying Wang #define CONFIG_PCIE1 1 /* PCIE controller */ 391563f56eSHaiying Wang #define CONFIG_FSL_PCI_INIT 1 /* use common fsl pci init code */ 408ff3de61SKumar Gala #define CONFIG_FSL_PCIE_RESET 1 /* need PCIe reset errata */ 4167431059SAndy Fleming #define CONFIG_TSEC_ENET /* tsec ethernet support */ 42b96c83d4SAndy Fleming #define CONFIG_QE /* Enable QE */ 4367431059SAndy Fleming #define CONFIG_ENV_OVERWRITE 4467431059SAndy Fleming #define CONFIG_SPD_EEPROM /* Use SPD EEPROM for DDR setup*/ 4567431059SAndy Fleming #define CONFIG_DDR_DLL /* possible DLL fix needed */ 4667431059SAndy Fleming /*#define CONFIG_DDR_2T_TIMING Sets the 2T timing bit */ 4767431059SAndy Fleming 4867431059SAndy Fleming /*#define CONFIG_DDR_ECC*/ /* only for ECC DDR module */ 4967431059SAndy Fleming /*#define CONFIG_ECC_INIT_VIA_DDRCONTROLLER*/ /* DDR controller or DMA? */ 5067431059SAndy Fleming #define CONFIG_MEM_INIT_VALUE 0xDeadBeef 5167431059SAndy Fleming 52*4d3521ccSKumar Gala #define CONFIG_FSL_LAW 1 /* Use common FSL init code */ 5367431059SAndy Fleming 5467431059SAndy Fleming /* 5567431059SAndy Fleming * When initializing flash, if we cannot find the manufacturer ID, 5667431059SAndy Fleming * assume this is the AMD flash associated with the MDS board. 5767431059SAndy Fleming * This allows booting from a promjet. 5867431059SAndy Fleming */ 5967431059SAndy Fleming #define CONFIG_ASSUME_AMD_FLASH 6067431059SAndy Fleming 6167431059SAndy Fleming #define MPC85xx_DDR_SDRAM_CLK_CNTL /* 85xx has clock control reg */ 6267431059SAndy Fleming 6367431059SAndy Fleming #ifndef __ASSEMBLY__ 6467431059SAndy Fleming extern unsigned long get_clock_freq(void); 6567431059SAndy Fleming #endif /*Replace a call to get_clock_freq (after it is implemented)*/ 6667431059SAndy Fleming #define CONFIG_SYS_CLK_FREQ 66000000 /*TODO: restore if wanting to read from BCSR: get_clock_freq()*/ /* sysclk for MPC85xx */ 6767431059SAndy Fleming 6867431059SAndy Fleming /* 6967431059SAndy Fleming * These can be toggled for performance analysis, otherwise use default. 7067431059SAndy Fleming */ 717a1ac419SHaiying Wang #define CONFIG_L2_CACHE /* toggle L2 cache */ 7267431059SAndy Fleming #define CONFIG_BTB /* toggle branch predition */ 7367431059SAndy Fleming #define CONFIG_ADDR_STREAMING /* toggle addr streaming */ 7467431059SAndy Fleming 7567431059SAndy Fleming /* 7667431059SAndy Fleming * Only possible on E500 Version 2 or newer cores. 7767431059SAndy Fleming */ 7867431059SAndy Fleming #define CONFIG_ENABLE_36BIT_PHYS 1 7967431059SAndy Fleming 8067431059SAndy Fleming 8167431059SAndy Fleming #define CONFIG_BOARD_EARLY_INIT_F 1 /* Call board_pre_init */ 8267431059SAndy Fleming 8367431059SAndy Fleming #undef CFG_DRAM_TEST /* memory test, takes time */ 8467431059SAndy Fleming #define CFG_MEMTEST_START 0x00200000 /* memtest works on */ 8567431059SAndy Fleming #define CFG_MEMTEST_END 0x00400000 8667431059SAndy Fleming 8767431059SAndy Fleming /* 8867431059SAndy Fleming * Base addresses -- Note these are effective addresses where the 8967431059SAndy Fleming * actual resources get mapped (not physical addresses) 9067431059SAndy Fleming */ 9167431059SAndy Fleming #define CFG_CCSRBAR_DEFAULT 0xff700000 /* CCSRBAR Default */ 9267431059SAndy Fleming #define CFG_CCSRBAR 0xe0000000 /* relocated CCSRBAR */ 9367431059SAndy Fleming #define CFG_IMMR CFG_CCSRBAR /* PQII uses CFG_IMMR */ 9467431059SAndy Fleming 951563f56eSHaiying Wang #define CFG_PCI1_ADDR (CFG_CCSRBAR+0x8000) 961563f56eSHaiying Wang #define CFG_PCIE1_ADDR (CFG_CCSRBAR+0xa000) 971563f56eSHaiying Wang 9867431059SAndy Fleming /* 9967431059SAndy Fleming * DDR Setup 10067431059SAndy Fleming */ 10167431059SAndy Fleming #define CFG_DDR_SDRAM_BASE 0x00000000 /* DDR is system memory*/ 10267431059SAndy Fleming #define CFG_SDRAM_BASE CFG_DDR_SDRAM_BASE 10367431059SAndy Fleming 10467431059SAndy Fleming #define SPD_EEPROM_ADDRESS 0x51 /* DDR DIMM */ 10567431059SAndy Fleming 10667431059SAndy Fleming /* 10767431059SAndy Fleming * Make sure required options are set 10867431059SAndy Fleming */ 10967431059SAndy Fleming #ifndef CONFIG_SPD_EEPROM 11067431059SAndy Fleming #error ("CONFIG_SPD_EEPROM is required") 11167431059SAndy Fleming #endif 11267431059SAndy Fleming 11367431059SAndy Fleming #undef CONFIG_CLOCKS_IN_MHZ 11467431059SAndy Fleming 11567431059SAndy Fleming 11667431059SAndy Fleming /* 11767431059SAndy Fleming * Local Bus Definitions 11867431059SAndy Fleming */ 11967431059SAndy Fleming 12067431059SAndy Fleming /* 12167431059SAndy Fleming * FLASH on the Local Bus 12267431059SAndy Fleming * Two banks, 8M each, using the CFI driver. 12367431059SAndy Fleming * Boot from BR0/OR0 bank at 0xff00_0000 12467431059SAndy Fleming * Alternate BR1/OR1 bank at 0xff80_0000 12567431059SAndy Fleming * 12667431059SAndy Fleming * BR0, BR1: 12767431059SAndy Fleming * Base address 0 = 0xff00_0000 = BR0[0:16] = 1111 1111 0000 0000 0 12867431059SAndy Fleming * Base address 1 = 0xff80_0000 = BR1[0:16] = 1111 1111 1000 0000 0 12967431059SAndy Fleming * Port Size = 16 bits = BRx[19:20] = 10 13067431059SAndy Fleming * Use GPCM = BRx[24:26] = 000 13167431059SAndy Fleming * Valid = BRx[31] = 1 13267431059SAndy Fleming * 13367431059SAndy Fleming * 0 4 8 12 16 20 24 28 13467431059SAndy Fleming * 1111 1111 1000 0000 0001 0000 0000 0001 = ff801001 BR0 13567431059SAndy Fleming * 1111 1111 0000 0000 0001 0000 0000 0001 = ff001001 BR1 13667431059SAndy Fleming * 13767431059SAndy Fleming * OR0, OR1: 13867431059SAndy Fleming * Addr Mask = 8M = ORx[0:16] = 1111 1111 1000 0000 0 13967431059SAndy Fleming * Reserved ORx[17:18] = 11, confusion here? 14067431059SAndy Fleming * CSNT = ORx[20] = 1 14167431059SAndy Fleming * ACS = half cycle delay = ORx[21:22] = 11 14267431059SAndy Fleming * SCY = 6 = ORx[24:27] = 0110 14367431059SAndy Fleming * TRLX = use relaxed timing = ORx[29] = 1 14467431059SAndy Fleming * EAD = use external address latch delay = OR[31] = 1 14567431059SAndy Fleming * 14667431059SAndy Fleming * 0 4 8 12 16 20 24 28 14767431059SAndy Fleming * 1111 1111 1000 0000 0110 1110 0110 0101 = ff806e65 ORx 14867431059SAndy Fleming */ 14967431059SAndy Fleming #define CFG_BCSR_BASE 0xf8000000 15067431059SAndy Fleming 15167431059SAndy Fleming #define CFG_FLASH_BASE 0xfe000000 /* start of FLASH 32M */ 15267431059SAndy Fleming 15367431059SAndy Fleming /*Chip select 0 - Flash*/ 15467431059SAndy Fleming #define CFG_BR0_PRELIM 0xfe001001 15567431059SAndy Fleming #define CFG_OR0_PRELIM 0xfe006ff7 15667431059SAndy Fleming 15767431059SAndy Fleming /*Chip slelect 1 - BCSR*/ 15867431059SAndy Fleming #define CFG_BR1_PRELIM 0xf8000801 15967431059SAndy Fleming #define CFG_OR1_PRELIM 0xffffe9f7 16067431059SAndy Fleming 1612f15278cSWolfgang Denk /*#define CFG_FLASH_BANKS_LIST {0xff800000, CFG_FLASH_BASE} */ 16267431059SAndy Fleming #define CFG_MAX_FLASH_BANKS 1 /* number of banks */ 16367431059SAndy Fleming #define CFG_MAX_FLASH_SECT 512 /* sectors per device */ 16467431059SAndy Fleming #undef CFG_FLASH_CHECKSUM 16567431059SAndy Fleming #define CFG_FLASH_ERASE_TOUT 60000 /* Flash Erase Timeout (ms) */ 16667431059SAndy Fleming #define CFG_FLASH_WRITE_TOUT 500 /* Flash Write Timeout (ms) */ 16767431059SAndy Fleming 16867431059SAndy Fleming #define CFG_MONITOR_BASE TEXT_BASE /* start of monitor */ 16967431059SAndy Fleming 17067431059SAndy Fleming #define CFG_FLASH_CFI_DRIVER 17167431059SAndy Fleming #define CFG_FLASH_CFI 17267431059SAndy Fleming #define CFG_FLASH_EMPTY_INFO 17367431059SAndy Fleming 17467431059SAndy Fleming 17567431059SAndy Fleming /* 17667431059SAndy Fleming * SDRAM on the LocalBus 17767431059SAndy Fleming */ 17867431059SAndy Fleming #define CFG_LBC_SDRAM_BASE 0xf0000000 /* Localbus SDRAM */ 17967431059SAndy Fleming #define CFG_LBC_SDRAM_SIZE 64 /* LBC SDRAM is 64MB */ 18067431059SAndy Fleming 18167431059SAndy Fleming 18267431059SAndy Fleming /*Chip select 2 - SDRAM*/ 18367431059SAndy Fleming #define CFG_BR2_PRELIM 0xf0001861 18467431059SAndy Fleming #define CFG_OR2_PRELIM 0xfc006901 18567431059SAndy Fleming 18667431059SAndy Fleming #define CFG_LBC_LCRR 0x00030004 /* LB clock ratio reg */ 18767431059SAndy Fleming #define CFG_LBC_LBCR 0x00000000 /* LB config reg */ 18867431059SAndy Fleming #define CFG_LBC_LSRT 0x20000000 /* LB sdram refresh timer */ 18967431059SAndy Fleming #define CFG_LBC_MRTPR 0x00000000 /* LB refresh timer prescal*/ 19067431059SAndy Fleming 19167431059SAndy Fleming /* 19267431059SAndy Fleming * LSDMR masks 19367431059SAndy Fleming */ 19467431059SAndy Fleming #define CFG_LBC_LSDMR_RFEN (1 << (31 - 1)) 19567431059SAndy Fleming #define CFG_LBC_LSDMR_BSMA1516 (3 << (31 - 10)) 19667431059SAndy Fleming #define CFG_LBC_LSDMR_BSMA1617 (4 << (31 - 10)) 19767431059SAndy Fleming #define CFG_LBC_LSDMR_RFCR16 (7 << (31 - 16)) 19867431059SAndy Fleming #define CFG_LBC_LSDMR_PRETOACT7 (7 << (31 - 19)) 19967431059SAndy Fleming #define CFG_LBC_LSDMR_ACTTORW7 (7 << (31 - 22)) 20067431059SAndy Fleming #define CFG_LBC_LSDMR_ACTTORW6 (6 << (31 - 22)) 20167431059SAndy Fleming #define CFG_LBC_LSDMR_BL8 (1 << (31 - 23)) 20267431059SAndy Fleming #define CFG_LBC_LSDMR_WRC4 (0 << (31 - 27)) 20367431059SAndy Fleming #define CFG_LBC_LSDMR_CL3 (3 << (31 - 31)) 20467431059SAndy Fleming 20567431059SAndy Fleming #define CFG_LBC_LSDMR_OP_NORMAL (0 << (31 - 4)) 20667431059SAndy Fleming #define CFG_LBC_LSDMR_OP_ARFRSH (1 << (31 - 4)) 20767431059SAndy Fleming #define CFG_LBC_LSDMR_OP_SRFRSH (2 << (31 - 4)) 20867431059SAndy Fleming #define CFG_LBC_LSDMR_OP_MRW (3 << (31 - 4)) 20967431059SAndy Fleming #define CFG_LBC_LSDMR_OP_PRECH (4 << (31 - 4)) 21067431059SAndy Fleming #define CFG_LBC_LSDMR_OP_PCHALL (5 << (31 - 4)) 21167431059SAndy Fleming #define CFG_LBC_LSDMR_OP_ACTBNK (6 << (31 - 4)) 21267431059SAndy Fleming #define CFG_LBC_LSDMR_OP_RWINV (7 << (31 - 4)) 21367431059SAndy Fleming 21467431059SAndy Fleming /* 21567431059SAndy Fleming * Common settings for all Local Bus SDRAM commands. 21667431059SAndy Fleming * At run time, either BSMA1516 (for CPU 1.1) 21767431059SAndy Fleming * or BSMA1617 (for CPU 1.0) (old) 21867431059SAndy Fleming * is OR'ed in too. 21967431059SAndy Fleming */ 22067431059SAndy Fleming #define CFG_LBC_LSDMR_COMMON ( CFG_LBC_LSDMR_RFCR16 \ 22167431059SAndy Fleming | CFG_LBC_LSDMR_PRETOACT7 \ 22267431059SAndy Fleming | CFG_LBC_LSDMR_ACTTORW7 \ 22367431059SAndy Fleming | CFG_LBC_LSDMR_BL8 \ 22467431059SAndy Fleming | CFG_LBC_LSDMR_WRC4 \ 22567431059SAndy Fleming | CFG_LBC_LSDMR_CL3 \ 22667431059SAndy Fleming | CFG_LBC_LSDMR_RFEN \ 22767431059SAndy Fleming ) 22867431059SAndy Fleming 22967431059SAndy Fleming /* 23067431059SAndy Fleming * The bcsr registers are connected to CS3 on MDS. 23167431059SAndy Fleming * The new memory map places bcsr at 0xf8000000. 23267431059SAndy Fleming * 23367431059SAndy Fleming * For BR3, need: 23467431059SAndy Fleming * Base address of 0xf8000000 = BR[0:16] = 1111 1000 0000 0000 0 23567431059SAndy Fleming * port-size = 8-bits = BR[19:20] = 01 23667431059SAndy Fleming * no parity checking = BR[21:22] = 00 23767431059SAndy Fleming * GPMC for MSEL = BR[24:26] = 000 23867431059SAndy Fleming * Valid = BR[31] = 1 23967431059SAndy Fleming * 24067431059SAndy Fleming * 0 4 8 12 16 20 24 28 24167431059SAndy Fleming * 1111 1000 0000 0000 0000 1000 0000 0001 = f8000801 24267431059SAndy Fleming * 24367431059SAndy Fleming * For OR3, need: 24467431059SAndy Fleming * 1 MB mask for AM, OR[0:16] = 1111 1111 1111 0000 0 24567431059SAndy Fleming * disable buffer ctrl OR[19] = 0 24667431059SAndy Fleming * CSNT OR[20] = 1 24767431059SAndy Fleming * ACS OR[21:22] = 11 24867431059SAndy Fleming * XACS OR[23] = 1 24967431059SAndy Fleming * SCY 15 wait states OR[24:27] = 1111 max is suboptimal but safe 25067431059SAndy Fleming * SETA OR[28] = 0 25167431059SAndy Fleming * TRLX OR[29] = 1 25267431059SAndy Fleming * EHTR OR[30] = 1 25367431059SAndy Fleming * EAD extra time OR[31] = 1 25467431059SAndy Fleming * 25567431059SAndy Fleming * 0 4 8 12 16 20 24 28 25667431059SAndy Fleming * 1111 1111 1111 0000 0000 1111 1111 0111 = fff00ff7 25767431059SAndy Fleming */ 25867431059SAndy Fleming #define CFG_BCSR (0xf8000000) 25967431059SAndy Fleming 26067431059SAndy Fleming /*Chip slelect 4 - PIB*/ 26167431059SAndy Fleming #define CFG_BR4_PRELIM 0xf8008801 26267431059SAndy Fleming #define CFG_OR4_PRELIM 0xffffe9f7 26367431059SAndy Fleming 26467431059SAndy Fleming /*Chip select 5 - PIB*/ 26567431059SAndy Fleming #define CFG_BR5_PRELIM 0xf8010801 26667431059SAndy Fleming #define CFG_OR5_PRELIM 0xffff69f7 26767431059SAndy Fleming 26867431059SAndy Fleming #define CONFIG_L1_INIT_RAM 26967431059SAndy Fleming #define CFG_INIT_RAM_LOCK 1 27067431059SAndy Fleming #define CFG_INIT_RAM_ADDR 0xe4010000 /* Initial RAM address */ 27167431059SAndy Fleming #define CFG_INIT_RAM_END 0x4000 /* End of used area in RAM */ 27267431059SAndy Fleming 27367431059SAndy Fleming #define CFG_GBL_DATA_SIZE 128 /* num bytes initial data */ 27467431059SAndy Fleming #define CFG_GBL_DATA_OFFSET (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE) 27567431059SAndy Fleming #define CFG_INIT_SP_OFFSET CFG_GBL_DATA_OFFSET 27667431059SAndy Fleming 27767431059SAndy Fleming #define CFG_MONITOR_LEN (256 * 1024) /* Reserve 256 kB for Mon */ 27867431059SAndy Fleming #define CFG_MALLOC_LEN (128 * 1024) /* Reserved for malloc */ 27967431059SAndy Fleming 28067431059SAndy Fleming /* Serial Port */ 28167431059SAndy Fleming #define CONFIG_CONS_INDEX 1 28267431059SAndy Fleming #undef CONFIG_SERIAL_SOFTWARE_FIFO 28367431059SAndy Fleming #define CFG_NS16550 28467431059SAndy Fleming #define CFG_NS16550_SERIAL 28567431059SAndy Fleming #define CFG_NS16550_REG_SIZE 1 28667431059SAndy Fleming #define CFG_NS16550_CLK get_bus_freq(0) 28767431059SAndy Fleming 28867431059SAndy Fleming #define CFG_BAUDRATE_TABLE \ 28967431059SAndy Fleming {300, 600, 1200, 2400, 4800, 9600, 19200, 38400,115200} 29067431059SAndy Fleming 29167431059SAndy Fleming #define CFG_NS16550_COM1 (CFG_CCSRBAR+0x4500) 29267431059SAndy Fleming #define CFG_NS16550_COM2 (CFG_CCSRBAR+0x4600) 29367431059SAndy Fleming 29467431059SAndy Fleming /* Use the HUSH parser*/ 29567431059SAndy Fleming #define CFG_HUSH_PARSER 29667431059SAndy Fleming #ifdef CFG_HUSH_PARSER 29767431059SAndy Fleming #define CFG_PROMPT_HUSH_PS2 "> " 29867431059SAndy Fleming #endif 29967431059SAndy Fleming 30067431059SAndy Fleming /* pass open firmware flat tree */ 301c480861bSKumar Gala #define CONFIG_OF_LIBFDT 1 30267431059SAndy Fleming #define CONFIG_OF_BOARD_SETUP 1 303c480861bSKumar Gala #define CONFIG_OF_STDOUT_VIA_ALIAS 1 30467431059SAndy Fleming 30567431059SAndy Fleming /* 30667431059SAndy Fleming * I2C 30767431059SAndy Fleming */ 30867431059SAndy Fleming #define CONFIG_FSL_I2C /* Use FSL common I2C driver */ 30967431059SAndy Fleming #define CONFIG_HARD_I2C /* I2C with hardware support*/ 31067431059SAndy Fleming #undef CONFIG_SOFT_I2C /* I2C bit-banged */ 311c59e4091SHaiying Wang #define CONFIG_I2C_MULTI_BUS 312c59e4091SHaiying Wang #define CONFIG_I2C_CMD_TREE 31367431059SAndy Fleming #define CFG_I2C_SPEED 400000 /* I2C speed and slave address */ 314c59e4091SHaiying Wang #define CFG_I2C_EEPROM_ADDR 0x52 31567431059SAndy Fleming #define CFG_I2C_SLAVE 0x7F 316da9d4610SAndy Fleming #define CFG_I2C_NOPROBES {{0,0x69}} /* Don't probe these addrs */ 31767431059SAndy Fleming #define CFG_I2C_OFFSET 0x3000 318c59e4091SHaiying Wang #define CFG_I2C2_OFFSET 0x3100 31967431059SAndy Fleming 32067431059SAndy Fleming /* 32167431059SAndy Fleming * General PCI 32267431059SAndy Fleming * Memory Addresses are mapped 1-1. I/O is mapped from 0 32367431059SAndy Fleming */ 32467431059SAndy Fleming #define CFG_PCI1_MEM_BASE 0x80000000 32567431059SAndy Fleming #define CFG_PCI1_MEM_PHYS CFG_PCI1_MEM_BASE 326c59e4091SHaiying Wang #define CFG_PCI1_MEM_SIZE 0x20000000 /* 512M */ 32767431059SAndy Fleming #define CFG_PCI1_IO_BASE 0x00000000 32867431059SAndy Fleming #define CFG_PCI1_IO_PHYS 0xe2000000 32967431059SAndy Fleming #define CFG_PCI1_IO_SIZE 0x00800000 /* 8M */ 33067431059SAndy Fleming 3311563f56eSHaiying Wang #define CFG_PCIE1_MEM_BASE 0xa0000000 3321563f56eSHaiying Wang #define CFG_PCIE1_MEM_PHYS CFG_PCIE1_MEM_BASE 3331563f56eSHaiying Wang #define CFG_PCIE1_MEM_SIZE 0x20000000 /* 512M */ 3341563f56eSHaiying Wang #define CFG_PCIE1_IO_BASE 0x00000000 3351563f56eSHaiying Wang #define CFG_PCIE1_IO_PHYS 0xe2800000 3361563f56eSHaiying Wang #define CFG_PCIE1_IO_SIZE 0x00800000 /* 8M */ 33767431059SAndy Fleming 33867431059SAndy Fleming #define CFG_SRIO_MEM_BASE 0xc0000000 33967431059SAndy Fleming 340da9d4610SAndy Fleming #ifdef CONFIG_QE 341da9d4610SAndy Fleming /* 342da9d4610SAndy Fleming * QE UEC ethernet configuration 343da9d4610SAndy Fleming */ 344da9d4610SAndy Fleming #define CONFIG_UEC_ETH 345da9d4610SAndy Fleming #ifndef CONFIG_TSEC_ENET 346b96c83d4SAndy Fleming #define CONFIG_ETHPRIME "FSL UEC0" 347da9d4610SAndy Fleming #endif 348da9d4610SAndy Fleming #define CONFIG_PHY_MODE_NEED_CHANGE 349da9d4610SAndy Fleming #define CONFIG_eTSEC_MDIO_BUS 350da9d4610SAndy Fleming 351da9d4610SAndy Fleming #ifdef CONFIG_eTSEC_MDIO_BUS 352da9d4610SAndy Fleming #define CONFIG_MIIM_ADDRESS 0xE0024520 353da9d4610SAndy Fleming #endif 354da9d4610SAndy Fleming 355da9d4610SAndy Fleming #define CONFIG_UEC_ETH1 /* GETH1 */ 356da9d4610SAndy Fleming 357da9d4610SAndy Fleming #ifdef CONFIG_UEC_ETH1 358da9d4610SAndy Fleming #define CFG_UEC1_UCC_NUM 0 /* UCC1 */ 359da9d4610SAndy Fleming #define CFG_UEC1_RX_CLK QE_CLK_NONE 360da9d4610SAndy Fleming #define CFG_UEC1_TX_CLK QE_CLK16 361da9d4610SAndy Fleming #define CFG_UEC1_ETH_TYPE GIGA_ETH 362da9d4610SAndy Fleming #define CFG_UEC1_PHY_ADDR 7 363da9d4610SAndy Fleming #define CFG_UEC1_INTERFACE_MODE ENET_1000_GMII 364da9d4610SAndy Fleming #endif 365da9d4610SAndy Fleming 366da9d4610SAndy Fleming #define CONFIG_UEC_ETH2 /* GETH2 */ 367da9d4610SAndy Fleming 368da9d4610SAndy Fleming #ifdef CONFIG_UEC_ETH2 369da9d4610SAndy Fleming #define CFG_UEC2_UCC_NUM 1 /* UCC2 */ 370da9d4610SAndy Fleming #define CFG_UEC2_RX_CLK QE_CLK_NONE 371da9d4610SAndy Fleming #define CFG_UEC2_TX_CLK QE_CLK16 372da9d4610SAndy Fleming #define CFG_UEC2_ETH_TYPE GIGA_ETH 373da9d4610SAndy Fleming #define CFG_UEC2_PHY_ADDR 1 374da9d4610SAndy Fleming #define CFG_UEC2_INTERFACE_MODE ENET_1000_GMII 375da9d4610SAndy Fleming #endif 376da9d4610SAndy Fleming #endif /* CONFIG_QE */ 377da9d4610SAndy Fleming 378f30ad49bSHaiying Wang #if defined(CONFIG_PCI) 379f30ad49bSHaiying Wang 380f30ad49bSHaiying Wang #define CONFIG_NET_MULTI 381f30ad49bSHaiying Wang #define CONFIG_PCI_PNP /* do pci plug-and-play */ 382f30ad49bSHaiying Wang 38367431059SAndy Fleming #undef CONFIG_EEPRO100 38467431059SAndy Fleming #undef CONFIG_TULIP 38567431059SAndy Fleming 38667431059SAndy Fleming #undef CONFIG_PCI_SCAN_SHOW /* show pci devices on startup */ 38767431059SAndy Fleming #define CFG_PCI_SUBSYS_VENDORID 0x1057 /* Motorola */ 38867431059SAndy Fleming 3891563f56eSHaiying Wang /* PCI view of System Memory */ 3901563f56eSHaiying Wang #define CFG_PCI_MEMORY_BUS 0x00000000 3911563f56eSHaiying Wang #define CFG_PCI_MEMORY_PHYS 0x00000000 3921563f56eSHaiying Wang #define CFG_PCI_MEMORY_SIZE 0x80000000 3931563f56eSHaiying Wang 39467431059SAndy Fleming #endif /* CONFIG_PCI */ 39567431059SAndy Fleming 39667431059SAndy Fleming #ifndef CONFIG_NET_MULTI 39767431059SAndy Fleming #define CONFIG_NET_MULTI 1 39867431059SAndy Fleming #endif 39967431059SAndy Fleming 400da9d4610SAndy Fleming #if defined(CONFIG_TSEC_ENET) 401da9d4610SAndy Fleming 40267431059SAndy Fleming #define CONFIG_MII 1 /* MII PHY management */ 403255a3577SKim Phillips #define CONFIG_TSEC1 1 404255a3577SKim Phillips #define CONFIG_TSEC1_NAME "eTSEC0" 405255a3577SKim Phillips #define CONFIG_TSEC2 1 406255a3577SKim Phillips #define CONFIG_TSEC2_NAME "eTSEC1" 40767431059SAndy Fleming 40867431059SAndy Fleming #define TSEC1_PHY_ADDR 2 40967431059SAndy Fleming #define TSEC2_PHY_ADDR 3 41067431059SAndy Fleming 41167431059SAndy Fleming #define TSEC1_PHYIDX 0 41267431059SAndy Fleming #define TSEC2_PHYIDX 0 41367431059SAndy Fleming 4143a79013eSAndy Fleming #define TSEC1_FLAGS TSEC_GIGABIT 4153a79013eSAndy Fleming #define TSEC2_FLAGS TSEC_GIGABIT 4163a79013eSAndy Fleming 417b96c83d4SAndy Fleming /* Options are: eTSEC[0-1] */ 41867431059SAndy Fleming #define CONFIG_ETHPRIME "eTSEC0" 41967431059SAndy Fleming 42067431059SAndy Fleming #endif /* CONFIG_TSEC_ENET */ 42167431059SAndy Fleming 42267431059SAndy Fleming /* 42367431059SAndy Fleming * Environment 42467431059SAndy Fleming */ 42567431059SAndy Fleming #define CFG_ENV_IS_IN_FLASH 1 42667431059SAndy Fleming #define CFG_ENV_ADDR (CFG_MONITOR_BASE + 0x40000) 42767431059SAndy Fleming #define CFG_ENV_SECT_SIZE 0x40000 /* 256K(one sector) for env */ 42867431059SAndy Fleming #define CFG_ENV_SIZE 0x2000 42967431059SAndy Fleming 43067431059SAndy Fleming #define CONFIG_LOADS_ECHO 1 /* echo on for serial download */ 43167431059SAndy Fleming #define CFG_LOADS_BAUD_CHANGE 1 /* allow baudrate change */ 43267431059SAndy Fleming 4332835e518SJon Loeliger 4342835e518SJon Loeliger /* 435079a136cSJon Loeliger * BOOTP options 436079a136cSJon Loeliger */ 437079a136cSJon Loeliger #define CONFIG_BOOTP_BOOTFILESIZE 438079a136cSJon Loeliger #define CONFIG_BOOTP_BOOTPATH 439079a136cSJon Loeliger #define CONFIG_BOOTP_GATEWAY 440079a136cSJon Loeliger #define CONFIG_BOOTP_HOSTNAME 441079a136cSJon Loeliger 442079a136cSJon Loeliger 443079a136cSJon Loeliger /* 4442835e518SJon Loeliger * Command line configuration. 4452835e518SJon Loeliger */ 4462835e518SJon Loeliger #include <config_cmd_default.h> 4472835e518SJon Loeliger 4482835e518SJon Loeliger #define CONFIG_CMD_PING 4492835e518SJon Loeliger #define CONFIG_CMD_I2C 4502835e518SJon Loeliger #define CONFIG_CMD_MII 45182ac8c97SKumar Gala #define CONFIG_CMD_ELF 4522835e518SJon Loeliger 45367431059SAndy Fleming #if defined(CONFIG_PCI) 4542835e518SJon Loeliger #define CONFIG_CMD_PCI 45567431059SAndy Fleming #endif 4562835e518SJon Loeliger 45767431059SAndy Fleming 45867431059SAndy Fleming #undef CONFIG_WATCHDOG /* watchdog disabled */ 45967431059SAndy Fleming 46067431059SAndy Fleming /* 46167431059SAndy Fleming * Miscellaneous configurable options 46267431059SAndy Fleming */ 46367431059SAndy Fleming #define CFG_LONGHELP /* undef to save memory */ 46422abb2d2SKumar Gala #define CONFIG_CMDLINE_EDITING /* Command-line editing */ 46567431059SAndy Fleming #define CFG_LOAD_ADDR 0x2000000 /* default load address */ 46667431059SAndy Fleming #define CFG_PROMPT "=> " /* Monitor Command Prompt */ 4672835e518SJon Loeliger #if defined(CONFIG_CMD_KGDB) 46867431059SAndy Fleming #define CFG_CBSIZE 1024 /* Console I/O Buffer Size */ 46967431059SAndy Fleming #else 47067431059SAndy Fleming #define CFG_CBSIZE 256 /* Console I/O Buffer Size */ 47167431059SAndy Fleming #endif 47267431059SAndy Fleming #define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */ 47367431059SAndy Fleming #define CFG_MAXARGS 16 /* max number of command args */ 47467431059SAndy Fleming #define CFG_BARGSIZE CFG_CBSIZE /* Boot Argument Buffer Size */ 47567431059SAndy Fleming #define CFG_HZ 1000 /* decrementer freq: 1ms ticks */ 47667431059SAndy Fleming 47767431059SAndy Fleming /* 47867431059SAndy Fleming * For booting Linux, the board info and command line data 47967431059SAndy Fleming * have to be in the first 8 MB of memory, since this is 48067431059SAndy Fleming * the maximum mapped by the Linux kernel during initialization. 48167431059SAndy Fleming */ 48267431059SAndy Fleming #define CFG_BOOTMAPSZ (8 << 20) /* Initial Memory map for Linux*/ 48367431059SAndy Fleming 48467431059SAndy Fleming /* 48567431059SAndy Fleming * Internal Definitions 48667431059SAndy Fleming * 48767431059SAndy Fleming * Boot Flags 48867431059SAndy Fleming */ 48967431059SAndy Fleming #define BOOTFLAG_COLD 0x01 /* Normal Power-On: Boot from FLASH */ 49067431059SAndy Fleming #define BOOTFLAG_WARM 0x02 /* Software reboot */ 49167431059SAndy Fleming 4922835e518SJon Loeliger #if defined(CONFIG_CMD_KGDB) 49367431059SAndy Fleming #define CONFIG_KGDB_BAUDRATE 230400 /* speed to run kgdb serial port */ 49467431059SAndy Fleming #define CONFIG_KGDB_SER_INDEX 2 /* which serial port to use */ 49567431059SAndy Fleming #endif 49667431059SAndy Fleming 49767431059SAndy Fleming /* 49867431059SAndy Fleming * Environment Configuration 49967431059SAndy Fleming */ 50067431059SAndy Fleming 50167431059SAndy Fleming /* The mac addresses for all ethernet interface */ 502da9d4610SAndy Fleming #if defined(CONFIG_TSEC_ENET) || defined(CONFIG_UEC_ETH) 503da9d4610SAndy Fleming #define CONFIG_HAS_ETH0 50467431059SAndy Fleming #define CONFIG_ETHADDR 00:E0:0C:00:00:FD 50567431059SAndy Fleming #define CONFIG_HAS_ETH1 50667431059SAndy Fleming #define CONFIG_ETH1ADDR 00:E0:0C:00:01:FD 50767431059SAndy Fleming #define CONFIG_HAS_ETH2 50867431059SAndy Fleming #define CONFIG_ETH2ADDR 00:E0:0C:00:02:FD 509da9d4610SAndy Fleming #define CONFIG_HAS_ETH3 510da9d4610SAndy Fleming #define CONFIG_ETH3ADDR 00:E0:0C:00:03:FD 51167431059SAndy Fleming #endif 51267431059SAndy Fleming 51367431059SAndy Fleming #define CONFIG_IPADDR 192.168.1.253 51467431059SAndy Fleming 51567431059SAndy Fleming #define CONFIG_HOSTNAME unknown 51667431059SAndy Fleming #define CONFIG_ROOTPATH /nfsroot 51767431059SAndy Fleming #define CONFIG_BOOTFILE your.uImage 51867431059SAndy Fleming 51967431059SAndy Fleming #define CONFIG_SERVERIP 192.168.1.1 52067431059SAndy Fleming #define CONFIG_GATEWAYIP 192.168.1.1 52167431059SAndy Fleming #define CONFIG_NETMASK 255.255.255.0 52267431059SAndy Fleming 52367431059SAndy Fleming #define CONFIG_LOADADDR 200000 /*default location for tftp and bootm*/ 52467431059SAndy Fleming 52567431059SAndy Fleming #define CONFIG_BOOTDELAY 10 /* -1 disables auto-boot */ 52667431059SAndy Fleming #undef CONFIG_BOOTARGS /* the boot command will set bootargs*/ 52767431059SAndy Fleming 52867431059SAndy Fleming #define CONFIG_BAUDRATE 115200 52967431059SAndy Fleming 53067431059SAndy Fleming #define CONFIG_EXTRA_ENV_SETTINGS \ 53167431059SAndy Fleming "netdev=eth0\0" \ 53267431059SAndy Fleming "consoledev=ttyS0\0" \ 53367431059SAndy Fleming "ramdiskaddr=600000\0" \ 53467431059SAndy Fleming "ramdiskfile=your.ramdisk.u-boot\0" \ 53567431059SAndy Fleming "fdtaddr=400000\0" \ 53667431059SAndy Fleming "fdtfile=your.fdt.dtb\0" \ 53767431059SAndy Fleming "nfsargs=setenv bootargs root=/dev/nfs rw " \ 53867431059SAndy Fleming "nfsroot=$serverip:$rootpath " \ 53967431059SAndy Fleming "ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname:$netdev:off " \ 54067431059SAndy Fleming "console=$consoledev,$baudrate $othbootargs\0" \ 54167431059SAndy Fleming "ramargs=setenv bootargs root=/dev/ram rw " \ 54267431059SAndy Fleming "console=$consoledev,$baudrate $othbootargs\0" \ 54367431059SAndy Fleming 54467431059SAndy Fleming 54567431059SAndy Fleming #define CONFIG_NFSBOOTCOMMAND \ 54667431059SAndy Fleming "run nfsargs;" \ 54767431059SAndy Fleming "tftp $loadaddr $bootfile;" \ 54867431059SAndy Fleming "tftp $fdtaddr $fdtfile;" \ 54967431059SAndy Fleming "bootm $loadaddr - $fdtaddr" 55067431059SAndy Fleming 55167431059SAndy Fleming 55267431059SAndy Fleming #define CONFIG_RAMBOOTCOMMAND \ 55367431059SAndy Fleming "run ramargs;" \ 55467431059SAndy Fleming "tftp $ramdiskaddr $ramdiskfile;" \ 55567431059SAndy Fleming "tftp $loadaddr $bootfile;" \ 55667431059SAndy Fleming "bootm $loadaddr $ramdiskaddr" 55767431059SAndy Fleming 55867431059SAndy Fleming #define CONFIG_BOOTCOMMAND CONFIG_NFSBOOTCOMMAND 55967431059SAndy Fleming 56067431059SAndy Fleming #endif /* __CONFIG_H */ 561