19490a7f1SKumar Gala /* 29490a7f1SKumar Gala * Copyright 2008 Freescale Semiconductor, Inc. 39490a7f1SKumar Gala * 49490a7f1SKumar Gala * See file CREDITS for list of people who contributed to this 59490a7f1SKumar Gala * project. 69490a7f1SKumar Gala * 79490a7f1SKumar Gala * This program is free software; you can redistribute it and/or 89490a7f1SKumar Gala * modify it under the terms of the GNU General Public License as 99490a7f1SKumar Gala * published by the Free Software Foundation; either version 2 of 109490a7f1SKumar Gala * the License, or (at your option) any later version. 119490a7f1SKumar Gala * 129490a7f1SKumar Gala * This program is distributed in the hope that it will be useful, 139490a7f1SKumar Gala * but WITHOUT ANY WARRANTY; without even the implied warranty of 149490a7f1SKumar Gala * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 159490a7f1SKumar Gala * GNU General Public License for more details. 169490a7f1SKumar Gala * 179490a7f1SKumar Gala * You should have received a copy of the GNU General Public License 189490a7f1SKumar Gala * along with this program; if not, write to the Free Software 199490a7f1SKumar Gala * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 209490a7f1SKumar Gala * MA 02111-1307 USA 219490a7f1SKumar Gala */ 229490a7f1SKumar Gala 239490a7f1SKumar Gala /* 249490a7f1SKumar Gala * mpc8536ds board configuration file 259490a7f1SKumar Gala * 269490a7f1SKumar Gala */ 279490a7f1SKumar Gala #ifndef __CONFIG_H 289490a7f1SKumar Gala #define __CONFIG_H 299490a7f1SKumar Gala 309490a7f1SKumar Gala /* High Level Configuration Options */ 319490a7f1SKumar Gala #define CONFIG_BOOKE 1 /* BOOKE */ 329490a7f1SKumar Gala #define CONFIG_E500 1 /* BOOKE e500 family */ 339490a7f1SKumar Gala #define CONFIG_MPC85xx 1 /* MPC8540/60/55/41/48 */ 349490a7f1SKumar Gala #define CONFIG_MPC8536 1 359490a7f1SKumar Gala #define CONFIG_MPC8536DS 1 369490a7f1SKumar Gala 379490a7f1SKumar Gala #define CONFIG_PCI 1 /* Enable PCI/PCIE */ 389490a7f1SKumar Gala #define CONFIG_PCI1 1 /* Enable PCI controller 1 */ 399490a7f1SKumar Gala #define CONFIG_PCIE1 1 /* PCIE controler 1 (slot 1) */ 409490a7f1SKumar Gala #define CONFIG_PCIE2 1 /* PCIE controler 2 (slot 2) */ 419490a7f1SKumar Gala #define CONFIG_PCIE3 1 /* PCIE controler 3 (ULI bridge) */ 429490a7f1SKumar Gala #define CONFIG_FSL_PCI_INIT 1 /* Use common FSL init code */ 439490a7f1SKumar Gala #define CONFIG_FSL_PCIE_RESET 1 /* need PCIe reset errata */ 44*0151cbacSKumar Gala #define CONFIG_SYS_PCI_64BIT 1 /* enable 64-bit PCI resources */ 459490a7f1SKumar Gala 469490a7f1SKumar Gala #define CONFIG_FSL_LAW 1 /* Use common FSL init code */ 479490a7f1SKumar Gala 489490a7f1SKumar Gala #define CONFIG_TSEC_ENET /* tsec ethernet support */ 499490a7f1SKumar Gala #define CONFIG_ENV_OVERWRITE 509490a7f1SKumar Gala 519490a7f1SKumar Gala /* 529490a7f1SKumar Gala * When initializing flash, if we cannot find the manufacturer ID, 539490a7f1SKumar Gala * assume this is the AMD flash associated with the CDS board. 549490a7f1SKumar Gala * This allows booting from a promjet. 559490a7f1SKumar Gala */ 569490a7f1SKumar Gala #define CONFIG_ASSUME_AMD_FLASH 579490a7f1SKumar Gala 589490a7f1SKumar Gala #ifndef __ASSEMBLY__ 599490a7f1SKumar Gala extern unsigned long get_board_sys_clk(unsigned long dummy); 609490a7f1SKumar Gala extern unsigned long get_board_ddr_clk(unsigned long dummy); 619490a7f1SKumar Gala #endif 629490a7f1SKumar Gala #define CONFIG_SYS_CLK_FREQ get_board_sys_clk(0) /* sysclk for MPC85xx */ 63c0391111SJason Jin #define CONFIG_DDR_CLK_FREQ get_board_ddr_clk(0) 649490a7f1SKumar Gala #define CONFIG_ICS307_REFCLK_HZ 33333000 /* ICS307 clock chip ref freq */ 659490a7f1SKumar Gala #define CONFIG_GET_CLK_FROM_ICS307 /* decode sysclk and ddrclk freq 669490a7f1SKumar Gala from ICS307 instead of switches */ 679490a7f1SKumar Gala 689490a7f1SKumar Gala /* 699490a7f1SKumar Gala * These can be toggled for performance analysis, otherwise use default. 709490a7f1SKumar Gala */ 719490a7f1SKumar Gala #define CONFIG_L2_CACHE /* toggle L2 cache */ 729490a7f1SKumar Gala #define CONFIG_BTB /* toggle branch predition */ 739490a7f1SKumar Gala #define CONFIG_ADDR_STREAMING /* toggle addr streaming */ 749490a7f1SKumar Gala 759490a7f1SKumar Gala #define CONFIG_ENABLE_36BIT_PHYS 1 769490a7f1SKumar Gala 776d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MEMTEST_START 0x00000000 /* memtest works on */ 786d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MEMTEST_END 0x7fffffff 799490a7f1SKumar Gala #define CONFIG_PANIC_HANG /* do not reset board on panic */ 809490a7f1SKumar Gala 819490a7f1SKumar Gala /* 829490a7f1SKumar Gala * Base addresses -- Note these are effective addresses where the 839490a7f1SKumar Gala * actual resources get mapped (not physical addresses) 849490a7f1SKumar Gala */ 856d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000 /* CCSRBAR Default */ 866d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_CCSRBAR 0xffe00000 /* relocated CCSRBAR */ 876d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_CCSRBAR_PHYS CONFIG_SYS_CCSRBAR /* physical addr of CCSRBAR */ 886d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_IMMR CONFIG_SYS_CCSRBAR /* PQII uses CONFIG_SYS_IMMR */ 899490a7f1SKumar Gala 906d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCI1_ADDR (CONFIG_SYS_CCSRBAR+0x8000) 916d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE1_ADDR (CONFIG_SYS_CCSRBAR+0xa000) 926d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE2_ADDR (CONFIG_SYS_CCSRBAR+0x9000) 936d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE3_ADDR (CONFIG_SYS_CCSRBAR+0xb000) 949490a7f1SKumar Gala 959490a7f1SKumar Gala /* DDR Setup */ 969490a7f1SKumar Gala #define CONFIG_FSL_DDR2 979490a7f1SKumar Gala #undef CONFIG_FSL_DDR_INTERACTIVE 989490a7f1SKumar Gala #define CONFIG_SPD_EEPROM /* Use SPD EEPROM for DDR setup */ 999490a7f1SKumar Gala #define CONFIG_DDR_SPD 1009490a7f1SKumar Gala #undef CONFIG_DDR_DLL 1019490a7f1SKumar Gala 1029490a7f1SKumar Gala #undef CONFIG_ECC_INIT_VIA_DDRCONTROLLER /* DDR controller or DMA? */ 1039490a7f1SKumar Gala #define CONFIG_MEM_INIT_VALUE 0xDeadBeef 1049490a7f1SKumar Gala 1056d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_SDRAM_BASE 0x00000000 1066d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_SDRAM_BASE CONFIG_SYS_DDR_SDRAM_BASE 1079490a7f1SKumar Gala 1089490a7f1SKumar Gala #define CONFIG_NUM_DDR_CONTROLLERS 1 1099490a7f1SKumar Gala #define CONFIG_DIMM_SLOTS_PER_CTLR 1 1109490a7f1SKumar Gala #define CONFIG_CHIP_SELECTS_PER_CTRL 2 1119490a7f1SKumar Gala 1129490a7f1SKumar Gala /* I2C addresses of SPD EEPROMs */ 1139490a7f1SKumar Gala #define SPD_EEPROM_ADDRESS 0x51 /* CTLR 0 DIMM 0 */ 1146d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_SPD_BUS_NUM 1 1159490a7f1SKumar Gala 1169490a7f1SKumar Gala /* These are used when DDR doesn't use SPD. */ 1176d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_SDRAM_SIZE 256 /* DDR is 256MB */ 1186d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_CS0_BNDS 0x0000001F 1196d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_CS0_CONFIG 0x80010102 /* Enable, no interleaving */ 1206d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_TIMING_3 0x00000000 1216d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_TIMING_0 0x00260802 1226d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_TIMING_1 0x3935d322 1236d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_TIMING_2 0x14904cc8 1246d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_MODE_1 0x00480432 1256d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_MODE_2 0x00000000 1266d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_INTERVAL 0x06180100 1276d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_DATA_INIT 0xdeadbeef 1286d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_CLK_CTRL 0x03800000 1296d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_OCD_CTRL 0x00000000 1306d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_OCD_STATUS 0x00000000 1316d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_CONTROL 0xC3008000 /* Type = DDR2 */ 1326d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_CONTROL2 0x04400010 1339490a7f1SKumar Gala 1346d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_ERR_INT_EN 0x0000000d 1356d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_ERR_DIS 0x00000000 1366d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_SBE 0x00010000 1379490a7f1SKumar Gala 1389490a7f1SKumar Gala /* Make sure required options are set */ 1399490a7f1SKumar Gala #ifndef CONFIG_SPD_EEPROM 1409490a7f1SKumar Gala #error ("CONFIG_SPD_EEPROM is required") 1419490a7f1SKumar Gala #endif 1429490a7f1SKumar Gala 1439490a7f1SKumar Gala #undef CONFIG_CLOCKS_IN_MHZ 1449490a7f1SKumar Gala 1459490a7f1SKumar Gala 1469490a7f1SKumar Gala /* 1479490a7f1SKumar Gala * Memory map -- xxx -this is wrong, needs updating 1489490a7f1SKumar Gala * 1499490a7f1SKumar Gala * 0x0000_0000 0x7fff_ffff DDR 2G Cacheable 1509490a7f1SKumar Gala * 0x8000_0000 0xbfff_ffff PCI Express Mem 1G non-cacheable 1519490a7f1SKumar Gala * 0xc000_0000 0xdfff_ffff PCI 512M non-cacheable 1529490a7f1SKumar Gala * 0xe100_0000 0xe3ff_ffff PCI IO range 4M non-cacheable 1539490a7f1SKumar Gala * 1549490a7f1SKumar Gala * Localbus cacheable (TBD) 1559490a7f1SKumar Gala * 0xXXXX_XXXX 0xXXXX_XXXX SRAM YZ M Cacheable 1569490a7f1SKumar Gala * 1579490a7f1SKumar Gala * Localbus non-cacheable 1589490a7f1SKumar Gala * 0xe000_0000 0xe80f_ffff Promjet/free 128M non-cacheable 1599490a7f1SKumar Gala * 0xe800_0000 0xefff_ffff FLASH 128M non-cacheable 1609490a7f1SKumar Gala * 0xffdf_0000 0xffdf_7fff PIXIS 32K non-cacheable TLB0 1619490a7f1SKumar Gala * 0xffd0_0000 0xffd0_3fff L1 for stack 16K Cacheable TLB0 1629490a7f1SKumar Gala * 0xffe0_0000 0xffef_ffff CCSR 1M non-cacheable 1639490a7f1SKumar Gala */ 1649490a7f1SKumar Gala 1659490a7f1SKumar Gala /* 1669490a7f1SKumar Gala * Local Bus Definitions 1679490a7f1SKumar Gala */ 1686d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_FLASH_BASE 0xe0000000 /* start of FLASH 128M */ 1699490a7f1SKumar Gala 1706d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_BR0_PRELIM 0xe8001001 1716d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_OR0_PRELIM 0xf8000ff7 1729490a7f1SKumar Gala 1736d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_BR1_PRELIM 0xe0001001 1746d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_OR1_PRELIM 0xf8000ff7 1759490a7f1SKumar Gala 1766d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_FLASH_BANKS_LIST {CONFIG_SYS_FLASH_BASE + 0x8000000, CONFIG_SYS_FLASH_BASE} 1776d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_FLASH_QUIET_TEST 1789490a7f1SKumar Gala #define CONFIG_FLASH_SHOW_PROGRESS 45 /* count down from 45/5: 9..1 */ 1799490a7f1SKumar Gala 1806d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MAX_FLASH_BANKS 2 /* number of banks */ 1816d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MAX_FLASH_SECT 1024 /* sectors per device */ 1826d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #undef CONFIG_SYS_FLASH_CHECKSUM 1836d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_FLASH_ERASE_TOUT 60000 /* Flash Erase Timeout (ms) */ 1846d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_FLASH_WRITE_TOUT 500 /* Flash Write Timeout (ms) */ 1859490a7f1SKumar Gala 1866d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MONITOR_BASE TEXT_BASE /* start of monitor */ 1879490a7f1SKumar Gala 1889490a7f1SKumar Gala #define CONFIG_FLASH_CFI_DRIVER 1896d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_FLASH_CFI 1906d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_FLASH_EMPTY_INFO 1916d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_FLASH_AMD_CHECK_DQ7 1929490a7f1SKumar Gala 1939490a7f1SKumar Gala #define CONFIG_BOARD_EARLY_INIT_R /* call board_early_init_r function */ 1949490a7f1SKumar Gala 1959490a7f1SKumar Gala #define CONFIG_FSL_PIXIS 1 /* use common PIXIS code */ 1969490a7f1SKumar Gala #define PIXIS_BASE 0xffdf0000 /* PIXIS registers */ 1979490a7f1SKumar Gala 1986d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_BR3_PRELIM (PIXIS_BASE | 0x0801) /* port size 8bit */ 1996d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_OR3_PRELIM 0xffffeff7 /* 32KB but only 4k mapped */ 2009490a7f1SKumar Gala 2019490a7f1SKumar Gala #define PIXIS_ID 0x0 /* Board ID at offset 0 */ 2029490a7f1SKumar Gala #define PIXIS_VER 0x1 /* Board version at offset 1 */ 2039490a7f1SKumar Gala #define PIXIS_PVER 0x2 /* PIXIS FPGA version at offset 2 */ 2049490a7f1SKumar Gala #define PIXIS_CSR 0x3 /* PIXIS General control/status register */ 2059490a7f1SKumar Gala #define PIXIS_RST 0x4 /* PIXIS Reset Control register */ 2069490a7f1SKumar Gala #define PIXIS_PWR 0x5 /* PIXIS Power status register */ 2079490a7f1SKumar Gala #define PIXIS_AUX 0x6 /* Auxiliary 1 register */ 2089490a7f1SKumar Gala #define PIXIS_SPD 0x7 /* Register for SYSCLK speed */ 2099490a7f1SKumar Gala #define PIXIS_AUX2 0x8 /* Auxiliary 2 register */ 2109490a7f1SKumar Gala #define PIXIS_VCTL 0x10 /* VELA Control Register */ 2119490a7f1SKumar Gala #define PIXIS_VSTAT 0x11 /* VELA Status Register */ 2129490a7f1SKumar Gala #define PIXIS_VCFGEN0 0x12 /* VELA Config Enable 0 */ 2139490a7f1SKumar Gala #define PIXIS_VCFGEN1 0x13 /* VELA Config Enable 1 */ 2149490a7f1SKumar Gala #define PIXIS_VCORE0 0x14 /* VELA VCORE0 Register */ 2159490a7f1SKumar Gala #define PIXIS_VBOOT 0x16 /* VELA VBOOT Register */ 2169490a7f1SKumar Gala #define PIXIS_VSPEED0 0x17 /* VELA VSpeed 0 */ 2179490a7f1SKumar Gala #define PIXIS_VSPEED1 0x18 /* VELA VSpeed 1 */ 2189490a7f1SKumar Gala #define PIXIS_VSPEED2 0x19 /* VELA VSpeed 2 */ 2199490a7f1SKumar Gala #define PIXIS_VSYSCLK0 0x1A /* VELA SYSCLK0 Register */ 2209490a7f1SKumar Gala #define PIXIS_VSYSCLK1 0x1B /* VELA SYSCLK1 Register */ 2219490a7f1SKumar Gala #define PIXIS_VSYSCLK2 0x1C /* VELA SYSCLK2 Register */ 2229490a7f1SKumar Gala #define PIXIS_VDDRCLK0 0x1D /* VELA DDRCLK0 Register */ 2239490a7f1SKumar Gala #define PIXIS_VDDRCLK1 0x1E /* VELA DDRCLK1 Register */ 2249490a7f1SKumar Gala #define PIXIS_VDDRCLK2 0x1F /* VELA DDRCLK2 Register */ 2259490a7f1SKumar Gala #define PIXIS_VWATCH 0x24 /* Watchdog Register */ 2269490a7f1SKumar Gala #define PIXIS_LED 0x25 /* LED Register */ 2279490a7f1SKumar Gala 2289490a7f1SKumar Gala /* old pixis referenced names */ 2299490a7f1SKumar Gala #define PIXIS_VCLKH 0x19 /* VELA VCLKH register */ 2309490a7f1SKumar Gala #define PIXIS_VCLKL 0x1A /* VELA VCLKL register */ 2316d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PIXIS_VBOOT_MASK 0xc0 2329490a7f1SKumar Gala 2339490a7f1SKumar Gala /* define to use L1 as initial stack */ 2349490a7f1SKumar Gala #define CONFIG_L1_INIT_RAM 2356d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_INIT_RAM_LOCK 1 2366d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_INIT_RAM_ADDR 0xffd00000 /* Initial L1 address */ 2376d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_INIT_RAM_END 0x00004000 /* End of used area in RAM */ 2389490a7f1SKumar Gala 2396d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_GBL_DATA_SIZE 128 /* num bytes initial data */ 2406d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE) 2416d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET 2429490a7f1SKumar Gala 2436d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MONITOR_LEN (256 * 1024) /* Reserve 256 kB for Mon */ 2446d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MALLOC_LEN (1024 * 1024) /* Reserved for malloc */ 2459490a7f1SKumar Gala 2469490a7f1SKumar Gala /* Serial Port - controlled on board with jumper J8 2479490a7f1SKumar Gala * open - index 2 2489490a7f1SKumar Gala * shorted - index 1 2499490a7f1SKumar Gala */ 2509490a7f1SKumar Gala #define CONFIG_CONS_INDEX 1 2519490a7f1SKumar Gala #undef CONFIG_SERIAL_SOFTWARE_FIFO 2526d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_NS16550 2536d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_NS16550_SERIAL 2546d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_NS16550_REG_SIZE 1 2556d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_NS16550_CLK get_bus_freq(0) 2569490a7f1SKumar Gala 2576d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_BAUDRATE_TABLE \ 2589490a7f1SKumar Gala {300, 600, 1200, 2400, 4800, 9600, 19200, 38400,115200} 2599490a7f1SKumar Gala 2606d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_NS16550_COM1 (CONFIG_SYS_CCSRBAR+0x4500) 2616d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_NS16550_COM2 (CONFIG_SYS_CCSRBAR+0x4600) 2629490a7f1SKumar Gala 2639490a7f1SKumar Gala /* Use the HUSH parser */ 2646d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_HUSH_PARSER 2656d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #ifdef CONFIG_SYS_HUSH_PARSER 2666d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PROMPT_HUSH_PS2 "> " 2679490a7f1SKumar Gala #endif 2689490a7f1SKumar Gala 2699490a7f1SKumar Gala /* 2709490a7f1SKumar Gala * Pass open firmware flat tree 2719490a7f1SKumar Gala */ 2729490a7f1SKumar Gala #define CONFIG_OF_LIBFDT 1 2739490a7f1SKumar Gala #define CONFIG_OF_BOARD_SETUP 1 2749490a7f1SKumar Gala #define CONFIG_OF_STDOUT_VIA_ALIAS 1 2759490a7f1SKumar Gala 2766d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_64BIT_STRTOUL 1 2776d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_64BIT_VSPRINTF 1 2789490a7f1SKumar Gala 2799490a7f1SKumar Gala 2809490a7f1SKumar Gala /* 2819490a7f1SKumar Gala * I2C 2829490a7f1SKumar Gala */ 2839490a7f1SKumar Gala #define CONFIG_FSL_I2C /* Use FSL common I2C driver */ 2849490a7f1SKumar Gala #define CONFIG_HARD_I2C /* I2C with hardware support */ 2859490a7f1SKumar Gala #undef CONFIG_SOFT_I2C /* I2C bit-banged */ 2869490a7f1SKumar Gala #define CONFIG_I2C_MULTI_BUS 2879490a7f1SKumar Gala #define CONFIG_I2C_CMD_TREE 2886d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_I2C_SPEED 400000 /* I2C speed and slave address */ 2896d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_I2C_SLAVE 0x7F 2906d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_I2C_NOPROBES {{0, 0x29}} /* Don't probe these addrs */ 2916d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_I2C_OFFSET 0x3000 2926d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_I2C2_OFFSET 0x3100 2939490a7f1SKumar Gala 2949490a7f1SKumar Gala /* 2959490a7f1SKumar Gala * I2C2 EEPROM 2969490a7f1SKumar Gala */ 29732628c50SJean-Christophe PLAGNIOL-VILLARD #define CONFIG_ID_EEPROM 29832628c50SJean-Christophe PLAGNIOL-VILLARD #ifdef CONFIG_ID_EEPROM 2996d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_I2C_EEPROM_NXID 3009490a7f1SKumar Gala #endif 3016d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_I2C_EEPROM_ADDR 0x57 3026d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1 3036d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_EEPROM_BUS_NUM 1 3049490a7f1SKumar Gala 3059490a7f1SKumar Gala /* 3069490a7f1SKumar Gala * General PCI 3079490a7f1SKumar Gala * Memory space is mapped 1-1, but I/O space must start from 0. 3089490a7f1SKumar Gala */ 3099490a7f1SKumar Gala 3109490a7f1SKumar Gala /* PCI view of System Memory */ 3116d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCI_MEMORY_BUS 0x00000000 3126d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCI_MEMORY_PHYS 0x00000000 3136d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCI_MEMORY_SIZE 0x80000000 3149490a7f1SKumar Gala 3156d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCI1_MEM_BASE 0x80000000 3166d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCI1_MEM_PHYS CONFIG_SYS_PCI1_MEM_BASE 3176d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCI1_MEM_SIZE 0x10000000 /* 256M */ 3186d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCI1_IO_BASE 0x00000000 3196d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCI1_IO_PHYS 0xffc00000 3206d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCI1_IO_SIZE 0x00010000 /* 64k */ 3219490a7f1SKumar Gala 3229490a7f1SKumar Gala /* controller 1, Slot 1, tgtid 1, Base address a000 */ 3236d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE1_MEM_BASE 0x90000000 3246d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE1_MEM_PHYS CONFIG_SYS_PCIE1_MEM_BASE 3256d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE1_MEM_SIZE 0x08000000 /* 128M */ 3266d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE1_IO_BASE 0x00000000 3276d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE1_IO_PHYS 0xffc10000 3286d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE1_IO_SIZE 0x00010000 /* 64k */ 3299490a7f1SKumar Gala 3309490a7f1SKumar Gala /* controller 2, Slot 2, tgtid 2, Base address 9000 */ 3316d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE2_MEM_BASE 0x98000000 3326d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE2_MEM_PHYS CONFIG_SYS_PCIE2_MEM_BASE 3336d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE2_MEM_SIZE 0x08000000 /* 128M */ 3346d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE2_IO_BASE 0x00000000 3356d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE2_IO_PHYS 0xffc20000 3366d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE2_IO_SIZE 0x00010000 /* 64k */ 3379490a7f1SKumar Gala 3389490a7f1SKumar Gala /* controller 3, direct to uli, tgtid 3, Base address 8000 */ 3396d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE3_MEM_BASE 0xa0000000 3406d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE3_MEM_PHYS CONFIG_SYS_PCIE3_MEM_BASE 3416d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE3_MEM_SIZE 0x20000000 /* 512M */ 3426d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE3_IO_BASE 0x00000000 3436d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE3_IO_PHYS 0xffc30000 3446d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE3_IO_SIZE 0x00010000 /* 64k */ 3459490a7f1SKumar Gala 3469490a7f1SKumar Gala #if defined(CONFIG_PCI) 3479490a7f1SKumar Gala 3489490a7f1SKumar Gala #define CONFIG_NET_MULTI 3499490a7f1SKumar Gala #define CONFIG_PCI_PNP /* do pci plug-and-play */ 3509490a7f1SKumar Gala 3519490a7f1SKumar Gala /*PCIE video card used*/ 3526d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define VIDEO_IO_OFFSET CONFIG_SYS_PCIE3_IO_PHYS 3539490a7f1SKumar Gala 3549490a7f1SKumar Gala /*PCI video card used*/ 3556d0f6bcfSJean-Christophe PLAGNIOL-VILLARD /*#define VIDEO_IO_OFFSET CONFIG_SYS_PCI1_IO_PHYS*/ 3569490a7f1SKumar Gala 3579490a7f1SKumar Gala /* video */ 3589490a7f1SKumar Gala #define CONFIG_VIDEO 3599490a7f1SKumar Gala 3609490a7f1SKumar Gala #if defined(CONFIG_VIDEO) 3619490a7f1SKumar Gala #define CONFIG_BIOSEMU 3629490a7f1SKumar Gala #define CONFIG_CFB_CONSOLE 3639490a7f1SKumar Gala #define CONFIG_VIDEO_SW_CURSOR 3649490a7f1SKumar Gala #define CONFIG_VGA_AS_SINGLE_DEVICE 3659490a7f1SKumar Gala #define CONFIG_ATI_RADEON_FB 3669490a7f1SKumar Gala #define CONFIG_VIDEO_LOGO 3679490a7f1SKumar Gala /*#define CONFIG_CONSOLE_CURSOR*/ 3686d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_ISA_IO_BASE_ADDRESS CONFIG_SYS_PCIE3_IO_PHYS 3699490a7f1SKumar Gala #endif 3709490a7f1SKumar Gala 3719490a7f1SKumar Gala #undef CONFIG_EEPRO100 3729490a7f1SKumar Gala #undef CONFIG_TULIP 3739490a7f1SKumar Gala #undef CONFIG_RTL8139 3749490a7f1SKumar Gala 3759490a7f1SKumar Gala #ifdef CONFIG_RTL8139 3769490a7f1SKumar Gala /* This macro is used by RTL8139 but not defined in PPC architecture */ 3779490a7f1SKumar Gala #define KSEG1ADDR(x) ({u32 _x=le32_to_cpu(*(u32 *)(x)); (&_x);}) 3789490a7f1SKumar Gala #define _IO_BASE 0x00000000 3799490a7f1SKumar Gala #endif 3809490a7f1SKumar Gala 3819490a7f1SKumar Gala #ifndef CONFIG_PCI_PNP 3826d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define PCI_ENET0_IOADDR CONFIG_SYS_PCI1_IO_BASE 3836d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define PCI_ENET0_MEMADDR CONFIG_SYS_PCI1_IO_BASE 3849490a7f1SKumar Gala #define PCI_IDSEL_NUMBER 0x11 /* IDSEL = AD11 */ 3859490a7f1SKumar Gala #endif 3869490a7f1SKumar Gala 3879490a7f1SKumar Gala #define CONFIG_PCI_SCAN_SHOW /* show pci devices on startup */ 3889490a7f1SKumar Gala 3899490a7f1SKumar Gala #endif /* CONFIG_PCI */ 3909490a7f1SKumar Gala 3919490a7f1SKumar Gala /* SATA */ 3929490a7f1SKumar Gala #define CONFIG_LIBATA 3939490a7f1SKumar Gala #define CONFIG_FSL_SATA 3949490a7f1SKumar Gala 3956d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_SATA_MAX_DEVICE 2 3969490a7f1SKumar Gala #define CONFIG_SATA1 3976d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_SATA1 CONFIG_SYS_MPC85xx_SATA1_ADDR 3986d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_SATA1_FLAGS FLAGS_DMA 3999490a7f1SKumar Gala #define CONFIG_SATA2 4006d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_SATA2 CONFIG_SYS_MPC85xx_SATA2_ADDR 4016d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_SATA2_FLAGS FLAGS_DMA 4029490a7f1SKumar Gala 4039490a7f1SKumar Gala #ifdef CONFIG_FSL_SATA 4049490a7f1SKumar Gala #define CONFIG_LBA48 4059490a7f1SKumar Gala #define CONFIG_CMD_SATA 4069490a7f1SKumar Gala #define CONFIG_DOS_PARTITION 4079490a7f1SKumar Gala #define CONFIG_CMD_EXT2 4089490a7f1SKumar Gala #endif 4099490a7f1SKumar Gala 4109490a7f1SKumar Gala #if defined(CONFIG_TSEC_ENET) 4119490a7f1SKumar Gala 4129490a7f1SKumar Gala #ifndef CONFIG_NET_MULTI 4139490a7f1SKumar Gala #define CONFIG_NET_MULTI 1 4149490a7f1SKumar Gala #endif 4159490a7f1SKumar Gala 4169490a7f1SKumar Gala #define CONFIG_MII 1 /* MII PHY management */ 4179490a7f1SKumar Gala #define CONFIG_MII_DEFAULT_TSEC 1 /* Allow unregistered phys */ 4189490a7f1SKumar Gala #define CONFIG_TSEC1 1 4199490a7f1SKumar Gala #define CONFIG_TSEC1_NAME "eTSEC1" 4209490a7f1SKumar Gala #define CONFIG_TSEC3 1 4219490a7f1SKumar Gala #define CONFIG_TSEC3_NAME "eTSEC3" 4229490a7f1SKumar Gala 4232e26d837SJason Jin #define CONFIG_FSL_SGMII_RISER 1 4242e26d837SJason Jin #define SGMII_RISER_PHY_OFFSET 0x1c 4252e26d837SJason Jin 4269490a7f1SKumar Gala #define TSEC1_PHY_ADDR 1 /* TSEC1 -> PHY1 */ 4279490a7f1SKumar Gala #define TSEC3_PHY_ADDR 0 /* TSEC3 -> PHY0 */ 4289490a7f1SKumar Gala 4299490a7f1SKumar Gala #define TSEC1_FLAGS (TSEC_GIGABIT | TSEC_REDUCED) 4309490a7f1SKumar Gala #define TSEC3_FLAGS (TSEC_GIGABIT | TSEC_REDUCED) 4319490a7f1SKumar Gala 4329490a7f1SKumar Gala #define TSEC1_PHYIDX 0 4339490a7f1SKumar Gala #define TSEC3_PHYIDX 0 4349490a7f1SKumar Gala 4359490a7f1SKumar Gala #define CONFIG_ETHPRIME "eTSEC1" 4369490a7f1SKumar Gala 4379490a7f1SKumar Gala #define CONFIG_PHY_GIGE 1 /* Include GbE speed/duplex detection */ 4389490a7f1SKumar Gala 4399490a7f1SKumar Gala #endif /* CONFIG_TSEC_ENET */ 4409490a7f1SKumar Gala 4419490a7f1SKumar Gala /* 4429490a7f1SKumar Gala * Environment 4439490a7f1SKumar Gala */ 4445a1aceb0SJean-Christophe PLAGNIOL-VILLARD #define CONFIG_ENV_IS_IN_FLASH 1 4456d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #if CONFIG_SYS_MONITOR_BASE > 0xfff80000 4460e8d1586SJean-Christophe PLAGNIOL-VILLARD #define CONFIG_ENV_ADDR 0xfff80000 4479490a7f1SKumar Gala #else 4486d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_ENV_ADDR (CONFIG_SYS_MONITOR_BASE + 0x60000) 4499490a7f1SKumar Gala #endif 4500e8d1586SJean-Christophe PLAGNIOL-VILLARD #define CONFIG_ENV_SIZE 0x2000 4510e8d1586SJean-Christophe PLAGNIOL-VILLARD #define CONFIG_ENV_SECT_SIZE 0x20000 /* 128K (one sector) */ 4529490a7f1SKumar Gala 4539490a7f1SKumar Gala #define CONFIG_LOADS_ECHO 1 /* echo on for serial download */ 4546d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_LOADS_BAUD_CHANGE 1 /* allow baudrate change */ 4559490a7f1SKumar Gala 4569490a7f1SKumar Gala /* 4579490a7f1SKumar Gala * Command line configuration. 4589490a7f1SKumar Gala */ 4599490a7f1SKumar Gala #include <config_cmd_default.h> 4609490a7f1SKumar Gala 4619490a7f1SKumar Gala #define CONFIG_CMD_IRQ 4629490a7f1SKumar Gala #define CONFIG_CMD_PING 4639490a7f1SKumar Gala #define CONFIG_CMD_I2C 4649490a7f1SKumar Gala #define CONFIG_CMD_MII 4659490a7f1SKumar Gala #define CONFIG_CMD_ELF 4661c9aa76bSKumar Gala #define CONFIG_CMD_IRQ 4671c9aa76bSKumar Gala #define CONFIG_CMD_SETEXPR 4689490a7f1SKumar Gala 4699490a7f1SKumar Gala #if defined(CONFIG_PCI) 4709490a7f1SKumar Gala #define CONFIG_CMD_PCI 4719490a7f1SKumar Gala #define CONFIG_CMD_BEDBUG 4729490a7f1SKumar Gala #define CONFIG_CMD_NET 4739490a7f1SKumar Gala #endif 4749490a7f1SKumar Gala 4759490a7f1SKumar Gala #undef CONFIG_WATCHDOG /* watchdog disabled */ 4769490a7f1SKumar Gala 4779490a7f1SKumar Gala /* 4789490a7f1SKumar Gala * Miscellaneous configurable options 4799490a7f1SKumar Gala */ 4806d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_LONGHELP /* undef to save memory */ 4819490a7f1SKumar Gala #define CONFIG_CMDLINE_EDITING /* Command-line editing */ 4826d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_LOAD_ADDR 0x2000000 /* default load address */ 4836d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PROMPT "=> " /* Monitor Command Prompt */ 4849490a7f1SKumar Gala #if defined(CONFIG_CMD_KGDB) 4856d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buffer Size */ 4869490a7f1SKumar Gala #else 4876d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */ 4889490a7f1SKumar Gala #endif 4896d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */ 4906d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MAXARGS 16 /* max number of command args */ 4916d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE /* Boot Argument Buffer Size */ 4926d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_HZ 1000 /* decrementer freq: 1ms ticks */ 4939490a7f1SKumar Gala 4949490a7f1SKumar Gala /* 4959490a7f1SKumar Gala * For booting Linux, the board info and command line data 4969490a7f1SKumar Gala * have to be in the first 8 MB of memory, since this is 4979490a7f1SKumar Gala * the maximum mapped by the Linux kernel during initialization. 4989490a7f1SKumar Gala */ 4996d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_BOOTMAPSZ (8 << 20) /* Initial Memory map for Linux*/ 5009490a7f1SKumar Gala 5019490a7f1SKumar Gala /* 5029490a7f1SKumar Gala * Internal Definitions 5039490a7f1SKumar Gala * 5049490a7f1SKumar Gala * Boot Flags 5059490a7f1SKumar Gala */ 5069490a7f1SKumar Gala #define BOOTFLAG_COLD 0x01 /* Normal Power-On: Boot from FLASH */ 5079490a7f1SKumar Gala #define BOOTFLAG_WARM 0x02 /* Software reboot */ 5089490a7f1SKumar Gala 5099490a7f1SKumar Gala #if defined(CONFIG_CMD_KGDB) 5109490a7f1SKumar Gala #define CONFIG_KGDB_BAUDRATE 230400 /* speed to run kgdb serial port */ 5119490a7f1SKumar Gala #define CONFIG_KGDB_SER_INDEX 2 /* which serial port to use */ 5129490a7f1SKumar Gala #endif 5139490a7f1SKumar Gala 5149490a7f1SKumar Gala /* 5159490a7f1SKumar Gala * Environment Configuration 5169490a7f1SKumar Gala */ 5179490a7f1SKumar Gala 5189490a7f1SKumar Gala /* The mac addresses for all ethernet interface */ 5199490a7f1SKumar Gala #if defined(CONFIG_TSEC_ENET) 5209490a7f1SKumar Gala #define CONFIG_HAS_ETH0 5219490a7f1SKumar Gala #define CONFIG_ETHADDR 00:E0:0C:02:00:FD 5229490a7f1SKumar Gala #define CONFIG_HAS_ETH1 5239490a7f1SKumar Gala #define CONFIG_ETH1ADDR 00:E0:0C:02:01:FD 5249490a7f1SKumar Gala #define CONFIG_HAS_ETH2 5259490a7f1SKumar Gala #define CONFIG_ETH2ADDR 00:E0:0C:02:02:FD 5269490a7f1SKumar Gala #define CONFIG_HAS_ETH3 5279490a7f1SKumar Gala #define CONFIG_ETH3ADDR 00:E0:0C:02:03:FD 5289490a7f1SKumar Gala #endif 5299490a7f1SKumar Gala 5309490a7f1SKumar Gala #define CONFIG_IPADDR 192.168.1.254 5319490a7f1SKumar Gala 5329490a7f1SKumar Gala #define CONFIG_HOSTNAME unknown 5339490a7f1SKumar Gala #define CONFIG_ROOTPATH /opt/nfsroot 5349490a7f1SKumar Gala #define CONFIG_BOOTFILE uImage 5359490a7f1SKumar Gala #define CONFIG_UBOOTPATH u-boot.bin /* U-Boot image on TFTP server */ 5369490a7f1SKumar Gala 5379490a7f1SKumar Gala #define CONFIG_SERVERIP 192.168.1.1 5389490a7f1SKumar Gala #define CONFIG_GATEWAYIP 192.168.1.1 5399490a7f1SKumar Gala #define CONFIG_NETMASK 255.255.255.0 5409490a7f1SKumar Gala 5419490a7f1SKumar Gala /* default location for tftp and bootm */ 5429490a7f1SKumar Gala #define CONFIG_LOADADDR 1000000 5439490a7f1SKumar Gala 5449490a7f1SKumar Gala #define CONFIG_BOOTDELAY 10 /* -1 disables auto-boot */ 5459490a7f1SKumar Gala #undef CONFIG_BOOTARGS /* the boot command will set bootargs */ 5469490a7f1SKumar Gala 5479490a7f1SKumar Gala #define CONFIG_BAUDRATE 115200 5489490a7f1SKumar Gala 5499490a7f1SKumar Gala #define CONFIG_EXTRA_ENV_SETTINGS \ 5509490a7f1SKumar Gala "netdev=eth0\0" \ 5519490a7f1SKumar Gala "uboot=" MK_STR(CONFIG_UBOOTPATH) "\0" \ 5529490a7f1SKumar Gala "tftpflash=tftpboot $loadaddr $uboot; " \ 5539490a7f1SKumar Gala "protect off " MK_STR(TEXT_BASE) " +$filesize; " \ 5549490a7f1SKumar Gala "erase " MK_STR(TEXT_BASE) " +$filesize; " \ 5559490a7f1SKumar Gala "cp.b $loadaddr " MK_STR(TEXT_BASE) " $filesize; " \ 5569490a7f1SKumar Gala "protect on " MK_STR(TEXT_BASE) " +$filesize; " \ 5579490a7f1SKumar Gala "cmp.b $loadaddr " MK_STR(TEXT_BASE) " $filesize\0" \ 5589490a7f1SKumar Gala "consoledev=ttyS0\0" \ 5599490a7f1SKumar Gala "ramdiskaddr=2000000\0" \ 5609490a7f1SKumar Gala "ramdiskfile=8536ds/ramdisk.uboot\0" \ 5619490a7f1SKumar Gala "fdtaddr=c00000\0" \ 5629490a7f1SKumar Gala "fdtfile=8536ds/mpc8536ds.dtb\0" \ 5639490a7f1SKumar Gala "bdev=sda3\0" 5649490a7f1SKumar Gala 5659490a7f1SKumar Gala #define CONFIG_HDBOOT \ 5669490a7f1SKumar Gala "setenv bootargs root=/dev/$bdev rw " \ 5679490a7f1SKumar Gala "console=$consoledev,$baudrate $othbootargs;" \ 5689490a7f1SKumar Gala "tftp $loadaddr $bootfile;" \ 5699490a7f1SKumar Gala "tftp $fdtaddr $fdtfile;" \ 5709490a7f1SKumar Gala "bootm $loadaddr - $fdtaddr" 5719490a7f1SKumar Gala 5729490a7f1SKumar Gala #define CONFIG_NFSBOOTCOMMAND \ 5739490a7f1SKumar Gala "setenv bootargs root=/dev/nfs rw " \ 5749490a7f1SKumar Gala "nfsroot=$serverip:$rootpath " \ 5759490a7f1SKumar Gala "ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname:$netdev:off " \ 5769490a7f1SKumar Gala "console=$consoledev,$baudrate $othbootargs;" \ 5779490a7f1SKumar Gala "tftp $loadaddr $bootfile;" \ 5789490a7f1SKumar Gala "tftp $fdtaddr $fdtfile;" \ 5799490a7f1SKumar Gala "bootm $loadaddr - $fdtaddr" 5809490a7f1SKumar Gala 5819490a7f1SKumar Gala #define CONFIG_RAMBOOTCOMMAND \ 5829490a7f1SKumar Gala "setenv bootargs root=/dev/ram rw " \ 5839490a7f1SKumar Gala "console=$consoledev,$baudrate $othbootargs;" \ 5849490a7f1SKumar Gala "tftp $ramdiskaddr $ramdiskfile;" \ 5859490a7f1SKumar Gala "tftp $loadaddr $bootfile;" \ 5869490a7f1SKumar Gala "tftp $fdtaddr $fdtfile;" \ 5879490a7f1SKumar Gala "bootm $loadaddr $ramdiskaddr $fdtaddr" 5889490a7f1SKumar Gala 5899490a7f1SKumar Gala #define CONFIG_BOOTCOMMAND CONFIG_HDBOOT 5909490a7f1SKumar Gala 5919490a7f1SKumar Gala #endif /* __CONFIG_H */ 592