191e25769SPaul Gortmaker /* 291e25769SPaul Gortmaker * WindRiver SBC8349 U-Boot configuration file. 391e25769SPaul Gortmaker * Copyright (c) 2006, 2007 Wind River Systems, Inc. 491e25769SPaul Gortmaker * 591e25769SPaul Gortmaker * Paul Gortmaker <paul.gortmaker@windriver.com> 691e25769SPaul Gortmaker * Based on the MPC8349EMDS config. 791e25769SPaul Gortmaker * 891e25769SPaul Gortmaker * See file CREDITS for list of people who contributed to this 991e25769SPaul Gortmaker * project. 1091e25769SPaul Gortmaker * 1191e25769SPaul Gortmaker * This program is free software; you can redistribute it and/or 1291e25769SPaul Gortmaker * modify it under the terms of the GNU General Public License as 1391e25769SPaul Gortmaker * published by the Free Software Foundation; either version 2 of 1491e25769SPaul Gortmaker * the License, or (at your option) any later version. 1591e25769SPaul Gortmaker * 1691e25769SPaul Gortmaker * This program is distributed in the hope that it will be useful, 1791e25769SPaul Gortmaker * but WITHOUT ANY WARRANTY; without even the implied warranty of 1891e25769SPaul Gortmaker * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1991e25769SPaul Gortmaker * GNU General Public License for more details. 2091e25769SPaul Gortmaker * 2191e25769SPaul Gortmaker * You should have received a copy of the GNU General Public License 2291e25769SPaul Gortmaker * along with this program; if not, write to the Free Software 2391e25769SPaul Gortmaker * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 2491e25769SPaul Gortmaker * MA 02111-1307 USA 2591e25769SPaul Gortmaker */ 2691e25769SPaul Gortmaker 2791e25769SPaul Gortmaker /* 2891e25769SPaul Gortmaker * sbc8349 board configuration file. 2991e25769SPaul Gortmaker */ 3091e25769SPaul Gortmaker 3191e25769SPaul Gortmaker #ifndef __CONFIG_H 3291e25769SPaul Gortmaker #define __CONFIG_H 3391e25769SPaul Gortmaker 3491e25769SPaul Gortmaker /* 35*00ec0ff5SPaul Gortmaker * Top level Makefile configuration choices 36*00ec0ff5SPaul Gortmaker */ 37*00ec0ff5SPaul Gortmaker #ifdef CONFIG_MK_PCI 38*00ec0ff5SPaul Gortmaker #define CONFIG_PCI 39*00ec0ff5SPaul Gortmaker #endif 40*00ec0ff5SPaul Gortmaker 41*00ec0ff5SPaul Gortmaker #ifdef CONFIG_MK_66 42*00ec0ff5SPaul Gortmaker #define PCI_66M 43*00ec0ff5SPaul Gortmaker #endif 44*00ec0ff5SPaul Gortmaker 45*00ec0ff5SPaul Gortmaker #ifdef CONFIG_MK_33 46*00ec0ff5SPaul Gortmaker #define PCI_33M 47*00ec0ff5SPaul Gortmaker #endif 48*00ec0ff5SPaul Gortmaker 49*00ec0ff5SPaul Gortmaker /* 5091e25769SPaul Gortmaker * High Level Configuration Options 5191e25769SPaul Gortmaker */ 5291e25769SPaul Gortmaker #define CONFIG_E300 1 /* E300 Family */ 530f898604SPeter Tyser #define CONFIG_MPC83xx 1 /* MPC83xx family */ 542c7920afSPeter Tyser #define CONFIG_MPC834x 1 /* MPC834x family */ 5591e25769SPaul Gortmaker #define CONFIG_MPC8349 1 /* MPC8349 specific */ 5691e25769SPaul Gortmaker #define CONFIG_SBC8349 1 /* WRS SBC8349 board specific */ 5791e25769SPaul Gortmaker 5891e25769SPaul Gortmaker /* Don't enable PCI2 on sbc834x - it doesn't exist physically. */ 5991e25769SPaul Gortmaker #undef CONFIG_MPC83XX_PCI2 /* support for 2nd PCI controller */ 6091e25769SPaul Gortmaker 61c0d660fbSPaul Gortmaker /* 62c0d660fbSPaul Gortmaker * The default if PCI isn't enabled, or if no PCI clk setting is given 63c0d660fbSPaul Gortmaker * is 66MHz; this is what the board defaults to when the PCI slot is 64c0d660fbSPaul Gortmaker * physically empty. The board will automatically (i.e w/o jumpers) 65c0d660fbSPaul Gortmaker * clock down to 33MHz if you insert a 33MHz PCI card. 66c0d660fbSPaul Gortmaker */ 67c0d660fbSPaul Gortmaker #ifdef PCI_33M 6891e25769SPaul Gortmaker #define CONFIG_83XX_CLKIN 33000000 /* in Hz */ 69c0d660fbSPaul Gortmaker #else /* 66M */ 70c0d660fbSPaul Gortmaker #define CONFIG_83XX_CLKIN 66000000 /* in Hz */ 7191e25769SPaul Gortmaker #endif 7291e25769SPaul Gortmaker 7391e25769SPaul Gortmaker #ifndef CONFIG_SYS_CLK_FREQ 74c0d660fbSPaul Gortmaker #ifdef PCI_33M 7591e25769SPaul Gortmaker #define CONFIG_SYS_CLK_FREQ 33000000 7691e25769SPaul Gortmaker #define HRCWL_CSB_TO_CLKIN HRCWL_CSB_TO_CLKIN_8X1 77c0d660fbSPaul Gortmaker #else /* 66M */ 78c0d660fbSPaul Gortmaker #define CONFIG_SYS_CLK_FREQ 66000000 79c0d660fbSPaul Gortmaker #define HRCWL_CSB_TO_CLKIN HRCWL_CSB_TO_CLKIN_4X1 8091e25769SPaul Gortmaker #endif 8191e25769SPaul Gortmaker #endif 8291e25769SPaul Gortmaker 8391e25769SPaul Gortmaker #undef CONFIG_BOARD_EARLY_INIT_F /* call board_pre_init */ 8491e25769SPaul Gortmaker 856d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_IMMR 0xE0000000 8691e25769SPaul Gortmaker 876d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #undef CONFIG_SYS_DRAM_TEST /* memory test, takes time */ 886d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MEMTEST_START 0x00000000 /* memtest region */ 896d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MEMTEST_END 0x00100000 9091e25769SPaul Gortmaker 9191e25769SPaul Gortmaker /* 9291e25769SPaul Gortmaker * DDR Setup 9391e25769SPaul Gortmaker */ 9491e25769SPaul Gortmaker #undef CONFIG_DDR_ECC /* only for ECC DDR module */ 9591e25769SPaul Gortmaker #undef CONFIG_DDR_ECC_CMD /* use DDR ECC user commands */ 9691e25769SPaul Gortmaker #define CONFIG_SPD_EEPROM /* use SPD EEPROM for DDR setup*/ 976d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_83XX_DDR_USES_CS0 /* WRS; Fsl board uses CS2/CS3 */ 9891e25769SPaul Gortmaker 9991e25769SPaul Gortmaker /* 10091e25769SPaul Gortmaker * 32-bit data path mode. 10191e25769SPaul Gortmaker * 10291e25769SPaul Gortmaker * Please note that using this mode for devices with the real density of 64-bit 10391e25769SPaul Gortmaker * effectively reduces the amount of available memory due to the effect of 10491e25769SPaul Gortmaker * wrapping around while translating address to row/columns, for example in the 10591e25769SPaul Gortmaker * 256MB module the upper 128MB get aliased with contents of the lower 10691e25769SPaul Gortmaker * 128MB); normally this define should be used for devices with real 32-bit 10791e25769SPaul Gortmaker * data path. 10891e25769SPaul Gortmaker */ 10991e25769SPaul Gortmaker #undef CONFIG_DDR_32BIT 11091e25769SPaul Gortmaker 1116d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_BASE 0x00000000 /* DDR is system memory*/ 1126d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_SDRAM_BASE CONFIG_SYS_DDR_BASE 1136d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_SDRAM_BASE CONFIG_SYS_DDR_BASE 1146d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_SDRAM_CLK_CNTL (DDR_SDRAM_CLK_CNTL_SS_EN | \ 11591e25769SPaul Gortmaker DDR_SDRAM_CLK_CNTL_CLK_ADJUST_075) 11691e25769SPaul Gortmaker #define CONFIG_DDR_2T_TIMING 11791e25769SPaul Gortmaker 11891e25769SPaul Gortmaker #if defined(CONFIG_SPD_EEPROM) 11991e25769SPaul Gortmaker /* 12091e25769SPaul Gortmaker * Determine DDR configuration from I2C interface. 12191e25769SPaul Gortmaker */ 12291e25769SPaul Gortmaker #define SPD_EEPROM_ADDRESS 0x52 /* DDR DIMM */ 12391e25769SPaul Gortmaker 12491e25769SPaul Gortmaker #else 12591e25769SPaul Gortmaker /* 12691e25769SPaul Gortmaker * Manually set up DDR parameters 12791e25769SPaul Gortmaker * NB: manual DDR setup untested on sbc834x 12891e25769SPaul Gortmaker */ 1296d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_SIZE 256 /* MB */ 1306d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_CONFIG (CSCONFIG_EN | CSCONFIG_ROW_BIT_13 | CSCONFIG_COL_BIT_10) 1316d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_TIMING_1 0x36332321 1326d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_TIMING_2 0x00000800 /* P9-45,may need tuning */ 1336d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_CONTROL 0xc2000000 /* unbuffered,no DYN_PWR */ 1346d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_INTERVAL 0x04060100 /* autocharge,no open page */ 13591e25769SPaul Gortmaker 13691e25769SPaul Gortmaker #if defined(CONFIG_DDR_32BIT) 13791e25769SPaul Gortmaker /* set burst length to 8 for 32-bit data path */ 1386d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_MODE 0x00000023 /* DLL,normal,seq,4/2.5, 8 burst len */ 13991e25769SPaul Gortmaker #else 14091e25769SPaul Gortmaker /* the default burst length is 4 - for 64-bit data path */ 1416d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_MODE 0x00000022 /* DLL,normal,seq,4/2.5, 4 burst len */ 14291e25769SPaul Gortmaker #endif 14391e25769SPaul Gortmaker #endif 14491e25769SPaul Gortmaker 14591e25769SPaul Gortmaker /* 14691e25769SPaul Gortmaker * SDRAM on the Local Bus 14791e25769SPaul Gortmaker */ 1486d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_LBC_SDRAM_BASE 0x10000000 /* Localbus SDRAM */ 1496d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_LBC_SDRAM_SIZE 128 /* LBC SDRAM is 128MB */ 15091e25769SPaul Gortmaker 15191e25769SPaul Gortmaker /* 15291e25769SPaul Gortmaker * FLASH on the Local Bus 15391e25769SPaul Gortmaker */ 1546d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_FLASH_CFI /* use the Common Flash Interface */ 15500b1883aSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_FLASH_CFI_DRIVER /* use the CFI driver */ 1566d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_FLASH_BASE 0xFF800000 /* start of FLASH */ 1576d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_FLASH_SIZE 8 /* flash size in MB */ 1586d0f6bcfSJean-Christophe PLAGNIOL-VILLARD /* #define CONFIG_SYS_FLASH_USE_BUFFER_WRITE */ 15991e25769SPaul Gortmaker 1606d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_BR0_PRELIM (CONFIG_SYS_FLASH_BASE | /* flash Base address */ \ 16191e25769SPaul Gortmaker (2 << BR_PS_SHIFT) | /* 32 bit port size */ \ 16291e25769SPaul Gortmaker BR_V) /* valid */ 16391e25769SPaul Gortmaker 1646d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_OR0_PRELIM 0xFF806FF7 /* 8 MB flash size */ 1656d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_LBLAWBAR0_PRELIM CONFIG_SYS_FLASH_BASE /* window base at flash base */ 1666d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_LBLAWAR0_PRELIM 0x80000016 /* 8 MB window size */ 16791e25769SPaul Gortmaker 1686d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MAX_FLASH_BANKS 1 /* number of banks */ 1696d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MAX_FLASH_SECT 64 /* sectors per device */ 17091e25769SPaul Gortmaker 1716d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #undef CONFIG_SYS_FLASH_CHECKSUM 1726d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_FLASH_ERASE_TOUT 60000 /* Flash Erase Timeout (ms) */ 1736d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_FLASH_WRITE_TOUT 500 /* Flash Write Timeout (ms) */ 17491e25769SPaul Gortmaker 1756d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MONITOR_BASE TEXT_BASE /* start of monitor */ 17691e25769SPaul Gortmaker 1776d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE) 1786d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_RAMBOOT 17991e25769SPaul Gortmaker #else 1806d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #undef CONFIG_SYS_RAMBOOT 18191e25769SPaul Gortmaker #endif 18291e25769SPaul Gortmaker 1836d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_INIT_RAM_LOCK 1 1846d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_INIT_RAM_ADDR 0xFD000000 /* Initial RAM address */ 1856d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_INIT_RAM_END 0x1000 /* End of used area in RAM*/ 18691e25769SPaul Gortmaker 1876d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_GBL_DATA_SIZE 0x100 /* num bytes initial data */ 1886d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE) 1896d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET 19091e25769SPaul Gortmaker 1916d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MONITOR_LEN (256 * 1024) /* Reserve 256 kB for Mon */ 1926d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MALLOC_LEN (128 * 1024) /* Reserved for malloc */ 19391e25769SPaul Gortmaker 19491e25769SPaul Gortmaker /* 19591e25769SPaul Gortmaker * Local Bus LCRR and LBCR regs 19691e25769SPaul Gortmaker * LCRR: DLL bypass, Clock divider is 4 19791e25769SPaul Gortmaker * External Local Bus rate is 19891e25769SPaul Gortmaker * CLKIN * HRCWL_CSB_TO_CLKIN / HRCWL_LCL_BUS_TO_SCB_CLK / LCRR_CLKDIV 19991e25769SPaul Gortmaker */ 2006d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_LCRR (LCRR_DBYP | LCRR_CLKDIV_4) 2016d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_LBC_LBCR 0x00000000 20291e25769SPaul Gortmaker 2036d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #undef CONFIG_SYS_LB_SDRAM /* if board has SDRAM on local bus */ 20491e25769SPaul Gortmaker 2056d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #ifdef CONFIG_SYS_LB_SDRAM 20691e25769SPaul Gortmaker /* Local bus BR2, OR2 definition for SDRAM if soldered on the board*/ 20791e25769SPaul Gortmaker /* 20891e25769SPaul Gortmaker * Base Register 2 and Option Register 2 configure SDRAM. 2096d0f6bcfSJean-Christophe PLAGNIOL-VILLARD * The SDRAM base address, CONFIG_SYS_LBC_SDRAM_BASE, is 0xf0000000. 21091e25769SPaul Gortmaker * 21191e25769SPaul Gortmaker * For BR2, need: 21291e25769SPaul Gortmaker * Base address of 0xf0000000 = BR[0:16] = 1111 0000 0000 0000 0 21391e25769SPaul Gortmaker * port-size = 32-bits = BR2[19:20] = 11 21491e25769SPaul Gortmaker * no parity checking = BR2[21:22] = 00 21591e25769SPaul Gortmaker * SDRAM for MSEL = BR2[24:26] = 011 21691e25769SPaul Gortmaker * Valid = BR[31] = 1 21791e25769SPaul Gortmaker * 21891e25769SPaul Gortmaker * 0 4 8 12 16 20 24 28 21991e25769SPaul Gortmaker * 1111 0000 0000 0000 0001 1000 0110 0001 = F0001861 22091e25769SPaul Gortmaker * 2216d0f6bcfSJean-Christophe PLAGNIOL-VILLARD * FIXME: CONFIG_SYS_LBC_SDRAM_BASE should be masked and OR'ed into 22291e25769SPaul Gortmaker * FIXME: the top 17 bits of BR2. 22391e25769SPaul Gortmaker */ 22491e25769SPaul Gortmaker 2256d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_BR2_PRELIM 0xF0001861 /* Port-size=32bit, MSEL=SDRAM */ 2266d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_LBLAWBAR2_PRELIM 0xF0000000 2276d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_LBLAWAR2_PRELIM 0x80000019 /* 64M */ 22891e25769SPaul Gortmaker 22991e25769SPaul Gortmaker /* 2306d0f6bcfSJean-Christophe PLAGNIOL-VILLARD * The SDRAM size in MB, CONFIG_SYS_LBC_SDRAM_SIZE, is 64. 23191e25769SPaul Gortmaker * 23291e25769SPaul Gortmaker * For OR2, need: 23391e25769SPaul Gortmaker * 64MB mask for AM, OR2[0:7] = 1111 1100 23491e25769SPaul Gortmaker * XAM, OR2[17:18] = 11 23591e25769SPaul Gortmaker * 9 columns OR2[19-21] = 010 23691e25769SPaul Gortmaker * 13 rows OR2[23-25] = 100 23791e25769SPaul Gortmaker * EAD set for extra time OR[31] = 1 23891e25769SPaul Gortmaker * 23991e25769SPaul Gortmaker * 0 4 8 12 16 20 24 28 24091e25769SPaul Gortmaker * 1111 1100 0000 0000 0110 1001 0000 0001 = FC006901 24191e25769SPaul Gortmaker */ 24291e25769SPaul Gortmaker 2436d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_OR2_PRELIM 0xFC006901 24491e25769SPaul Gortmaker 2456d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_LBC_LSRT 0x32000000 /* LB sdram refresh timer, about 6us */ 2466d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_LBC_MRTPR 0x20000000 /* LB refresh timer prescal, 266MHz/32 */ 24791e25769SPaul Gortmaker 248540dcf1cSKumar Gala #define CONFIG_SYS_LBC_LSDMR_COMMON ( LSDMR_RFEN \ 249540dcf1cSKumar Gala | LSDMR_BSMA1516 \ 250540dcf1cSKumar Gala | LSDMR_RFCR8 \ 251540dcf1cSKumar Gala | LSDMR_PRETOACT6 \ 252540dcf1cSKumar Gala | LSDMR_ACTTORW3 \ 253540dcf1cSKumar Gala | LSDMR_BL8 \ 254540dcf1cSKumar Gala | LSDMR_WRC3 \ 255540dcf1cSKumar Gala | LSDMR_CL3 \ 25691e25769SPaul Gortmaker ) 25791e25769SPaul Gortmaker 25891e25769SPaul Gortmaker /* 25991e25769SPaul Gortmaker * SDRAM Controller configuration sequence. 26091e25769SPaul Gortmaker */ 261540dcf1cSKumar Gala #define CONFIG_SYS_LBC_LSDMR_1 (CONFIG_SYS_LBC_LSDMR_COMMON | LSDMR_OP_PCHALL) 262540dcf1cSKumar Gala #define CONFIG_SYS_LBC_LSDMR_2 (CONFIG_SYS_LBC_LSDMR_COMMON | LSDMR_OP_ARFRSH) 263540dcf1cSKumar Gala #define CONFIG_SYS_LBC_LSDMR_3 (CONFIG_SYS_LBC_LSDMR_COMMON | LSDMR_OP_ARFRSH) 264540dcf1cSKumar Gala #define CONFIG_SYS_LBC_LSDMR_4 (CONFIG_SYS_LBC_LSDMR_COMMON | LSDMR_OP_MRW) 265540dcf1cSKumar Gala #define CONFIG_SYS_LBC_LSDMR_5 (CONFIG_SYS_LBC_LSDMR_COMMON | LSDMR_OP_NORMAL) 26691e25769SPaul Gortmaker #endif 26791e25769SPaul Gortmaker 26891e25769SPaul Gortmaker /* 26991e25769SPaul Gortmaker * Serial Port 27091e25769SPaul Gortmaker */ 27191e25769SPaul Gortmaker #define CONFIG_CONS_INDEX 1 27291e25769SPaul Gortmaker #undef CONFIG_SERIAL_SOFTWARE_FIFO 2736d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_NS16550 2746d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_NS16550_SERIAL 2756d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_NS16550_REG_SIZE 1 2766d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_NS16550_CLK get_bus_freq(0) 27791e25769SPaul Gortmaker 2786d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_BAUDRATE_TABLE \ 27991e25769SPaul Gortmaker {300, 600, 1200, 2400, 4800, 9600, 19200, 38400,115200} 28091e25769SPaul Gortmaker 2816d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_NS16550_COM1 (CONFIG_SYS_IMMR+0x4500) 2826d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_NS16550_COM2 (CONFIG_SYS_IMMR+0x4600) 28391e25769SPaul Gortmaker 28422d71a71SKim Phillips #define CONFIG_CMDLINE_EDITING 1 /* add command line history */ 28591e25769SPaul Gortmaker /* Use the HUSH parser */ 2866d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_HUSH_PARSER 2876d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #ifdef CONFIG_SYS_HUSH_PARSER 2886d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PROMPT_HUSH_PS2 "> " 28991e25769SPaul Gortmaker #endif 29091e25769SPaul Gortmaker 29191e25769SPaul Gortmaker /* pass open firmware flat tree */ 292e496865eSPaul Gortmaker #define CONFIG_OF_LIBFDT 1 29391e25769SPaul Gortmaker #define CONFIG_OF_BOARD_SETUP 1 2945b8bc606SKim Phillips #define CONFIG_OF_STDOUT_VIA_ALIAS 1 29591e25769SPaul Gortmaker 29691e25769SPaul Gortmaker /* I2C */ 29791e25769SPaul Gortmaker #define CONFIG_HARD_I2C /* I2C with hardware support*/ 29891e25769SPaul Gortmaker #undef CONFIG_SOFT_I2C /* I2C bit-banged */ 29991e25769SPaul Gortmaker #define CONFIG_FSL_I2C 3006d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_I2C_SPEED 400000 /* I2C speed and slave address */ 3016d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_I2C_SLAVE 0x7F 3026d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_I2C_NOPROBES {0x69} /* Don't probe these addrs */ 3036d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_I2C1_OFFSET 0x3000 3046d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_I2C2_OFFSET 0x3100 3056d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_I2C_OFFSET CONFIG_SYS_I2C2_OFFSET 30691e25769SPaul Gortmaker /* could also use CONFIG_I2C_MULTI_BUS and CONFIG_SPD_BUS_NUM... */ 30791e25769SPaul Gortmaker 30891e25769SPaul Gortmaker /* TSEC */ 3096d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_TSEC1_OFFSET 0x24000 3106d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_TSEC1 (CONFIG_SYS_IMMR+CONFIG_SYS_TSEC1_OFFSET) 3116d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_TSEC2_OFFSET 0x25000 3126d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_TSEC2 (CONFIG_SYS_IMMR+CONFIG_SYS_TSEC2_OFFSET) 31391e25769SPaul Gortmaker 31491e25769SPaul Gortmaker /* 31591e25769SPaul Gortmaker * General PCI 31691e25769SPaul Gortmaker * Addresses are mapped 1-1. 31791e25769SPaul Gortmaker */ 3186d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCI1_MEM_BASE 0x80000000 3196d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCI1_MEM_PHYS CONFIG_SYS_PCI1_MEM_BASE 3206d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCI1_MEM_SIZE 0x10000000 /* 256M */ 3216d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCI1_MMIO_BASE 0x90000000 3226d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCI1_MMIO_PHYS CONFIG_SYS_PCI1_MMIO_BASE 3236d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCI1_MMIO_SIZE 0x10000000 /* 256M */ 3246d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCI1_IO_BASE 0x00000000 3256d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCI1_IO_PHYS 0xE2000000 3266d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCI1_IO_SIZE 0x00100000 /* 1M */ 32791e25769SPaul Gortmaker 3286d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCI2_MEM_BASE 0xA0000000 3296d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCI2_MEM_PHYS CONFIG_SYS_PCI2_MEM_BASE 3306d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCI2_MEM_SIZE 0x10000000 /* 256M */ 3316d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCI2_MMIO_BASE 0xB0000000 3326d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCI2_MMIO_PHYS CONFIG_SYS_PCI2_MMIO_BASE 3336d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCI2_MMIO_SIZE 0x10000000 /* 256M */ 3346d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCI2_IO_BASE 0x00000000 3356d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCI2_IO_PHYS 0xE2100000 3366d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCI2_IO_SIZE 0x00100000 /* 1M */ 33791e25769SPaul Gortmaker 33891e25769SPaul Gortmaker #if defined(CONFIG_PCI) 33991e25769SPaul Gortmaker 34091e25769SPaul Gortmaker #define PCI_64BIT 34191e25769SPaul Gortmaker #define PCI_ONE_PCI1 34291e25769SPaul Gortmaker #if defined(PCI_64BIT) 34391e25769SPaul Gortmaker #undef PCI_ALL_PCI1 34491e25769SPaul Gortmaker #undef PCI_TWO_PCI1 34591e25769SPaul Gortmaker #undef PCI_ONE_PCI1 34691e25769SPaul Gortmaker #endif 34791e25769SPaul Gortmaker 34891e25769SPaul Gortmaker #define CONFIG_NET_MULTI 34991e25769SPaul Gortmaker #define CONFIG_PCI_PNP /* do pci plug-and-play */ 35091e25769SPaul Gortmaker 35191e25769SPaul Gortmaker #undef CONFIG_EEPRO100 35291e25769SPaul Gortmaker #undef CONFIG_TULIP 35391e25769SPaul Gortmaker 35491e25769SPaul Gortmaker #if !defined(CONFIG_PCI_PNP) 35591e25769SPaul Gortmaker #define PCI_ENET0_IOADDR 0xFIXME 35691e25769SPaul Gortmaker #define PCI_ENET0_MEMADDR 0xFIXME 35791e25769SPaul Gortmaker #define PCI_IDSEL_NUMBER 0xFIXME 35891e25769SPaul Gortmaker #endif 35991e25769SPaul Gortmaker 36091e25769SPaul Gortmaker #undef CONFIG_PCI_SCAN_SHOW /* show pci devices on startup */ 3616d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x1057 /* Motorola */ 36291e25769SPaul Gortmaker 36391e25769SPaul Gortmaker #endif /* CONFIG_PCI */ 36491e25769SPaul Gortmaker 36591e25769SPaul Gortmaker /* 36691e25769SPaul Gortmaker * TSEC configuration 36791e25769SPaul Gortmaker */ 36891e25769SPaul Gortmaker #define CONFIG_TSEC_ENET /* TSEC ethernet support */ 36991e25769SPaul Gortmaker 37091e25769SPaul Gortmaker #if defined(CONFIG_TSEC_ENET) 37191e25769SPaul Gortmaker #ifndef CONFIG_NET_MULTI 37291e25769SPaul Gortmaker #define CONFIG_NET_MULTI 1 37391e25769SPaul Gortmaker #endif 37491e25769SPaul Gortmaker 375255a3577SKim Phillips #define CONFIG_TSEC1 1 376255a3577SKim Phillips #define CONFIG_TSEC1_NAME "TSEC0" 377255a3577SKim Phillips #define CONFIG_TSEC2 1 378255a3577SKim Phillips #define CONFIG_TSEC2_NAME "TSEC1" 37991e25769SPaul Gortmaker #define CONFIG_PHY_BCM5421S 1 38091e25769SPaul Gortmaker #define TSEC1_PHY_ADDR 0x19 38191e25769SPaul Gortmaker #define TSEC2_PHY_ADDR 0x1a 38291e25769SPaul Gortmaker #define TSEC1_PHYIDX 0 38391e25769SPaul Gortmaker #define TSEC2_PHYIDX 0 3843a79013eSAndy Fleming #define TSEC1_FLAGS TSEC_GIGABIT 3853a79013eSAndy Fleming #define TSEC2_FLAGS TSEC_GIGABIT 38691e25769SPaul Gortmaker 38791e25769SPaul Gortmaker /* Options are: TSEC[0-1] */ 38891e25769SPaul Gortmaker #define CONFIG_ETHPRIME "TSEC0" 38991e25769SPaul Gortmaker 39091e25769SPaul Gortmaker #endif /* CONFIG_TSEC_ENET */ 39191e25769SPaul Gortmaker 39291e25769SPaul Gortmaker /* 39391e25769SPaul Gortmaker * Environment 39491e25769SPaul Gortmaker */ 3956d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #ifndef CONFIG_SYS_RAMBOOT 3965a1aceb0SJean-Christophe PLAGNIOL-VILLARD #define CONFIG_ENV_IS_IN_FLASH 1 3976d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_ENV_ADDR (CONFIG_SYS_MONITOR_BASE + 0x40000) 3980e8d1586SJean-Christophe PLAGNIOL-VILLARD #define CONFIG_ENV_SECT_SIZE 0x20000 /* 128K(one sector) for env */ 3990e8d1586SJean-Christophe PLAGNIOL-VILLARD #define CONFIG_ENV_SIZE 0x2000 40091e25769SPaul Gortmaker 40191e25769SPaul Gortmaker /* Address and size of Redundant Environment Sector */ 4020e8d1586SJean-Christophe PLAGNIOL-VILLARD #define CONFIG_ENV_ADDR_REDUND (CONFIG_ENV_ADDR + CONFIG_ENV_SECT_SIZE) 4030e8d1586SJean-Christophe PLAGNIOL-VILLARD #define CONFIG_ENV_SIZE_REDUND (CONFIG_ENV_SIZE) 40491e25769SPaul Gortmaker 40591e25769SPaul Gortmaker #else 4066d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_NO_FLASH 1 /* Flash is not usable now */ 40793f6d725SJean-Christophe PLAGNIOL-VILLARD #define CONFIG_ENV_IS_NOWHERE 1 /* Store ENV in memory only */ 4086d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_ENV_ADDR (CONFIG_SYS_MONITOR_BASE - 0x1000) 4090e8d1586SJean-Christophe PLAGNIOL-VILLARD #define CONFIG_ENV_SIZE 0x2000 41091e25769SPaul Gortmaker #endif 41191e25769SPaul Gortmaker 41291e25769SPaul Gortmaker #define CONFIG_LOADS_ECHO 1 /* echo on for serial download */ 4136d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_LOADS_BAUD_CHANGE 1 /* allow baudrate change */ 41491e25769SPaul Gortmaker 415866e3089SJon Loeliger 416866e3089SJon Loeliger /* 417079a136cSJon Loeliger * BOOTP options 418079a136cSJon Loeliger */ 419079a136cSJon Loeliger #define CONFIG_BOOTP_BOOTFILESIZE 420079a136cSJon Loeliger #define CONFIG_BOOTP_BOOTPATH 421079a136cSJon Loeliger #define CONFIG_BOOTP_GATEWAY 422079a136cSJon Loeliger #define CONFIG_BOOTP_HOSTNAME 423079a136cSJon Loeliger 424079a136cSJon Loeliger 425079a136cSJon Loeliger /* 426866e3089SJon Loeliger * Command line configuration. 427866e3089SJon Loeliger */ 428866e3089SJon Loeliger #include <config_cmd_default.h> 429866e3089SJon Loeliger 430866e3089SJon Loeliger #define CONFIG_CMD_I2C 431866e3089SJon Loeliger #define CONFIG_CMD_MII 432866e3089SJon Loeliger #define CONFIG_CMD_PING 433866e3089SJon Loeliger 43491e25769SPaul Gortmaker #if defined(CONFIG_PCI) 435e496865eSPaul Gortmaker #define CONFIG_CMD_PCI 43691e25769SPaul Gortmaker #endif 43791e25769SPaul Gortmaker 4386d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #if defined(CONFIG_SYS_RAMBOOT) 439bdab39d3SMike Frysinger #undef CONFIG_CMD_SAVEENV 440866e3089SJon Loeliger #undef CONFIG_CMD_LOADS 441866e3089SJon Loeliger #endif 442866e3089SJon Loeliger 44391e25769SPaul Gortmaker 44491e25769SPaul Gortmaker #undef CONFIG_WATCHDOG /* watchdog disabled */ 44591e25769SPaul Gortmaker 44691e25769SPaul Gortmaker /* 44791e25769SPaul Gortmaker * Miscellaneous configurable options 44891e25769SPaul Gortmaker */ 4496d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_LONGHELP /* undef to save memory */ 4506d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_LOAD_ADDR 0x2000000 /* default load address */ 4516d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PROMPT "=> " /* Monitor Command Prompt */ 45291e25769SPaul Gortmaker 453866e3089SJon Loeliger #if defined(CONFIG_CMD_KGDB) 4546d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buffer Size */ 45591e25769SPaul Gortmaker #else 4566d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */ 45791e25769SPaul Gortmaker #endif 45891e25769SPaul Gortmaker 4596d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */ 4606d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MAXARGS 16 /* max number of command args */ 4616d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE /* Boot Argument Buffer Size */ 4626d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_HZ 1000 /* decrementer freq: 1ms ticks */ 46391e25769SPaul Gortmaker 46491e25769SPaul Gortmaker /* 46591e25769SPaul Gortmaker * For booting Linux, the board info and command line data 46691e25769SPaul Gortmaker * have to be in the first 8 MB of memory, since this is 46791e25769SPaul Gortmaker * the maximum mapped by the Linux kernel during initialization. 46891e25769SPaul Gortmaker */ 4696d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_BOOTMAPSZ (8 << 20) /* Initial Memory map for Linux*/ 47091e25769SPaul Gortmaker 4716d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_RCWH_PCIHOST 0x80000000 /* PCIHOST */ 47291e25769SPaul Gortmaker 47391e25769SPaul Gortmaker #if 1 /*528/264*/ 4746d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_HRCW_LOW (\ 47591e25769SPaul Gortmaker HRCWL_LCL_BUS_TO_SCB_CLK_1X1 |\ 47691e25769SPaul Gortmaker HRCWL_DDR_TO_SCB_CLK_1X1 |\ 47791e25769SPaul Gortmaker HRCWL_CSB_TO_CLKIN |\ 47891e25769SPaul Gortmaker HRCWL_VCO_1X2 |\ 47991e25769SPaul Gortmaker HRCWL_CORE_TO_CSB_2X1) 48091e25769SPaul Gortmaker #elif 0 /*396/132*/ 4816d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_HRCW_LOW (\ 48291e25769SPaul Gortmaker HRCWL_LCL_BUS_TO_SCB_CLK_1X1 |\ 48391e25769SPaul Gortmaker HRCWL_DDR_TO_SCB_CLK_1X1 |\ 48491e25769SPaul Gortmaker HRCWL_CSB_TO_CLKIN |\ 48591e25769SPaul Gortmaker HRCWL_VCO_1X4 |\ 48691e25769SPaul Gortmaker HRCWL_CORE_TO_CSB_3X1) 48791e25769SPaul Gortmaker #elif 0 /*264/132*/ 4886d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_HRCW_LOW (\ 48991e25769SPaul Gortmaker HRCWL_LCL_BUS_TO_SCB_CLK_1X1 |\ 49091e25769SPaul Gortmaker HRCWL_DDR_TO_SCB_CLK_1X1 |\ 49191e25769SPaul Gortmaker HRCWL_CSB_TO_CLKIN |\ 49291e25769SPaul Gortmaker HRCWL_VCO_1X4 |\ 49391e25769SPaul Gortmaker HRCWL_CORE_TO_CSB_2X1) 49491e25769SPaul Gortmaker #elif 0 /*132/132*/ 4956d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_HRCW_LOW (\ 49691e25769SPaul Gortmaker HRCWL_LCL_BUS_TO_SCB_CLK_1X1 |\ 49791e25769SPaul Gortmaker HRCWL_DDR_TO_SCB_CLK_1X1 |\ 49891e25769SPaul Gortmaker HRCWL_CSB_TO_CLKIN |\ 49991e25769SPaul Gortmaker HRCWL_VCO_1X4 |\ 50091e25769SPaul Gortmaker HRCWL_CORE_TO_CSB_1X1) 50191e25769SPaul Gortmaker #elif 0 /*264/264 */ 5026d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_HRCW_LOW (\ 50391e25769SPaul Gortmaker HRCWL_LCL_BUS_TO_SCB_CLK_1X1 |\ 50491e25769SPaul Gortmaker HRCWL_DDR_TO_SCB_CLK_1X1 |\ 50591e25769SPaul Gortmaker HRCWL_CSB_TO_CLKIN |\ 50691e25769SPaul Gortmaker HRCWL_VCO_1X4 |\ 50791e25769SPaul Gortmaker HRCWL_CORE_TO_CSB_1X1) 50891e25769SPaul Gortmaker #endif 50991e25769SPaul Gortmaker 51091e25769SPaul Gortmaker #if defined(PCI_64BIT) 5116d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_HRCW_HIGH (\ 51291e25769SPaul Gortmaker HRCWH_PCI_HOST |\ 51391e25769SPaul Gortmaker HRCWH_64_BIT_PCI |\ 51491e25769SPaul Gortmaker HRCWH_PCI1_ARBITER_ENABLE |\ 51591e25769SPaul Gortmaker HRCWH_PCI2_ARBITER_DISABLE |\ 51691e25769SPaul Gortmaker HRCWH_CORE_ENABLE |\ 51791e25769SPaul Gortmaker HRCWH_FROM_0X00000100 |\ 51891e25769SPaul Gortmaker HRCWH_BOOTSEQ_DISABLE |\ 51991e25769SPaul Gortmaker HRCWH_SW_WATCHDOG_DISABLE |\ 52091e25769SPaul Gortmaker HRCWH_ROM_LOC_LOCAL_16BIT |\ 52191e25769SPaul Gortmaker HRCWH_TSEC1M_IN_GMII |\ 52291e25769SPaul Gortmaker HRCWH_TSEC2M_IN_GMII ) 52391e25769SPaul Gortmaker #else 5246d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_HRCW_HIGH (\ 52591e25769SPaul Gortmaker HRCWH_PCI_HOST |\ 52691e25769SPaul Gortmaker HRCWH_32_BIT_PCI |\ 52791e25769SPaul Gortmaker HRCWH_PCI1_ARBITER_ENABLE |\ 52891e25769SPaul Gortmaker HRCWH_PCI2_ARBITER_ENABLE |\ 52991e25769SPaul Gortmaker HRCWH_CORE_ENABLE |\ 53091e25769SPaul Gortmaker HRCWH_FROM_0X00000100 |\ 53191e25769SPaul Gortmaker HRCWH_BOOTSEQ_DISABLE |\ 53291e25769SPaul Gortmaker HRCWH_SW_WATCHDOG_DISABLE |\ 53391e25769SPaul Gortmaker HRCWH_ROM_LOC_LOCAL_16BIT |\ 53491e25769SPaul Gortmaker HRCWH_TSEC1M_IN_GMII |\ 53591e25769SPaul Gortmaker HRCWH_TSEC2M_IN_GMII ) 53691e25769SPaul Gortmaker #endif 53791e25769SPaul Gortmaker 53891e25769SPaul Gortmaker /* System IO Config */ 5393c9b1ee1SKim Phillips #define CONFIG_SYS_SICRH 0 5406d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_SICRL SICRL_LDP_A 54191e25769SPaul Gortmaker 5426d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_HID0_INIT 0x000000000 5436d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_HID0_FINAL HID0_ENABLE_MACHINE_CHECK 54491e25769SPaul Gortmaker 5456d0f6bcfSJean-Christophe PLAGNIOL-VILLARD /* #define CONFIG_SYS_HID0_FINAL (\ 54691e25769SPaul Gortmaker HID0_ENABLE_INSTRUCTION_CACHE |\ 54791e25769SPaul Gortmaker HID0_ENABLE_M_BIT |\ 54891e25769SPaul Gortmaker HID0_ENABLE_ADDRESS_BROADCAST ) */ 54991e25769SPaul Gortmaker 55091e25769SPaul Gortmaker 5516d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_HID2 HID2_HBE 55291e25769SPaul Gortmaker 55331d82672SBecky Bruce #define CONFIG_HIGH_BATS 1 /* High BATs supported */ 55431d82672SBecky Bruce 55591e25769SPaul Gortmaker /* DDR @ 0x00000000 */ 5566d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_IBAT0L (CONFIG_SYS_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE) 5576d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_IBAT0U (CONFIG_SYS_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP) 55891e25769SPaul Gortmaker 55991e25769SPaul Gortmaker /* PCI @ 0x80000000 */ 56091e25769SPaul Gortmaker #ifdef CONFIG_PCI 5616d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_IBAT1L (CONFIG_SYS_PCI1_MEM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE) 5626d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_IBAT1U (CONFIG_SYS_PCI1_MEM_BASE | BATU_BL_256M | BATU_VS | BATU_VP) 5636d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_IBAT2L (CONFIG_SYS_PCI1_MMIO_BASE | BATL_PP_10 | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE) 5646d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_IBAT2U (CONFIG_SYS_PCI1_MMIO_BASE | BATU_BL_256M | BATU_VS | BATU_VP) 56591e25769SPaul Gortmaker #else 5666d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_IBAT1L (0) 5676d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_IBAT1U (0) 5686d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_IBAT2L (0) 5696d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_IBAT2U (0) 57091e25769SPaul Gortmaker #endif 57191e25769SPaul Gortmaker 57291e25769SPaul Gortmaker #ifdef CONFIG_MPC83XX_PCI2 5736d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_IBAT3L (CONFIG_SYS_PCI2_MEM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE) 5746d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_IBAT3U (CONFIG_SYS_PCI2_MEM_BASE | BATU_BL_256M | BATU_VS | BATU_VP) 5756d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_IBAT4L (CONFIG_SYS_PCI2_MMIO_BASE | BATL_PP_10 | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE) 5766d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_IBAT4U (CONFIG_SYS_PCI2_MMIO_BASE | BATU_BL_256M | BATU_VS | BATU_VP) 57791e25769SPaul Gortmaker #else 5786d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_IBAT3L (0) 5796d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_IBAT3U (0) 5806d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_IBAT4L (0) 5816d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_IBAT4U (0) 58291e25769SPaul Gortmaker #endif 58391e25769SPaul Gortmaker 58491e25769SPaul Gortmaker /* IMMRBAR @ 0xE0000000, PCI IO @ 0xE2000000 */ 5856d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_IBAT5L (CONFIG_SYS_IMMR | BATL_PP_10 | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE) 5866d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_IBAT5U (CONFIG_SYS_IMMR | BATU_BL_256M | BATU_VS | BATU_VP) 58791e25769SPaul Gortmaker 58891e25769SPaul Gortmaker /* SDRAM @ 0xF0000000, stack in DCACHE 0xFDF00000 & FLASH @ 0xFE000000 */ 589c1230980SScott Wood #define CONFIG_SYS_IBAT6L (0xF0000000 | BATL_PP_10 | BATL_MEMCOHERENCE | \ 590c1230980SScott Wood BATL_GUARDEDSTORAGE) 5916d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_IBAT6U (0xF0000000 | BATU_BL_256M | BATU_VS | BATU_VP) 59291e25769SPaul Gortmaker 5936d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_IBAT7L (0) 5946d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_IBAT7U (0) 59591e25769SPaul Gortmaker 5966d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DBAT0L CONFIG_SYS_IBAT0L 5976d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DBAT0U CONFIG_SYS_IBAT0U 5986d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DBAT1L CONFIG_SYS_IBAT1L 5996d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DBAT1U CONFIG_SYS_IBAT1U 6006d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DBAT2L CONFIG_SYS_IBAT2L 6016d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DBAT2U CONFIG_SYS_IBAT2U 6026d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DBAT3L CONFIG_SYS_IBAT3L 6036d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DBAT3U CONFIG_SYS_IBAT3U 6046d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DBAT4L CONFIG_SYS_IBAT4L 6056d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DBAT4U CONFIG_SYS_IBAT4U 6066d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DBAT5L CONFIG_SYS_IBAT5L 6076d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DBAT5U CONFIG_SYS_IBAT5U 6086d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DBAT6L CONFIG_SYS_IBAT6L 6096d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DBAT6U CONFIG_SYS_IBAT6U 6106d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DBAT7L CONFIG_SYS_IBAT7L 6116d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DBAT7U CONFIG_SYS_IBAT7U 61291e25769SPaul Gortmaker 61391e25769SPaul Gortmaker /* 61491e25769SPaul Gortmaker * Internal Definitions 61591e25769SPaul Gortmaker * 61691e25769SPaul Gortmaker * Boot Flags 61791e25769SPaul Gortmaker */ 61891e25769SPaul Gortmaker #define BOOTFLAG_COLD 0x01 /* Normal Power-On: Boot from FLASH */ 61991e25769SPaul Gortmaker #define BOOTFLAG_WARM 0x02 /* Software reboot */ 62091e25769SPaul Gortmaker 621866e3089SJon Loeliger #if defined(CONFIG_CMD_KGDB) 62291e25769SPaul Gortmaker #define CONFIG_KGDB_BAUDRATE 230400 /* speed of kgdb serial port */ 62391e25769SPaul Gortmaker #define CONFIG_KGDB_SER_INDEX 2 /* which serial port to use */ 62491e25769SPaul Gortmaker #endif 62591e25769SPaul Gortmaker 62691e25769SPaul Gortmaker /* 62791e25769SPaul Gortmaker * Environment Configuration 62891e25769SPaul Gortmaker */ 62991e25769SPaul Gortmaker #define CONFIG_ENV_OVERWRITE 63091e25769SPaul Gortmaker 63191e25769SPaul Gortmaker #if defined(CONFIG_TSEC_ENET) 63210327dc5SAndy Fleming #define CONFIG_HAS_ETH0 63391e25769SPaul Gortmaker #define CONFIG_ETHADDR 00:a0:1e:a0:13:8d 63491e25769SPaul Gortmaker #define CONFIG_HAS_ETH1 63591e25769SPaul Gortmaker #define CONFIG_ETH1ADDR 00:a0:1e:a0:13:8e 63691e25769SPaul Gortmaker #endif 63791e25769SPaul Gortmaker 63891e25769SPaul Gortmaker #define CONFIG_IPADDR 192.168.1.234 63991e25769SPaul Gortmaker 64091e25769SPaul Gortmaker #define CONFIG_HOSTNAME SBC8349 64191e25769SPaul Gortmaker #define CONFIG_ROOTPATH /tftpboot/rootfs 64291e25769SPaul Gortmaker #define CONFIG_BOOTFILE uImage 64391e25769SPaul Gortmaker 64491e25769SPaul Gortmaker #define CONFIG_SERVERIP 192.168.1.1 64591e25769SPaul Gortmaker #define CONFIG_GATEWAYIP 192.168.1.1 64691e25769SPaul Gortmaker #define CONFIG_NETMASK 255.255.255.0 64791e25769SPaul Gortmaker 64879f516bcSKim Phillips #define CONFIG_LOADADDR 800000 /* default location for tftp and bootm */ 64991e25769SPaul Gortmaker 65091e25769SPaul Gortmaker #define CONFIG_BOOTDELAY 6 /* -1 disables auto-boot */ 65191e25769SPaul Gortmaker #undef CONFIG_BOOTARGS /* the boot command will set bootargs */ 65291e25769SPaul Gortmaker 65391e25769SPaul Gortmaker #define CONFIG_BAUDRATE 115200 65491e25769SPaul Gortmaker 65591e25769SPaul Gortmaker #define CONFIG_EXTRA_ENV_SETTINGS \ 65691e25769SPaul Gortmaker "netdev=eth0\0" \ 65791e25769SPaul Gortmaker "hostname=sbc8349\0" \ 65891e25769SPaul Gortmaker "nfsargs=setenv bootargs root=/dev/nfs rw " \ 65991e25769SPaul Gortmaker "nfsroot=${serverip}:${rootpath}\0" \ 66091e25769SPaul Gortmaker "ramargs=setenv bootargs root=/dev/ram rw\0" \ 66191e25769SPaul Gortmaker "addip=setenv bootargs ${bootargs} " \ 66291e25769SPaul Gortmaker "ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}" \ 66391e25769SPaul Gortmaker ":${hostname}:${netdev}:off panic=1\0" \ 66491e25769SPaul Gortmaker "addtty=setenv bootargs ${bootargs} console=ttyS0,${baudrate}\0"\ 66591e25769SPaul Gortmaker "flash_nfs=run nfsargs addip addtty;" \ 66691e25769SPaul Gortmaker "bootm ${kernel_addr}\0" \ 66791e25769SPaul Gortmaker "flash_self=run ramargs addip addtty;" \ 66891e25769SPaul Gortmaker "bootm ${kernel_addr} ${ramdisk_addr}\0" \ 66991e25769SPaul Gortmaker "net_nfs=tftp 200000 ${bootfile};run nfsargs addip addtty;" \ 67091e25769SPaul Gortmaker "bootm\0" \ 67191e25769SPaul Gortmaker "load=tftp 100000 /tftpboot/sbc8349/u-boot.bin\0" \ 672fe613cddSPaul Gortmaker "update=protect off ff800000 ff83ffff; " \ 673fe613cddSPaul Gortmaker "era ff800000 ff83ffff; cp.b 100000 ff800000 ${filesize}\0" \ 674d8ab58b2SDetlev Zundel "upd=run load update\0" \ 67579f516bcSKim Phillips "fdtaddr=780000\0" \ 67691e25769SPaul Gortmaker "fdtfile=sbc8349.dtb\0" \ 67791e25769SPaul Gortmaker "" 67891e25769SPaul Gortmaker 67991e25769SPaul Gortmaker #define CONFIG_NFSBOOTCOMMAND \ 68091e25769SPaul Gortmaker "setenv bootargs root=/dev/nfs rw " \ 68191e25769SPaul Gortmaker "nfsroot=$serverip:$rootpath " \ 68291e25769SPaul Gortmaker "ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname:$netdev:off " \ 68391e25769SPaul Gortmaker "console=$consoledev,$baudrate $othbootargs;" \ 68491e25769SPaul Gortmaker "tftp $loadaddr $bootfile;" \ 68591e25769SPaul Gortmaker "tftp $fdtaddr $fdtfile;" \ 68691e25769SPaul Gortmaker "bootm $loadaddr - $fdtaddr" 68791e25769SPaul Gortmaker 68891e25769SPaul Gortmaker #define CONFIG_RAMBOOTCOMMAND \ 68991e25769SPaul Gortmaker "setenv bootargs root=/dev/ram rw " \ 69091e25769SPaul Gortmaker "console=$consoledev,$baudrate $othbootargs;" \ 69191e25769SPaul Gortmaker "tftp $ramdiskaddr $ramdiskfile;" \ 69291e25769SPaul Gortmaker "tftp $loadaddr $bootfile;" \ 69391e25769SPaul Gortmaker "tftp $fdtaddr $fdtfile;" \ 69491e25769SPaul Gortmaker "bootm $loadaddr $ramdiskaddr $fdtaddr" 69591e25769SPaul Gortmaker 69691e25769SPaul Gortmaker #define CONFIG_BOOTCOMMAND "run flash_self" 69791e25769SPaul Gortmaker 69891e25769SPaul Gortmaker #endif /* __CONFIG_H */ 699