19490a7f1SKumar Gala /* 24bc6eb79SVivek Mahajan * Copyright 2008-2009 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 37c51fc5d5SKumar Gala #define CONFIG_FSL_ELBC 1 /* Has Enhanced localbus controller */ 389490a7f1SKumar Gala #define CONFIG_PCI 1 /* Enable PCI/PCIE */ 399490a7f1SKumar Gala #define CONFIG_PCI1 1 /* Enable PCI controller 1 */ 409490a7f1SKumar Gala #define CONFIG_PCIE1 1 /* PCIE controler 1 (slot 1) */ 419490a7f1SKumar Gala #define CONFIG_PCIE2 1 /* PCIE controler 2 (slot 2) */ 429490a7f1SKumar Gala #define CONFIG_PCIE3 1 /* PCIE controler 3 (ULI bridge) */ 439490a7f1SKumar Gala #define CONFIG_FSL_PCI_INIT 1 /* Use common FSL init code */ 449490a7f1SKumar Gala #define CONFIG_FSL_PCIE_RESET 1 /* need PCIe reset errata */ 450151cbacSKumar Gala #define CONFIG_SYS_PCI_64BIT 1 /* enable 64-bit PCI resources */ 469490a7f1SKumar Gala 479490a7f1SKumar Gala #define CONFIG_FSL_LAW 1 /* Use common FSL init code */ 48*f6155c6fSRoy Zang #define CONFIG_E1000 1 /* Defind e1000 pci Ethernet card*/ 499490a7f1SKumar Gala 509490a7f1SKumar Gala #define CONFIG_TSEC_ENET /* tsec ethernet support */ 519490a7f1SKumar Gala #define CONFIG_ENV_OVERWRITE 529490a7f1SKumar Gala 539490a7f1SKumar Gala /* 549490a7f1SKumar Gala * When initializing flash, if we cannot find the manufacturer ID, 559490a7f1SKumar Gala * assume this is the AMD flash associated with the CDS board. 569490a7f1SKumar Gala * This allows booting from a promjet. 579490a7f1SKumar Gala */ 589490a7f1SKumar Gala #define CONFIG_ASSUME_AMD_FLASH 599490a7f1SKumar Gala 609490a7f1SKumar Gala #ifndef __ASSEMBLY__ 619490a7f1SKumar Gala extern unsigned long get_board_sys_clk(unsigned long dummy); 629490a7f1SKumar Gala extern unsigned long get_board_ddr_clk(unsigned long dummy); 639490a7f1SKumar Gala #endif 649490a7f1SKumar Gala #define CONFIG_SYS_CLK_FREQ get_board_sys_clk(0) /* sysclk for MPC85xx */ 65c0391111SJason Jin #define CONFIG_DDR_CLK_FREQ get_board_ddr_clk(0) 669490a7f1SKumar Gala #define CONFIG_ICS307_REFCLK_HZ 33333000 /* ICS307 clock chip ref freq */ 679490a7f1SKumar Gala #define CONFIG_GET_CLK_FROM_ICS307 /* decode sysclk and ddrclk freq 689490a7f1SKumar Gala from ICS307 instead of switches */ 699490a7f1SKumar Gala 709490a7f1SKumar Gala /* 719490a7f1SKumar Gala * These can be toggled for performance analysis, otherwise use default. 729490a7f1SKumar Gala */ 739490a7f1SKumar Gala #define CONFIG_L2_CACHE /* toggle L2 cache */ 749490a7f1SKumar Gala #define CONFIG_BTB /* toggle branch predition */ 759490a7f1SKumar Gala 7680522dc8SAndy Fleming #define CONFIG_BOARD_EARLY_INIT_F 1 /* Call board_pre_init */ 7780522dc8SAndy Fleming 789490a7f1SKumar Gala #define CONFIG_ENABLE_36BIT_PHYS 1 799490a7f1SKumar Gala 806d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MEMTEST_START 0x00000000 /* memtest works on */ 816d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MEMTEST_END 0x7fffffff 829490a7f1SKumar Gala #define CONFIG_PANIC_HANG /* do not reset board on panic */ 839490a7f1SKumar Gala 849490a7f1SKumar Gala /* 859490a7f1SKumar Gala * Base addresses -- Note these are effective addresses where the 869490a7f1SKumar Gala * actual resources get mapped (not physical addresses) 879490a7f1SKumar Gala */ 886d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000 /* CCSRBAR Default */ 896d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_CCSRBAR 0xffe00000 /* relocated CCSRBAR */ 906d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_CCSRBAR_PHYS CONFIG_SYS_CCSRBAR /* physical addr of CCSRBAR */ 916d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_IMMR CONFIG_SYS_CCSRBAR /* PQII uses CONFIG_SYS_IMMR */ 929490a7f1SKumar Gala 936d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCI1_ADDR (CONFIG_SYS_CCSRBAR+0x8000) 946d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE1_ADDR (CONFIG_SYS_CCSRBAR+0xa000) 956d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE2_ADDR (CONFIG_SYS_CCSRBAR+0x9000) 966d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE3_ADDR (CONFIG_SYS_CCSRBAR+0xb000) 979490a7f1SKumar Gala 989490a7f1SKumar Gala /* DDR Setup */ 999490a7f1SKumar Gala #define CONFIG_FSL_DDR2 1009490a7f1SKumar Gala #undef CONFIG_FSL_DDR_INTERACTIVE 1019490a7f1SKumar Gala #define CONFIG_SPD_EEPROM /* Use SPD EEPROM for DDR setup */ 1029490a7f1SKumar Gala #define CONFIG_DDR_SPD 1039490a7f1SKumar Gala #undef CONFIG_DDR_DLL 1049490a7f1SKumar Gala 1059b0ad1b1SDave Liu #define CONFIG_ECC_INIT_VIA_DDRCONTROLLER /* DDR controller or DMA? */ 1069490a7f1SKumar Gala #define CONFIG_MEM_INIT_VALUE 0xDeadBeef 1079490a7f1SKumar Gala 1086d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_SDRAM_BASE 0x00000000 1096d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_SDRAM_BASE CONFIG_SYS_DDR_SDRAM_BASE 1109490a7f1SKumar Gala 1119490a7f1SKumar Gala #define CONFIG_NUM_DDR_CONTROLLERS 1 1129490a7f1SKumar Gala #define CONFIG_DIMM_SLOTS_PER_CTLR 1 1139490a7f1SKumar Gala #define CONFIG_CHIP_SELECTS_PER_CTRL 2 1149490a7f1SKumar Gala 1159490a7f1SKumar Gala /* I2C addresses of SPD EEPROMs */ 1169490a7f1SKumar Gala #define SPD_EEPROM_ADDRESS 0x51 /* CTLR 0 DIMM 0 */ 1176d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_SPD_BUS_NUM 1 1189490a7f1SKumar Gala 1199490a7f1SKumar Gala /* These are used when DDR doesn't use SPD. */ 1206d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_SDRAM_SIZE 256 /* DDR is 256MB */ 1216d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_CS0_BNDS 0x0000001F 1226d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_CS0_CONFIG 0x80010102 /* Enable, no interleaving */ 1236d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_TIMING_3 0x00000000 1246d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_TIMING_0 0x00260802 1256d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_TIMING_1 0x3935d322 1266d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_TIMING_2 0x14904cc8 1276d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_MODE_1 0x00480432 1286d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_MODE_2 0x00000000 1296d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_INTERVAL 0x06180100 1306d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_DATA_INIT 0xdeadbeef 1316d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_CLK_CTRL 0x03800000 1326d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_OCD_CTRL 0x00000000 1336d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_OCD_STATUS 0x00000000 1346d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_CONTROL 0xC3008000 /* Type = DDR2 */ 1356d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_CONTROL2 0x04400010 1369490a7f1SKumar Gala 1376d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_ERR_INT_EN 0x0000000d 1386d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_ERR_DIS 0x00000000 1396d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_SBE 0x00010000 1409490a7f1SKumar Gala 1419490a7f1SKumar Gala /* Make sure required options are set */ 1429490a7f1SKumar Gala #ifndef CONFIG_SPD_EEPROM 1439490a7f1SKumar Gala #error ("CONFIG_SPD_EEPROM is required") 1449490a7f1SKumar Gala #endif 1459490a7f1SKumar Gala 1469490a7f1SKumar Gala #undef CONFIG_CLOCKS_IN_MHZ 1479490a7f1SKumar Gala 1489490a7f1SKumar Gala 1499490a7f1SKumar Gala /* 1509490a7f1SKumar Gala * Memory map -- xxx -this is wrong, needs updating 1519490a7f1SKumar Gala * 1529490a7f1SKumar Gala * 0x0000_0000 0x7fff_ffff DDR 2G Cacheable 1539490a7f1SKumar Gala * 0x8000_0000 0xbfff_ffff PCI Express Mem 1G non-cacheable 1549490a7f1SKumar Gala * 0xc000_0000 0xdfff_ffff PCI 512M non-cacheable 1559490a7f1SKumar Gala * 0xe100_0000 0xe3ff_ffff PCI IO range 4M non-cacheable 1569490a7f1SKumar Gala * 1579490a7f1SKumar Gala * Localbus cacheable (TBD) 1589490a7f1SKumar Gala * 0xXXXX_XXXX 0xXXXX_XXXX SRAM YZ M Cacheable 1599490a7f1SKumar Gala * 1609490a7f1SKumar Gala * Localbus non-cacheable 161c57fc289SJason Jin * 0xe000_0000 0xe7ff_ffff Promjet/free 128M non-cacheable 1629490a7f1SKumar Gala * 0xe800_0000 0xefff_ffff FLASH 128M non-cacheable 163c57fc289SJason Jin * 0xffa0_0000 0xffaf_ffff NAND 1M non-cacheable 1649490a7f1SKumar Gala * 0xffdf_0000 0xffdf_7fff PIXIS 32K non-cacheable TLB0 1659490a7f1SKumar Gala * 0xffd0_0000 0xffd0_3fff L1 for stack 16K Cacheable TLB0 1669490a7f1SKumar Gala * 0xffe0_0000 0xffef_ffff CCSR 1M non-cacheable 1679490a7f1SKumar Gala */ 1689490a7f1SKumar Gala 1699490a7f1SKumar Gala /* 1709490a7f1SKumar Gala * Local Bus Definitions 1719490a7f1SKumar Gala */ 1726d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_FLASH_BASE 0xe0000000 /* start of FLASH 128M */ 173c953ddfdSKumar Gala #define CONFIG_SYS_FLASH_BASE_PHYS CONFIG_SYS_FLASH_BASE 1749490a7f1SKumar Gala 175c953ddfdSKumar Gala #define CONFIG_SYS_BR0_PRELIM (BR_PHYS_ADDR((CONFIG_SYS_FLASH_BASE_PHYS + 0x8000000)) | BR_PS_16 | BR_V) 1766d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_OR0_PRELIM 0xf8000ff7 1779490a7f1SKumar Gala 178c953ddfdSKumar Gala #define CONFIG_SYS_BR1_PRELIM (BR_PHYS_ADDR(CONFIG_SYS_FLASH_BASE_PHYS) | BR_PS_16 | BR_V) 1796d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_OR1_PRELIM 0xf8000ff7 1809490a7f1SKumar Gala 1816d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_FLASH_BANKS_LIST {CONFIG_SYS_FLASH_BASE + 0x8000000, CONFIG_SYS_FLASH_BASE} 1826d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_FLASH_QUIET_TEST 1839490a7f1SKumar Gala #define CONFIG_FLASH_SHOW_PROGRESS 45 /* count down from 45/5: 9..1 */ 1849490a7f1SKumar Gala 1856d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MAX_FLASH_BANKS 2 /* number of banks */ 1866d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MAX_FLASH_SECT 1024 /* sectors per device */ 1876d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #undef CONFIG_SYS_FLASH_CHECKSUM 1886d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_FLASH_ERASE_TOUT 60000 /* Flash Erase Timeout (ms) */ 1896d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_FLASH_WRITE_TOUT 500 /* Flash Write Timeout (ms) */ 1909490a7f1SKumar Gala 1916d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MONITOR_BASE TEXT_BASE /* start of monitor */ 1929490a7f1SKumar Gala 1939490a7f1SKumar Gala #define CONFIG_FLASH_CFI_DRIVER 1946d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_FLASH_CFI 1956d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_FLASH_EMPTY_INFO 1966d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_FLASH_AMD_CHECK_DQ7 1979490a7f1SKumar Gala 1989490a7f1SKumar Gala #define CONFIG_BOARD_EARLY_INIT_R /* call board_early_init_r function */ 1999490a7f1SKumar Gala 2009490a7f1SKumar Gala #define CONFIG_FSL_PIXIS 1 /* use common PIXIS code */ 2019490a7f1SKumar Gala #define PIXIS_BASE 0xffdf0000 /* PIXIS registers */ 20252b565f5SKumar Gala #define PIXIS_BASE_PHYS PIXIS_BASE 2039490a7f1SKumar Gala 20452b565f5SKumar Gala #define CONFIG_SYS_BR3_PRELIM (BR_PHYS_ADDR(PIXIS_BASE_PHYS) | BR_PS_8 | BR_V) 2056d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_OR3_PRELIM 0xffffeff7 /* 32KB but only 4k mapped */ 2069490a7f1SKumar Gala 2079490a7f1SKumar Gala #define PIXIS_ID 0x0 /* Board ID at offset 0 */ 2089490a7f1SKumar Gala #define PIXIS_VER 0x1 /* Board version at offset 1 */ 2099490a7f1SKumar Gala #define PIXIS_PVER 0x2 /* PIXIS FPGA version at offset 2 */ 2109490a7f1SKumar Gala #define PIXIS_CSR 0x3 /* PIXIS General control/status register */ 2119490a7f1SKumar Gala #define PIXIS_RST 0x4 /* PIXIS Reset Control register */ 2129490a7f1SKumar Gala #define PIXIS_PWR 0x5 /* PIXIS Power status register */ 2139490a7f1SKumar Gala #define PIXIS_AUX 0x6 /* Auxiliary 1 register */ 2149490a7f1SKumar Gala #define PIXIS_SPD 0x7 /* Register for SYSCLK speed */ 2159490a7f1SKumar Gala #define PIXIS_AUX2 0x8 /* Auxiliary 2 register */ 2169490a7f1SKumar Gala #define PIXIS_VCTL 0x10 /* VELA Control Register */ 2179490a7f1SKumar Gala #define PIXIS_VSTAT 0x11 /* VELA Status Register */ 2189490a7f1SKumar Gala #define PIXIS_VCFGEN0 0x12 /* VELA Config Enable 0 */ 2199490a7f1SKumar Gala #define PIXIS_VCFGEN1 0x13 /* VELA Config Enable 1 */ 2209490a7f1SKumar Gala #define PIXIS_VCORE0 0x14 /* VELA VCORE0 Register */ 2219490a7f1SKumar Gala #define PIXIS_VBOOT 0x16 /* VELA VBOOT Register */ 2226bb5b412SKumar Gala #define PIXIS_VBOOT_LBMAP 0xe0 /* VBOOT - CFG_LBMAP */ 2236bb5b412SKumar Gala #define PIXIS_VBOOT_LBMAP_NOR0 0x00 /* cfg_lbmap - boot from NOR 0 */ 2246bb5b412SKumar Gala #define PIXIS_VBOOT_LBMAP_NOR1 0x01 /* cfg_lbmap - boot from NOR 1 */ 2256bb5b412SKumar Gala #define PIXIS_VBOOT_LBMAP_NOR2 0x02 /* cfg_lbmap - boot from NOR 2 */ 2266bb5b412SKumar Gala #define PIXIS_VBOOT_LBMAP_NOR3 0x03 /* cfg_lbmap - boot from NOR 3 */ 2276bb5b412SKumar Gala #define PIXIS_VBOOT_LBMAP_PJET 0x04 /* cfg_lbmap - boot from projet */ 2286bb5b412SKumar Gala #define PIXIS_VBOOT_LBMAP_NAND 0x05 /* cfg_lbmap - boot from NAND */ 2299490a7f1SKumar Gala #define PIXIS_VSPEED0 0x17 /* VELA VSpeed 0 */ 2309490a7f1SKumar Gala #define PIXIS_VSPEED1 0x18 /* VELA VSpeed 1 */ 2319490a7f1SKumar Gala #define PIXIS_VSPEED2 0x19 /* VELA VSpeed 2 */ 2329490a7f1SKumar Gala #define PIXIS_VSYSCLK0 0x1A /* VELA SYSCLK0 Register */ 2339490a7f1SKumar Gala #define PIXIS_VSYSCLK1 0x1B /* VELA SYSCLK1 Register */ 2349490a7f1SKumar Gala #define PIXIS_VSYSCLK2 0x1C /* VELA SYSCLK2 Register */ 2359490a7f1SKumar Gala #define PIXIS_VDDRCLK0 0x1D /* VELA DDRCLK0 Register */ 2369490a7f1SKumar Gala #define PIXIS_VDDRCLK1 0x1E /* VELA DDRCLK1 Register */ 2379490a7f1SKumar Gala #define PIXIS_VDDRCLK2 0x1F /* VELA DDRCLK2 Register */ 2389490a7f1SKumar Gala #define PIXIS_VWATCH 0x24 /* Watchdog Register */ 2399490a7f1SKumar Gala #define PIXIS_LED 0x25 /* LED Register */ 2409490a7f1SKumar Gala 2419490a7f1SKumar Gala /* old pixis referenced names */ 2429490a7f1SKumar Gala #define PIXIS_VCLKH 0x19 /* VELA VCLKH register */ 2439490a7f1SKumar Gala #define PIXIS_VCLKL 0x1A /* VELA VCLKL register */ 2446d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PIXIS_VBOOT_MASK 0xc0 2459490a7f1SKumar Gala 2466d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_INIT_RAM_LOCK 1 2476d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_INIT_RAM_ADDR 0xffd00000 /* Initial L1 address */ 2486d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_INIT_RAM_END 0x00004000 /* End of used area in RAM */ 2499490a7f1SKumar Gala 2506d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_GBL_DATA_SIZE 128 /* num bytes initial data */ 2516d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE) 2526d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET 2539490a7f1SKumar Gala 2546d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MONITOR_LEN (256 * 1024) /* Reserve 256 kB for Mon */ 2556d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MALLOC_LEN (1024 * 1024) /* Reserved for malloc */ 2569490a7f1SKumar Gala 257c57fc289SJason Jin #define CONFIG_SYS_NAND_BASE 0xffa00000 258c57fc289SJason Jin #define CONFIG_SYS_NAND_BASE_PHYS CONFIG_SYS_NAND_BASE 259c57fc289SJason Jin #define CONFIG_SYS_NAND_BASE_LIST { CONFIG_SYS_NAND_BASE,\ 260c57fc289SJason Jin CONFIG_SYS_NAND_BASE + 0x40000, \ 261c57fc289SJason Jin CONFIG_SYS_NAND_BASE + 0x80000, \ 262c57fc289SJason Jin CONFIG_SYS_NAND_BASE + 0xC0000} 263c57fc289SJason Jin #define CONFIG_SYS_MAX_NAND_DEVICE 4 264c57fc289SJason Jin #define CONFIG_MTD_NAND_VERIFY_WRITE 265c57fc289SJason Jin #define CONFIG_CMD_NAND 1 266c57fc289SJason Jin #define CONFIG_NAND_FSL_ELBC 1 267c57fc289SJason Jin #define CONFIG_SYS_NAND_BLOCK_SIZE (128 * 1024) 268c57fc289SJason Jin 269c57fc289SJason Jin /* NAND flash config */ 27072a9414aSKumar Gala #define CONFIG_NAND_BR_PRELIM (BR_PHYS_ADDR(CONFIG_SYS_NAND_BASE_PHYS) \ 271c57fc289SJason Jin | (2<<BR_DECC_SHIFT) /* Use HW ECC */ \ 272c57fc289SJason Jin | BR_PS_8 /* Port Size = 8 bit */ \ 273c57fc289SJason Jin | BR_MS_FCM /* MSEL = FCM */ \ 274c57fc289SJason Jin | BR_V) /* valid */ 275c57fc289SJason Jin #define CONFIG_NAND_OR_PRELIM (0xFFFC0000 /* length 256K */ \ 276c57fc289SJason Jin | OR_FCM_PGS /* Large Page*/ \ 277c57fc289SJason Jin | OR_FCM_CSCT \ 278c57fc289SJason Jin | OR_FCM_CST \ 279c57fc289SJason Jin | OR_FCM_CHT \ 280c57fc289SJason Jin | OR_FCM_SCY_1 \ 281c57fc289SJason Jin | OR_FCM_TRLX \ 282c57fc289SJason Jin | OR_FCM_EHTR) 283c57fc289SJason Jin 284c57fc289SJason Jin #define CONFIG_SYS_BR2_PRELIM CONFIG_NAND_BR_PRELIM /* NAND Base Address */ 285c57fc289SJason Jin #define CONFIG_SYS_OR2_PRELIM CONFIG_NAND_OR_PRELIM /* NAND Options */ 286c57fc289SJason Jin 28772a9414aSKumar Gala #define CONFIG_SYS_BR4_PRELIM (BR_PHYS_ADDR((CONFIG_SYS_NAND_BASE_PHYS + 0x40000))\ 288c57fc289SJason Jin | (2<<BR_DECC_SHIFT) /* Use HW ECC */ \ 289c57fc289SJason Jin | BR_PS_8 /* Port Size = 8 bit */ \ 290c57fc289SJason Jin | BR_MS_FCM /* MSEL = FCM */ \ 291c57fc289SJason Jin | BR_V) /* valid */ 292c57fc289SJason Jin #define CONFIG_SYS_OR4_PRELIM CONFIG_NAND_OR_PRELIM /* NAND Options */ 29372a9414aSKumar Gala #define CONFIG_SYS_BR5_PRELIM (BR_PHYS_ADDR((CONFIG_SYS_NAND_BASE_PHYS + 0x80000))\ 294c57fc289SJason Jin | (2<<BR_DECC_SHIFT) /* Use HW ECC */ \ 295c57fc289SJason Jin | BR_PS_8 /* Port Size = 8 bit */ \ 296c57fc289SJason Jin | BR_MS_FCM /* MSEL = FCM */ \ 297c57fc289SJason Jin | BR_V) /* valid */ 298c57fc289SJason Jin #define CONFIG_SYS_OR5_PRELIM CONFIG_NAND_OR_PRELIM /* NAND Options */ 299c57fc289SJason Jin 30072a9414aSKumar Gala #define CONFIG_SYS_BR6_PRELIM (BR_PHYS_ADDR((CONFIG_SYS_NAND_BASE_PHYS + 0xc0000))\ 301c57fc289SJason Jin | (2<<BR_DECC_SHIFT) /* Use HW ECC */ \ 302c57fc289SJason Jin | BR_PS_8 /* Port Size = 8 bit */ \ 303c57fc289SJason Jin | BR_MS_FCM /* MSEL = FCM */ \ 304c57fc289SJason Jin | BR_V) /* valid */ 305c57fc289SJason Jin #define CONFIG_SYS_OR6_PRELIM CONFIG_NAND_OR_PRELIM /* NAND Options */ 306c57fc289SJason Jin 3079490a7f1SKumar Gala /* Serial Port - controlled on board with jumper J8 3089490a7f1SKumar Gala * open - index 2 3099490a7f1SKumar Gala * shorted - index 1 3109490a7f1SKumar Gala */ 3119490a7f1SKumar Gala #define CONFIG_CONS_INDEX 1 3129490a7f1SKumar Gala #undef CONFIG_SERIAL_SOFTWARE_FIFO 3136d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_NS16550 3146d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_NS16550_SERIAL 3156d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_NS16550_REG_SIZE 1 3166d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_NS16550_CLK get_bus_freq(0) 3179490a7f1SKumar Gala 3186d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_BAUDRATE_TABLE \ 3199490a7f1SKumar Gala {300, 600, 1200, 2400, 4800, 9600, 19200, 38400,115200} 3209490a7f1SKumar Gala 3216d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_NS16550_COM1 (CONFIG_SYS_CCSRBAR+0x4500) 3226d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_NS16550_COM2 (CONFIG_SYS_CCSRBAR+0x4600) 3239490a7f1SKumar Gala 3249490a7f1SKumar Gala /* Use the HUSH parser */ 3256d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_HUSH_PARSER 3266d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #ifdef CONFIG_SYS_HUSH_PARSER 3276d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PROMPT_HUSH_PS2 "> " 3289490a7f1SKumar Gala #endif 3299490a7f1SKumar Gala 3309490a7f1SKumar Gala /* 3319490a7f1SKumar Gala * Pass open firmware flat tree 3329490a7f1SKumar Gala */ 3339490a7f1SKumar Gala #define CONFIG_OF_LIBFDT 1 3349490a7f1SKumar Gala #define CONFIG_OF_BOARD_SETUP 1 3359490a7f1SKumar Gala #define CONFIG_OF_STDOUT_VIA_ALIAS 1 3369490a7f1SKumar Gala 3376d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_64BIT_STRTOUL 1 3386d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_64BIT_VSPRINTF 1 3399490a7f1SKumar Gala 3409490a7f1SKumar Gala 3419490a7f1SKumar Gala /* 3429490a7f1SKumar Gala * I2C 3439490a7f1SKumar Gala */ 3449490a7f1SKumar Gala #define CONFIG_FSL_I2C /* Use FSL common I2C driver */ 3459490a7f1SKumar Gala #define CONFIG_HARD_I2C /* I2C with hardware support */ 3469490a7f1SKumar Gala #undef CONFIG_SOFT_I2C /* I2C bit-banged */ 3479490a7f1SKumar Gala #define CONFIG_I2C_MULTI_BUS 3486d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_I2C_SPEED 400000 /* I2C speed and slave address */ 3496d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_I2C_SLAVE 0x7F 3506d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_I2C_NOPROBES {{0, 0x29}} /* Don't probe these addrs */ 3516d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_I2C_OFFSET 0x3000 3526d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_I2C2_OFFSET 0x3100 3539490a7f1SKumar Gala 3549490a7f1SKumar Gala /* 3559490a7f1SKumar Gala * I2C2 EEPROM 3569490a7f1SKumar Gala */ 35732628c50SJean-Christophe PLAGNIOL-VILLARD #define CONFIG_ID_EEPROM 35832628c50SJean-Christophe PLAGNIOL-VILLARD #ifdef CONFIG_ID_EEPROM 3596d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_I2C_EEPROM_NXID 3609490a7f1SKumar Gala #endif 3616d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_I2C_EEPROM_ADDR 0x57 3626d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1 3636d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_EEPROM_BUS_NUM 1 3649490a7f1SKumar Gala 3659490a7f1SKumar Gala /* 3669490a7f1SKumar Gala * General PCI 3679490a7f1SKumar Gala * Memory space is mapped 1-1, but I/O space must start from 0. 3689490a7f1SKumar Gala */ 3699490a7f1SKumar Gala 3705af0fdd8SKumar Gala #define CONFIG_SYS_PCI1_MEM_VIRT 0x80000000 37110795f42SKumar Gala #define CONFIG_SYS_PCI1_MEM_BUS 0x80000000 3725af0fdd8SKumar Gala #define CONFIG_SYS_PCI1_MEM_PHYS 0x80000000 3736d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCI1_MEM_SIZE 0x10000000 /* 256M */ 374aca5f018SKumar Gala #define CONFIG_SYS_PCI1_IO_VIRT 0xffc00000 3755f91ef6aSKumar Gala #define CONFIG_SYS_PCI1_IO_BUS 0x00000000 3766d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCI1_IO_PHYS 0xffc00000 3776d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCI1_IO_SIZE 0x00010000 /* 64k */ 3789490a7f1SKumar Gala 3799490a7f1SKumar Gala /* controller 1, Slot 1, tgtid 1, Base address a000 */ 3805af0fdd8SKumar Gala #define CONFIG_SYS_PCIE1_MEM_VIRT 0x90000000 38110795f42SKumar Gala #define CONFIG_SYS_PCIE1_MEM_BUS 0x90000000 3825af0fdd8SKumar Gala #define CONFIG_SYS_PCIE1_MEM_PHYS 0x90000000 3836d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE1_MEM_SIZE 0x08000000 /* 128M */ 384aca5f018SKumar Gala #define CONFIG_SYS_PCIE1_IO_VIRT 0xffc10000 3855f91ef6aSKumar Gala #define CONFIG_SYS_PCIE1_IO_BUS 0x00000000 3866d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE1_IO_PHYS 0xffc10000 3876d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE1_IO_SIZE 0x00010000 /* 64k */ 3889490a7f1SKumar Gala 3899490a7f1SKumar Gala /* controller 2, Slot 2, tgtid 2, Base address 9000 */ 3905af0fdd8SKumar Gala #define CONFIG_SYS_PCIE2_MEM_VIRT 0x98000000 39110795f42SKumar Gala #define CONFIG_SYS_PCIE2_MEM_BUS 0x98000000 3925af0fdd8SKumar Gala #define CONFIG_SYS_PCIE2_MEM_PHYS 0x98000000 3936d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE2_MEM_SIZE 0x08000000 /* 128M */ 394aca5f018SKumar Gala #define CONFIG_SYS_PCIE2_IO_VIRT 0xffc20000 3955f91ef6aSKumar Gala #define CONFIG_SYS_PCIE2_IO_BUS 0x00000000 3966d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE2_IO_PHYS 0xffc20000 3976d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE2_IO_SIZE 0x00010000 /* 64k */ 3989490a7f1SKumar Gala 3999490a7f1SKumar Gala /* controller 3, direct to uli, tgtid 3, Base address 8000 */ 4005af0fdd8SKumar Gala #define CONFIG_SYS_PCIE3_MEM_VIRT 0xa0000000 40110795f42SKumar Gala #define CONFIG_SYS_PCIE3_MEM_BUS 0xa0000000 4025af0fdd8SKumar Gala #define CONFIG_SYS_PCIE3_MEM_PHYS 0xa0000000 4036d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE3_MEM_SIZE 0x20000000 /* 512M */ 404aca5f018SKumar Gala #define CONFIG_SYS_PCIE3_IO_VIRT 0xffc30000 4055f91ef6aSKumar Gala #define CONFIG_SYS_PCIE3_IO_BUS 0x00000000 4066d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE3_IO_PHYS 0xffc30000 4076d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE3_IO_SIZE 0x00010000 /* 64k */ 4089490a7f1SKumar Gala 4099490a7f1SKumar Gala #if defined(CONFIG_PCI) 4109490a7f1SKumar Gala 4119490a7f1SKumar Gala #define CONFIG_NET_MULTI 4129490a7f1SKumar Gala #define CONFIG_PCI_PNP /* do pci plug-and-play */ 4139490a7f1SKumar Gala 4149490a7f1SKumar Gala /*PCIE video card used*/ 415aca5f018SKumar Gala #define VIDEO_IO_OFFSET CONFIG_SYS_PCIE3_IO_VIRT 4169490a7f1SKumar Gala 4179490a7f1SKumar Gala /*PCI video card used*/ 418aca5f018SKumar Gala /*#define VIDEO_IO_OFFSET CONFIG_SYS_PCI1_IO_VIRT*/ 4199490a7f1SKumar Gala 4209490a7f1SKumar Gala /* video */ 4219490a7f1SKumar Gala #define CONFIG_VIDEO 4229490a7f1SKumar Gala 4239490a7f1SKumar Gala #if defined(CONFIG_VIDEO) 4249490a7f1SKumar Gala #define CONFIG_BIOSEMU 4259490a7f1SKumar Gala #define CONFIG_CFB_CONSOLE 4269490a7f1SKumar Gala #define CONFIG_VIDEO_SW_CURSOR 4279490a7f1SKumar Gala #define CONFIG_VGA_AS_SINGLE_DEVICE 4289490a7f1SKumar Gala #define CONFIG_ATI_RADEON_FB 4299490a7f1SKumar Gala #define CONFIG_VIDEO_LOGO 4309490a7f1SKumar Gala /*#define CONFIG_CONSOLE_CURSOR*/ 431aca5f018SKumar Gala #define CONFIG_SYS_ISA_IO_BASE_ADDRESS CONFIG_SYS_PCIE3_IO_VIRT 4329490a7f1SKumar Gala #endif 4339490a7f1SKumar Gala 4349490a7f1SKumar Gala #undef CONFIG_EEPRO100 4359490a7f1SKumar Gala #undef CONFIG_TULIP 4369490a7f1SKumar Gala #undef CONFIG_RTL8139 4379490a7f1SKumar Gala 4389490a7f1SKumar Gala #ifndef CONFIG_PCI_PNP 4395f91ef6aSKumar Gala #define PCI_ENET0_IOADDR CONFIG_SYS_PCI1_IO_BUS 4405f91ef6aSKumar Gala #define PCI_ENET0_MEMADDR CONFIG_SYS_PCI1_IO_BUS 4419490a7f1SKumar Gala #define PCI_IDSEL_NUMBER 0x11 /* IDSEL = AD11 */ 4429490a7f1SKumar Gala #endif 4439490a7f1SKumar Gala 4449490a7f1SKumar Gala #define CONFIG_PCI_SCAN_SHOW /* show pci devices on startup */ 4459490a7f1SKumar Gala 4469490a7f1SKumar Gala #endif /* CONFIG_PCI */ 4479490a7f1SKumar Gala 4489490a7f1SKumar Gala /* SATA */ 4499490a7f1SKumar Gala #define CONFIG_LIBATA 4509490a7f1SKumar Gala #define CONFIG_FSL_SATA 4519490a7f1SKumar Gala 4526d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_SATA_MAX_DEVICE 2 4539490a7f1SKumar Gala #define CONFIG_SATA1 4546d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_SATA1 CONFIG_SYS_MPC85xx_SATA1_ADDR 4556d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_SATA1_FLAGS FLAGS_DMA 4569490a7f1SKumar Gala #define CONFIG_SATA2 4576d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_SATA2 CONFIG_SYS_MPC85xx_SATA2_ADDR 4586d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_SATA2_FLAGS FLAGS_DMA 4599490a7f1SKumar Gala 4609490a7f1SKumar Gala #ifdef CONFIG_FSL_SATA 4619490a7f1SKumar Gala #define CONFIG_LBA48 4629490a7f1SKumar Gala #define CONFIG_CMD_SATA 4639490a7f1SKumar Gala #define CONFIG_DOS_PARTITION 4649490a7f1SKumar Gala #define CONFIG_CMD_EXT2 4659490a7f1SKumar Gala #endif 4669490a7f1SKumar Gala 4674bc6eb79SVivek Mahajan /* 4684bc6eb79SVivek Mahajan * USB 4694bc6eb79SVivek Mahajan */ 4704bc6eb79SVivek Mahajan #define CONFIG_CMD_USB 4714bc6eb79SVivek Mahajan #define CONFIG_USB_STORAGE 4724bc6eb79SVivek Mahajan #define CONFIG_USB_EHCI 4734bc6eb79SVivek Mahajan #define CONFIG_USB_EHCI_FSL 4744bc6eb79SVivek Mahajan #define CONFIG_EHCI_HCD_INIT_AFTER_RESET 4754bc6eb79SVivek Mahajan 4769490a7f1SKumar Gala #if defined(CONFIG_TSEC_ENET) 4779490a7f1SKumar Gala 4789490a7f1SKumar Gala #ifndef CONFIG_NET_MULTI 4799490a7f1SKumar Gala #define CONFIG_NET_MULTI 1 4809490a7f1SKumar Gala #endif 4819490a7f1SKumar Gala 4829490a7f1SKumar Gala #define CONFIG_MII 1 /* MII PHY management */ 4839490a7f1SKumar Gala #define CONFIG_MII_DEFAULT_TSEC 1 /* Allow unregistered phys */ 4849490a7f1SKumar Gala #define CONFIG_TSEC1 1 4859490a7f1SKumar Gala #define CONFIG_TSEC1_NAME "eTSEC1" 4869490a7f1SKumar Gala #define CONFIG_TSEC3 1 4879490a7f1SKumar Gala #define CONFIG_TSEC3_NAME "eTSEC3" 4889490a7f1SKumar Gala 4892e26d837SJason Jin #define CONFIG_FSL_SGMII_RISER 1 4902e26d837SJason Jin #define SGMII_RISER_PHY_OFFSET 0x1c 4912e26d837SJason Jin 4929490a7f1SKumar Gala #define TSEC1_PHY_ADDR 1 /* TSEC1 -> PHY1 */ 4939490a7f1SKumar Gala #define TSEC3_PHY_ADDR 0 /* TSEC3 -> PHY0 */ 4949490a7f1SKumar Gala 4959490a7f1SKumar Gala #define TSEC1_FLAGS (TSEC_GIGABIT | TSEC_REDUCED) 4969490a7f1SKumar Gala #define TSEC3_FLAGS (TSEC_GIGABIT | TSEC_REDUCED) 4979490a7f1SKumar Gala 4989490a7f1SKumar Gala #define TSEC1_PHYIDX 0 4999490a7f1SKumar Gala #define TSEC3_PHYIDX 0 5009490a7f1SKumar Gala 5019490a7f1SKumar Gala #define CONFIG_ETHPRIME "eTSEC1" 5029490a7f1SKumar Gala 5039490a7f1SKumar Gala #define CONFIG_PHY_GIGE 1 /* Include GbE speed/duplex detection */ 5049490a7f1SKumar Gala 5059490a7f1SKumar Gala #endif /* CONFIG_TSEC_ENET */ 5069490a7f1SKumar Gala 5079490a7f1SKumar Gala /* 5089490a7f1SKumar Gala * Environment 5099490a7f1SKumar Gala */ 5105a1aceb0SJean-Christophe PLAGNIOL-VILLARD #define CONFIG_ENV_IS_IN_FLASH 1 5116d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #if CONFIG_SYS_MONITOR_BASE > 0xfff80000 5120e8d1586SJean-Christophe PLAGNIOL-VILLARD #define CONFIG_ENV_ADDR 0xfff80000 5139490a7f1SKumar Gala #else 514c57fc289SJason Jin #define CONFIG_ENV_ADDR (CONFIG_SYS_MONITOR_BASE - CONFIG_ENV_SECT_SIZE) 5159490a7f1SKumar Gala #endif 5160e8d1586SJean-Christophe PLAGNIOL-VILLARD #define CONFIG_ENV_SIZE 0x2000 5170e8d1586SJean-Christophe PLAGNIOL-VILLARD #define CONFIG_ENV_SECT_SIZE 0x20000 /* 128K (one sector) */ 5189490a7f1SKumar Gala 5199490a7f1SKumar Gala #define CONFIG_LOADS_ECHO 1 /* echo on for serial download */ 5206d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_LOADS_BAUD_CHANGE 1 /* allow baudrate change */ 5219490a7f1SKumar Gala 5229490a7f1SKumar Gala /* 5239490a7f1SKumar Gala * Command line configuration. 5249490a7f1SKumar Gala */ 5259490a7f1SKumar Gala #include <config_cmd_default.h> 5269490a7f1SKumar Gala 5279490a7f1SKumar Gala #define CONFIG_CMD_IRQ 5289490a7f1SKumar Gala #define CONFIG_CMD_PING 5299490a7f1SKumar Gala #define CONFIG_CMD_I2C 5309490a7f1SKumar Gala #define CONFIG_CMD_MII 5319490a7f1SKumar Gala #define CONFIG_CMD_ELF 5321c9aa76bSKumar Gala #define CONFIG_CMD_IRQ 5331c9aa76bSKumar Gala #define CONFIG_CMD_SETEXPR 5349490a7f1SKumar Gala 5359490a7f1SKumar Gala #if defined(CONFIG_PCI) 5369490a7f1SKumar Gala #define CONFIG_CMD_PCI 5379490a7f1SKumar Gala #define CONFIG_CMD_BEDBUG 5389490a7f1SKumar Gala #define CONFIG_CMD_NET 5399490a7f1SKumar Gala #endif 5409490a7f1SKumar Gala 5419490a7f1SKumar Gala #undef CONFIG_WATCHDOG /* watchdog disabled */ 5429490a7f1SKumar Gala 54380522dc8SAndy Fleming #define CONFIG_MMC 1 54480522dc8SAndy Fleming 54580522dc8SAndy Fleming #ifdef CONFIG_MMC 54680522dc8SAndy Fleming #define CONFIG_FSL_ESDHC 54780522dc8SAndy Fleming #define CONFIG_SYS_FSL_ESDHC_ADDR CONFIG_SYS_MPC85xx_ESDHC_ADDR 54880522dc8SAndy Fleming #define CONFIG_CMD_MMC 54980522dc8SAndy Fleming #define CONFIG_GENERIC_MMC 55080522dc8SAndy Fleming #define CONFIG_CMD_EXT2 55180522dc8SAndy Fleming #define CONFIG_CMD_FAT 55280522dc8SAndy Fleming #define CONFIG_DOS_PARTITION 55380522dc8SAndy Fleming #endif 55480522dc8SAndy Fleming 5559490a7f1SKumar Gala /* 5569490a7f1SKumar Gala * Miscellaneous configurable options 5579490a7f1SKumar Gala */ 5586d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_LONGHELP /* undef to save memory */ 5599490a7f1SKumar Gala #define CONFIG_CMDLINE_EDITING /* Command-line editing */ 5606d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_LOAD_ADDR 0x2000000 /* default load address */ 5616d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PROMPT "=> " /* Monitor Command Prompt */ 5629490a7f1SKumar Gala #if defined(CONFIG_CMD_KGDB) 5636d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buffer Size */ 5649490a7f1SKumar Gala #else 5656d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */ 5669490a7f1SKumar Gala #endif 5676d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */ 5686d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MAXARGS 16 /* max number of command args */ 5696d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE /* Boot Argument Buffer Size */ 5706d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_HZ 1000 /* decrementer freq: 1ms ticks */ 5719490a7f1SKumar Gala 5729490a7f1SKumar Gala /* 5739490a7f1SKumar Gala * For booting Linux, the board info and command line data 57489188a62SKumar Gala * have to be in the first 16 MB of memory, since this is 5759490a7f1SKumar Gala * the maximum mapped by the Linux kernel during initialization. 5769490a7f1SKumar Gala */ 57789188a62SKumar Gala #define CONFIG_SYS_BOOTMAPSZ (16 << 20) /* Initial Memory map for Linux*/ 5789490a7f1SKumar Gala 5799490a7f1SKumar Gala /* 5809490a7f1SKumar Gala * Internal Definitions 5819490a7f1SKumar Gala * 5829490a7f1SKumar Gala * Boot Flags 5839490a7f1SKumar Gala */ 5849490a7f1SKumar Gala #define BOOTFLAG_COLD 0x01 /* Normal Power-On: Boot from FLASH */ 5859490a7f1SKumar Gala #define BOOTFLAG_WARM 0x02 /* Software reboot */ 5869490a7f1SKumar Gala 5879490a7f1SKumar Gala #if defined(CONFIG_CMD_KGDB) 5889490a7f1SKumar Gala #define CONFIG_KGDB_BAUDRATE 230400 /* speed to run kgdb serial port */ 5899490a7f1SKumar Gala #define CONFIG_KGDB_SER_INDEX 2 /* which serial port to use */ 5909490a7f1SKumar Gala #endif 5919490a7f1SKumar Gala 5929490a7f1SKumar Gala /* 5939490a7f1SKumar Gala * Environment Configuration 5949490a7f1SKumar Gala */ 5959490a7f1SKumar Gala 5969490a7f1SKumar Gala /* The mac addresses for all ethernet interface */ 5979490a7f1SKumar Gala #if defined(CONFIG_TSEC_ENET) 5989490a7f1SKumar Gala #define CONFIG_HAS_ETH0 5999490a7f1SKumar Gala #define CONFIG_ETHADDR 00:E0:0C:02:00:FD 6009490a7f1SKumar Gala #define CONFIG_HAS_ETH1 6019490a7f1SKumar Gala #define CONFIG_ETH1ADDR 00:E0:0C:02:01:FD 6029490a7f1SKumar Gala #define CONFIG_HAS_ETH2 6039490a7f1SKumar Gala #define CONFIG_ETH2ADDR 00:E0:0C:02:02:FD 6049490a7f1SKumar Gala #define CONFIG_HAS_ETH3 6059490a7f1SKumar Gala #define CONFIG_ETH3ADDR 00:E0:0C:02:03:FD 6069490a7f1SKumar Gala #endif 6079490a7f1SKumar Gala 6089490a7f1SKumar Gala #define CONFIG_IPADDR 192.168.1.254 6099490a7f1SKumar Gala 6109490a7f1SKumar Gala #define CONFIG_HOSTNAME unknown 6119490a7f1SKumar Gala #define CONFIG_ROOTPATH /opt/nfsroot 6129490a7f1SKumar Gala #define CONFIG_BOOTFILE uImage 6139490a7f1SKumar Gala #define CONFIG_UBOOTPATH u-boot.bin /* U-Boot image on TFTP server */ 6149490a7f1SKumar Gala 6159490a7f1SKumar Gala #define CONFIG_SERVERIP 192.168.1.1 6169490a7f1SKumar Gala #define CONFIG_GATEWAYIP 192.168.1.1 6179490a7f1SKumar Gala #define CONFIG_NETMASK 255.255.255.0 6189490a7f1SKumar Gala 6199490a7f1SKumar Gala /* default location for tftp and bootm */ 6209490a7f1SKumar Gala #define CONFIG_LOADADDR 1000000 6219490a7f1SKumar Gala 6229490a7f1SKumar Gala #define CONFIG_BOOTDELAY 10 /* -1 disables auto-boot */ 6239490a7f1SKumar Gala #undef CONFIG_BOOTARGS /* the boot command will set bootargs */ 6249490a7f1SKumar Gala 6259490a7f1SKumar Gala #define CONFIG_BAUDRATE 115200 6269490a7f1SKumar Gala 6279490a7f1SKumar Gala #define CONFIG_EXTRA_ENV_SETTINGS \ 6289490a7f1SKumar Gala "netdev=eth0\0" \ 6299490a7f1SKumar Gala "uboot=" MK_STR(CONFIG_UBOOTPATH) "\0" \ 6309490a7f1SKumar Gala "tftpflash=tftpboot $loadaddr $uboot; " \ 6319490a7f1SKumar Gala "protect off " MK_STR(TEXT_BASE) " +$filesize; " \ 6329490a7f1SKumar Gala "erase " MK_STR(TEXT_BASE) " +$filesize; " \ 6339490a7f1SKumar Gala "cp.b $loadaddr " MK_STR(TEXT_BASE) " $filesize; " \ 6349490a7f1SKumar Gala "protect on " MK_STR(TEXT_BASE) " +$filesize; " \ 6359490a7f1SKumar Gala "cmp.b $loadaddr " MK_STR(TEXT_BASE) " $filesize\0" \ 6369490a7f1SKumar Gala "consoledev=ttyS0\0" \ 6379490a7f1SKumar Gala "ramdiskaddr=2000000\0" \ 6389490a7f1SKumar Gala "ramdiskfile=8536ds/ramdisk.uboot\0" \ 6399490a7f1SKumar Gala "fdtaddr=c00000\0" \ 6409490a7f1SKumar Gala "fdtfile=8536ds/mpc8536ds.dtb\0" \ 6414bc6eb79SVivek Mahajan "bdev=sda3\0" \ 6424bc6eb79SVivek Mahajan "usb_phy_type=ulpi\0" 6439490a7f1SKumar Gala 6449490a7f1SKumar Gala #define CONFIG_HDBOOT \ 6459490a7f1SKumar Gala "setenv bootargs root=/dev/$bdev rw " \ 6469490a7f1SKumar Gala "console=$consoledev,$baudrate $othbootargs;" \ 6479490a7f1SKumar Gala "tftp $loadaddr $bootfile;" \ 6489490a7f1SKumar Gala "tftp $fdtaddr $fdtfile;" \ 6499490a7f1SKumar Gala "bootm $loadaddr - $fdtaddr" 6509490a7f1SKumar Gala 6519490a7f1SKumar Gala #define CONFIG_NFSBOOTCOMMAND \ 6529490a7f1SKumar Gala "setenv bootargs root=/dev/nfs rw " \ 6539490a7f1SKumar Gala "nfsroot=$serverip:$rootpath " \ 6549490a7f1SKumar Gala "ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname:$netdev:off " \ 6559490a7f1SKumar Gala "console=$consoledev,$baudrate $othbootargs;" \ 6569490a7f1SKumar Gala "tftp $loadaddr $bootfile;" \ 6579490a7f1SKumar Gala "tftp $fdtaddr $fdtfile;" \ 6589490a7f1SKumar Gala "bootm $loadaddr - $fdtaddr" 6599490a7f1SKumar Gala 6609490a7f1SKumar Gala #define CONFIG_RAMBOOTCOMMAND \ 6619490a7f1SKumar Gala "setenv bootargs root=/dev/ram rw " \ 6629490a7f1SKumar Gala "console=$consoledev,$baudrate $othbootargs;" \ 6639490a7f1SKumar Gala "tftp $ramdiskaddr $ramdiskfile;" \ 6649490a7f1SKumar Gala "tftp $loadaddr $bootfile;" \ 6659490a7f1SKumar Gala "tftp $fdtaddr $fdtfile;" \ 6669490a7f1SKumar Gala "bootm $loadaddr $ramdiskaddr $fdtaddr" 6679490a7f1SKumar Gala 6689490a7f1SKumar Gala #define CONFIG_BOOTCOMMAND CONFIG_HDBOOT 6699490a7f1SKumar Gala 6709490a7f1SKumar Gala #endif /* __CONFIG_H */ 671