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 */ 440151cbacSKumar 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 102*9b0ad1b1SDave Liu #define 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 158c57fc289SJason Jin * 0xe000_0000 0xe7ff_ffff Promjet/free 128M non-cacheable 1599490a7f1SKumar Gala * 0xe800_0000 0xefff_ffff FLASH 128M non-cacheable 160c57fc289SJason Jin * 0xffa0_0000 0xffaf_ffff NAND 1M non-cacheable 1619490a7f1SKumar Gala * 0xffdf_0000 0xffdf_7fff PIXIS 32K non-cacheable TLB0 1629490a7f1SKumar Gala * 0xffd0_0000 0xffd0_3fff L1 for stack 16K Cacheable TLB0 1639490a7f1SKumar Gala * 0xffe0_0000 0xffef_ffff CCSR 1M non-cacheable 1649490a7f1SKumar Gala */ 1659490a7f1SKumar Gala 1669490a7f1SKumar Gala /* 1679490a7f1SKumar Gala * Local Bus Definitions 1689490a7f1SKumar Gala */ 1696d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_FLASH_BASE 0xe0000000 /* start of FLASH 128M */ 1709490a7f1SKumar Gala 1716d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_BR0_PRELIM 0xe8001001 1726d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_OR0_PRELIM 0xf8000ff7 1739490a7f1SKumar Gala 1746d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_BR1_PRELIM 0xe0001001 1756d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_OR1_PRELIM 0xf8000ff7 1769490a7f1SKumar Gala 1776d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_FLASH_BANKS_LIST {CONFIG_SYS_FLASH_BASE + 0x8000000, CONFIG_SYS_FLASH_BASE} 1786d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_FLASH_QUIET_TEST 1799490a7f1SKumar Gala #define CONFIG_FLASH_SHOW_PROGRESS 45 /* count down from 45/5: 9..1 */ 1809490a7f1SKumar Gala 1816d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MAX_FLASH_BANKS 2 /* number of banks */ 1826d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MAX_FLASH_SECT 1024 /* sectors per device */ 1836d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #undef CONFIG_SYS_FLASH_CHECKSUM 1846d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_FLASH_ERASE_TOUT 60000 /* Flash Erase Timeout (ms) */ 1856d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_FLASH_WRITE_TOUT 500 /* Flash Write Timeout (ms) */ 1869490a7f1SKumar Gala 1876d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MONITOR_BASE TEXT_BASE /* start of monitor */ 1889490a7f1SKumar Gala 1899490a7f1SKumar Gala #define CONFIG_FLASH_CFI_DRIVER 1906d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_FLASH_CFI 1916d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_FLASH_EMPTY_INFO 1926d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_FLASH_AMD_CHECK_DQ7 1939490a7f1SKumar Gala 1949490a7f1SKumar Gala #define CONFIG_BOARD_EARLY_INIT_R /* call board_early_init_r function */ 1959490a7f1SKumar Gala 1969490a7f1SKumar Gala #define CONFIG_FSL_PIXIS 1 /* use common PIXIS code */ 1979490a7f1SKumar Gala #define PIXIS_BASE 0xffdf0000 /* PIXIS registers */ 1989490a7f1SKumar Gala 1996d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_BR3_PRELIM (PIXIS_BASE | 0x0801) /* port size 8bit */ 2006d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_OR3_PRELIM 0xffffeff7 /* 32KB but only 4k mapped */ 2019490a7f1SKumar Gala 2029490a7f1SKumar Gala #define PIXIS_ID 0x0 /* Board ID at offset 0 */ 2039490a7f1SKumar Gala #define PIXIS_VER 0x1 /* Board version at offset 1 */ 2049490a7f1SKumar Gala #define PIXIS_PVER 0x2 /* PIXIS FPGA version at offset 2 */ 2059490a7f1SKumar Gala #define PIXIS_CSR 0x3 /* PIXIS General control/status register */ 2069490a7f1SKumar Gala #define PIXIS_RST 0x4 /* PIXIS Reset Control register */ 2079490a7f1SKumar Gala #define PIXIS_PWR 0x5 /* PIXIS Power status register */ 2089490a7f1SKumar Gala #define PIXIS_AUX 0x6 /* Auxiliary 1 register */ 2099490a7f1SKumar Gala #define PIXIS_SPD 0x7 /* Register for SYSCLK speed */ 2109490a7f1SKumar Gala #define PIXIS_AUX2 0x8 /* Auxiliary 2 register */ 2119490a7f1SKumar Gala #define PIXIS_VCTL 0x10 /* VELA Control Register */ 2129490a7f1SKumar Gala #define PIXIS_VSTAT 0x11 /* VELA Status Register */ 2139490a7f1SKumar Gala #define PIXIS_VCFGEN0 0x12 /* VELA Config Enable 0 */ 2149490a7f1SKumar Gala #define PIXIS_VCFGEN1 0x13 /* VELA Config Enable 1 */ 2159490a7f1SKumar Gala #define PIXIS_VCORE0 0x14 /* VELA VCORE0 Register */ 2169490a7f1SKumar Gala #define PIXIS_VBOOT 0x16 /* VELA VBOOT Register */ 2179490a7f1SKumar Gala #define PIXIS_VSPEED0 0x17 /* VELA VSpeed 0 */ 2189490a7f1SKumar Gala #define PIXIS_VSPEED1 0x18 /* VELA VSpeed 1 */ 2199490a7f1SKumar Gala #define PIXIS_VSPEED2 0x19 /* VELA VSpeed 2 */ 2209490a7f1SKumar Gala #define PIXIS_VSYSCLK0 0x1A /* VELA SYSCLK0 Register */ 2219490a7f1SKumar Gala #define PIXIS_VSYSCLK1 0x1B /* VELA SYSCLK1 Register */ 2229490a7f1SKumar Gala #define PIXIS_VSYSCLK2 0x1C /* VELA SYSCLK2 Register */ 2239490a7f1SKumar Gala #define PIXIS_VDDRCLK0 0x1D /* VELA DDRCLK0 Register */ 2249490a7f1SKumar Gala #define PIXIS_VDDRCLK1 0x1E /* VELA DDRCLK1 Register */ 2259490a7f1SKumar Gala #define PIXIS_VDDRCLK2 0x1F /* VELA DDRCLK2 Register */ 2269490a7f1SKumar Gala #define PIXIS_VWATCH 0x24 /* Watchdog Register */ 2279490a7f1SKumar Gala #define PIXIS_LED 0x25 /* LED Register */ 2289490a7f1SKumar Gala 2299490a7f1SKumar Gala /* old pixis referenced names */ 2309490a7f1SKumar Gala #define PIXIS_VCLKH 0x19 /* VELA VCLKH register */ 2319490a7f1SKumar Gala #define PIXIS_VCLKL 0x1A /* VELA VCLKL register */ 2326d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PIXIS_VBOOT_MASK 0xc0 2339490a7f1SKumar Gala 2349490a7f1SKumar Gala /* define to use L1 as initial stack */ 2359490a7f1SKumar Gala #define CONFIG_L1_INIT_RAM 2366d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_INIT_RAM_LOCK 1 2376d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_INIT_RAM_ADDR 0xffd00000 /* Initial L1 address */ 2386d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_INIT_RAM_END 0x00004000 /* End of used area in RAM */ 2399490a7f1SKumar Gala 2406d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_GBL_DATA_SIZE 128 /* num bytes initial data */ 2416d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE) 2426d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET 2439490a7f1SKumar Gala 2446d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MONITOR_LEN (256 * 1024) /* Reserve 256 kB for Mon */ 2456d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MALLOC_LEN (1024 * 1024) /* Reserved for malloc */ 2469490a7f1SKumar Gala 247c57fc289SJason Jin #define CONFIG_SYS_NAND_BASE 0xffa00000 248c57fc289SJason Jin #define CONFIG_SYS_NAND_BASE_PHYS CONFIG_SYS_NAND_BASE 249c57fc289SJason Jin #define CONFIG_SYS_NAND_BASE_LIST { CONFIG_SYS_NAND_BASE,\ 250c57fc289SJason Jin CONFIG_SYS_NAND_BASE + 0x40000, \ 251c57fc289SJason Jin CONFIG_SYS_NAND_BASE + 0x80000, \ 252c57fc289SJason Jin CONFIG_SYS_NAND_BASE + 0xC0000} 253c57fc289SJason Jin #define CONFIG_SYS_MAX_NAND_DEVICE 4 254c57fc289SJason Jin #define NAND_MAX_CHIPS 1 255c57fc289SJason Jin #define CONFIG_MTD_NAND_VERIFY_WRITE 256c57fc289SJason Jin #define CONFIG_CMD_NAND 1 257c57fc289SJason Jin #define CONFIG_NAND_FSL_ELBC 1 258c57fc289SJason Jin #define CONFIG_SYS_NAND_BLOCK_SIZE (128 * 1024) 259c57fc289SJason Jin 260c57fc289SJason Jin /* NAND flash config */ 261c57fc289SJason Jin #define CONFIG_NAND_BR_PRELIM (CONFIG_SYS_NAND_BASE_PHYS \ 262c57fc289SJason Jin | (2<<BR_DECC_SHIFT) /* Use HW ECC */ \ 263c57fc289SJason Jin | BR_PS_8 /* Port Size = 8 bit */ \ 264c57fc289SJason Jin | BR_MS_FCM /* MSEL = FCM */ \ 265c57fc289SJason Jin | BR_V) /* valid */ 266c57fc289SJason Jin #define CONFIG_NAND_OR_PRELIM (0xFFFC0000 /* length 256K */ \ 267c57fc289SJason Jin | OR_FCM_PGS /* Large Page*/ \ 268c57fc289SJason Jin | OR_FCM_CSCT \ 269c57fc289SJason Jin | OR_FCM_CST \ 270c57fc289SJason Jin | OR_FCM_CHT \ 271c57fc289SJason Jin | OR_FCM_SCY_1 \ 272c57fc289SJason Jin | OR_FCM_TRLX \ 273c57fc289SJason Jin | OR_FCM_EHTR) 274c57fc289SJason Jin 275c57fc289SJason Jin #define CONFIG_SYS_BR2_PRELIM CONFIG_NAND_BR_PRELIM /* NAND Base Address */ 276c57fc289SJason Jin #define CONFIG_SYS_OR2_PRELIM CONFIG_NAND_OR_PRELIM /* NAND Options */ 277c57fc289SJason Jin 278c57fc289SJason Jin #define CONFIG_SYS_BR4_PRELIM ((CONFIG_SYS_NAND_BASE_PHYS + 0x40000)\ 279c57fc289SJason Jin | (2<<BR_DECC_SHIFT) /* Use HW ECC */ \ 280c57fc289SJason Jin | BR_PS_8 /* Port Size = 8 bit */ \ 281c57fc289SJason Jin | BR_MS_FCM /* MSEL = FCM */ \ 282c57fc289SJason Jin | BR_V) /* valid */ 283c57fc289SJason Jin #define CONFIG_SYS_OR4_PRELIM CONFIG_NAND_OR_PRELIM /* NAND Options */ 284c57fc289SJason Jin #define CONFIG_SYS_BR5_PRELIM ((CONFIG_SYS_NAND_BASE_PHYS + 0x80000)\ 285c57fc289SJason Jin | (2<<BR_DECC_SHIFT) /* Use HW ECC */ \ 286c57fc289SJason Jin | BR_PS_8 /* Port Size = 8 bit */ \ 287c57fc289SJason Jin | BR_MS_FCM /* MSEL = FCM */ \ 288c57fc289SJason Jin | BR_V) /* valid */ 289c57fc289SJason Jin #define CONFIG_SYS_OR5_PRELIM CONFIG_NAND_OR_PRELIM /* NAND Options */ 290c57fc289SJason Jin 291c57fc289SJason Jin #define CONFIG_SYS_BR6_PRELIM ((CONFIG_SYS_NAND_BASE_PHYS + 0xC0000)\ 292c57fc289SJason Jin | (2<<BR_DECC_SHIFT) /* Use HW ECC */ \ 293c57fc289SJason Jin | BR_PS_8 /* Port Size = 8 bit */ \ 294c57fc289SJason Jin | BR_MS_FCM /* MSEL = FCM */ \ 295c57fc289SJason Jin | BR_V) /* valid */ 296c57fc289SJason Jin #define CONFIG_SYS_OR6_PRELIM CONFIG_NAND_OR_PRELIM /* NAND Options */ 297c57fc289SJason Jin 2989490a7f1SKumar Gala /* Serial Port - controlled on board with jumper J8 2999490a7f1SKumar Gala * open - index 2 3009490a7f1SKumar Gala * shorted - index 1 3019490a7f1SKumar Gala */ 3029490a7f1SKumar Gala #define CONFIG_CONS_INDEX 1 3039490a7f1SKumar Gala #undef CONFIG_SERIAL_SOFTWARE_FIFO 3046d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_NS16550 3056d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_NS16550_SERIAL 3066d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_NS16550_REG_SIZE 1 3076d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_NS16550_CLK get_bus_freq(0) 3089490a7f1SKumar Gala 3096d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_BAUDRATE_TABLE \ 3109490a7f1SKumar Gala {300, 600, 1200, 2400, 4800, 9600, 19200, 38400,115200} 3119490a7f1SKumar Gala 3126d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_NS16550_COM1 (CONFIG_SYS_CCSRBAR+0x4500) 3136d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_NS16550_COM2 (CONFIG_SYS_CCSRBAR+0x4600) 3149490a7f1SKumar Gala 3159490a7f1SKumar Gala /* Use the HUSH parser */ 3166d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_HUSH_PARSER 3176d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #ifdef CONFIG_SYS_HUSH_PARSER 3186d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PROMPT_HUSH_PS2 "> " 3199490a7f1SKumar Gala #endif 3209490a7f1SKumar Gala 3219490a7f1SKumar Gala /* 3229490a7f1SKumar Gala * Pass open firmware flat tree 3239490a7f1SKumar Gala */ 3249490a7f1SKumar Gala #define CONFIG_OF_LIBFDT 1 3259490a7f1SKumar Gala #define CONFIG_OF_BOARD_SETUP 1 3269490a7f1SKumar Gala #define CONFIG_OF_STDOUT_VIA_ALIAS 1 3279490a7f1SKumar Gala 3286d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_64BIT_STRTOUL 1 3296d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_64BIT_VSPRINTF 1 3309490a7f1SKumar Gala 3319490a7f1SKumar Gala 3329490a7f1SKumar Gala /* 3339490a7f1SKumar Gala * I2C 3349490a7f1SKumar Gala */ 3359490a7f1SKumar Gala #define CONFIG_FSL_I2C /* Use FSL common I2C driver */ 3369490a7f1SKumar Gala #define CONFIG_HARD_I2C /* I2C with hardware support */ 3379490a7f1SKumar Gala #undef CONFIG_SOFT_I2C /* I2C bit-banged */ 3389490a7f1SKumar Gala #define CONFIG_I2C_MULTI_BUS 3399490a7f1SKumar Gala #define CONFIG_I2C_CMD_TREE 3406d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_I2C_SPEED 400000 /* I2C speed and slave address */ 3416d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_I2C_SLAVE 0x7F 3426d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_I2C_NOPROBES {{0, 0x29}} /* Don't probe these addrs */ 3436d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_I2C_OFFSET 0x3000 3446d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_I2C2_OFFSET 0x3100 3459490a7f1SKumar Gala 3469490a7f1SKumar Gala /* 3479490a7f1SKumar Gala * I2C2 EEPROM 3489490a7f1SKumar Gala */ 34932628c50SJean-Christophe PLAGNIOL-VILLARD #define CONFIG_ID_EEPROM 35032628c50SJean-Christophe PLAGNIOL-VILLARD #ifdef CONFIG_ID_EEPROM 3516d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_I2C_EEPROM_NXID 3529490a7f1SKumar Gala #endif 3536d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_I2C_EEPROM_ADDR 0x57 3546d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1 3556d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_EEPROM_BUS_NUM 1 3569490a7f1SKumar Gala 3579490a7f1SKumar Gala /* 3589490a7f1SKumar Gala * General PCI 3599490a7f1SKumar Gala * Memory space is mapped 1-1, but I/O space must start from 0. 3609490a7f1SKumar Gala */ 3619490a7f1SKumar Gala 3626d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCI1_MEM_BASE 0x80000000 3636d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCI1_MEM_PHYS CONFIG_SYS_PCI1_MEM_BASE 3646d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCI1_MEM_SIZE 0x10000000 /* 256M */ 3656d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCI1_IO_BASE 0x00000000 3666d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCI1_IO_PHYS 0xffc00000 3676d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCI1_IO_SIZE 0x00010000 /* 64k */ 3689490a7f1SKumar Gala 3699490a7f1SKumar Gala /* controller 1, Slot 1, tgtid 1, Base address a000 */ 3706d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE1_MEM_BASE 0x90000000 3716d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE1_MEM_PHYS CONFIG_SYS_PCIE1_MEM_BASE 3726d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE1_MEM_SIZE 0x08000000 /* 128M */ 3736d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE1_IO_BASE 0x00000000 3746d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE1_IO_PHYS 0xffc10000 3756d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE1_IO_SIZE 0x00010000 /* 64k */ 3769490a7f1SKumar Gala 3779490a7f1SKumar Gala /* controller 2, Slot 2, tgtid 2, Base address 9000 */ 3786d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE2_MEM_BASE 0x98000000 3796d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE2_MEM_PHYS CONFIG_SYS_PCIE2_MEM_BASE 3806d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE2_MEM_SIZE 0x08000000 /* 128M */ 3816d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE2_IO_BASE 0x00000000 3826d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE2_IO_PHYS 0xffc20000 3836d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE2_IO_SIZE 0x00010000 /* 64k */ 3849490a7f1SKumar Gala 3859490a7f1SKumar Gala /* controller 3, direct to uli, tgtid 3, Base address 8000 */ 3866d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE3_MEM_BASE 0xa0000000 3876d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE3_MEM_PHYS CONFIG_SYS_PCIE3_MEM_BASE 3886d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE3_MEM_SIZE 0x20000000 /* 512M */ 3896d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE3_IO_BASE 0x00000000 3906d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE3_IO_PHYS 0xffc30000 3916d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE3_IO_SIZE 0x00010000 /* 64k */ 3929490a7f1SKumar Gala 3939490a7f1SKumar Gala #if defined(CONFIG_PCI) 3949490a7f1SKumar Gala 3959490a7f1SKumar Gala #define CONFIG_NET_MULTI 3969490a7f1SKumar Gala #define CONFIG_PCI_PNP /* do pci plug-and-play */ 3979490a7f1SKumar Gala 3989490a7f1SKumar Gala /*PCIE video card used*/ 3996d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define VIDEO_IO_OFFSET CONFIG_SYS_PCIE3_IO_PHYS 4009490a7f1SKumar Gala 4019490a7f1SKumar Gala /*PCI video card used*/ 4026d0f6bcfSJean-Christophe PLAGNIOL-VILLARD /*#define VIDEO_IO_OFFSET CONFIG_SYS_PCI1_IO_PHYS*/ 4039490a7f1SKumar Gala 4049490a7f1SKumar Gala /* video */ 4059490a7f1SKumar Gala #define CONFIG_VIDEO 4069490a7f1SKumar Gala 4079490a7f1SKumar Gala #if defined(CONFIG_VIDEO) 4089490a7f1SKumar Gala #define CONFIG_BIOSEMU 4099490a7f1SKumar Gala #define CONFIG_CFB_CONSOLE 4109490a7f1SKumar Gala #define CONFIG_VIDEO_SW_CURSOR 4119490a7f1SKumar Gala #define CONFIG_VGA_AS_SINGLE_DEVICE 4129490a7f1SKumar Gala #define CONFIG_ATI_RADEON_FB 4139490a7f1SKumar Gala #define CONFIG_VIDEO_LOGO 4149490a7f1SKumar Gala /*#define CONFIG_CONSOLE_CURSOR*/ 4156d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_ISA_IO_BASE_ADDRESS CONFIG_SYS_PCIE3_IO_PHYS 4169490a7f1SKumar Gala #endif 4179490a7f1SKumar Gala 4189490a7f1SKumar Gala #undef CONFIG_EEPRO100 4199490a7f1SKumar Gala #undef CONFIG_TULIP 4209490a7f1SKumar Gala #undef CONFIG_RTL8139 4219490a7f1SKumar Gala 4229490a7f1SKumar Gala #ifdef CONFIG_RTL8139 4239490a7f1SKumar Gala /* This macro is used by RTL8139 but not defined in PPC architecture */ 4249490a7f1SKumar Gala #define KSEG1ADDR(x) ({u32 _x=le32_to_cpu(*(u32 *)(x)); (&_x);}) 4259490a7f1SKumar Gala #define _IO_BASE 0x00000000 4269490a7f1SKumar Gala #endif 4279490a7f1SKumar Gala 4289490a7f1SKumar Gala #ifndef CONFIG_PCI_PNP 4296d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define PCI_ENET0_IOADDR CONFIG_SYS_PCI1_IO_BASE 4306d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define PCI_ENET0_MEMADDR CONFIG_SYS_PCI1_IO_BASE 4319490a7f1SKumar Gala #define PCI_IDSEL_NUMBER 0x11 /* IDSEL = AD11 */ 4329490a7f1SKumar Gala #endif 4339490a7f1SKumar Gala 4349490a7f1SKumar Gala #define CONFIG_PCI_SCAN_SHOW /* show pci devices on startup */ 4359490a7f1SKumar Gala 4369490a7f1SKumar Gala #endif /* CONFIG_PCI */ 4379490a7f1SKumar Gala 4389490a7f1SKumar Gala /* SATA */ 4399490a7f1SKumar Gala #define CONFIG_LIBATA 4409490a7f1SKumar Gala #define CONFIG_FSL_SATA 4419490a7f1SKumar Gala 4426d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_SATA_MAX_DEVICE 2 4439490a7f1SKumar Gala #define CONFIG_SATA1 4446d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_SATA1 CONFIG_SYS_MPC85xx_SATA1_ADDR 4456d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_SATA1_FLAGS FLAGS_DMA 4469490a7f1SKumar Gala #define CONFIG_SATA2 4476d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_SATA2 CONFIG_SYS_MPC85xx_SATA2_ADDR 4486d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_SATA2_FLAGS FLAGS_DMA 4499490a7f1SKumar Gala 4509490a7f1SKumar Gala #ifdef CONFIG_FSL_SATA 4519490a7f1SKumar Gala #define CONFIG_LBA48 4529490a7f1SKumar Gala #define CONFIG_CMD_SATA 4539490a7f1SKumar Gala #define CONFIG_DOS_PARTITION 4549490a7f1SKumar Gala #define CONFIG_CMD_EXT2 4559490a7f1SKumar Gala #endif 4569490a7f1SKumar Gala 4579490a7f1SKumar Gala #if defined(CONFIG_TSEC_ENET) 4589490a7f1SKumar Gala 4599490a7f1SKumar Gala #ifndef CONFIG_NET_MULTI 4609490a7f1SKumar Gala #define CONFIG_NET_MULTI 1 4619490a7f1SKumar Gala #endif 4629490a7f1SKumar Gala 4639490a7f1SKumar Gala #define CONFIG_MII 1 /* MII PHY management */ 4649490a7f1SKumar Gala #define CONFIG_MII_DEFAULT_TSEC 1 /* Allow unregistered phys */ 4659490a7f1SKumar Gala #define CONFIG_TSEC1 1 4669490a7f1SKumar Gala #define CONFIG_TSEC1_NAME "eTSEC1" 4679490a7f1SKumar Gala #define CONFIG_TSEC3 1 4689490a7f1SKumar Gala #define CONFIG_TSEC3_NAME "eTSEC3" 4699490a7f1SKumar Gala 4702e26d837SJason Jin #define CONFIG_FSL_SGMII_RISER 1 4712e26d837SJason Jin #define SGMII_RISER_PHY_OFFSET 0x1c 4722e26d837SJason Jin 4739490a7f1SKumar Gala #define TSEC1_PHY_ADDR 1 /* TSEC1 -> PHY1 */ 4749490a7f1SKumar Gala #define TSEC3_PHY_ADDR 0 /* TSEC3 -> PHY0 */ 4759490a7f1SKumar Gala 4769490a7f1SKumar Gala #define TSEC1_FLAGS (TSEC_GIGABIT | TSEC_REDUCED) 4779490a7f1SKumar Gala #define TSEC3_FLAGS (TSEC_GIGABIT | TSEC_REDUCED) 4789490a7f1SKumar Gala 4799490a7f1SKumar Gala #define TSEC1_PHYIDX 0 4809490a7f1SKumar Gala #define TSEC3_PHYIDX 0 4819490a7f1SKumar Gala 4829490a7f1SKumar Gala #define CONFIG_ETHPRIME "eTSEC1" 4839490a7f1SKumar Gala 4849490a7f1SKumar Gala #define CONFIG_PHY_GIGE 1 /* Include GbE speed/duplex detection */ 4859490a7f1SKumar Gala 4869490a7f1SKumar Gala #endif /* CONFIG_TSEC_ENET */ 4879490a7f1SKumar Gala 4889490a7f1SKumar Gala /* 4899490a7f1SKumar Gala * Environment 4909490a7f1SKumar Gala */ 4915a1aceb0SJean-Christophe PLAGNIOL-VILLARD #define CONFIG_ENV_IS_IN_FLASH 1 4926d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #if CONFIG_SYS_MONITOR_BASE > 0xfff80000 4930e8d1586SJean-Christophe PLAGNIOL-VILLARD #define CONFIG_ENV_ADDR 0xfff80000 4949490a7f1SKumar Gala #else 495c57fc289SJason Jin #define CONFIG_ENV_ADDR (CONFIG_SYS_MONITOR_BASE - CONFIG_ENV_SECT_SIZE) 4969490a7f1SKumar Gala #endif 4970e8d1586SJean-Christophe PLAGNIOL-VILLARD #define CONFIG_ENV_SIZE 0x2000 4980e8d1586SJean-Christophe PLAGNIOL-VILLARD #define CONFIG_ENV_SECT_SIZE 0x20000 /* 128K (one sector) */ 4999490a7f1SKumar Gala 5009490a7f1SKumar Gala #define CONFIG_LOADS_ECHO 1 /* echo on for serial download */ 5016d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_LOADS_BAUD_CHANGE 1 /* allow baudrate change */ 5029490a7f1SKumar Gala 5039490a7f1SKumar Gala /* 5049490a7f1SKumar Gala * Command line configuration. 5059490a7f1SKumar Gala */ 5069490a7f1SKumar Gala #include <config_cmd_default.h> 5079490a7f1SKumar Gala 5089490a7f1SKumar Gala #define CONFIG_CMD_IRQ 5099490a7f1SKumar Gala #define CONFIG_CMD_PING 5109490a7f1SKumar Gala #define CONFIG_CMD_I2C 5119490a7f1SKumar Gala #define CONFIG_CMD_MII 5129490a7f1SKumar Gala #define CONFIG_CMD_ELF 5131c9aa76bSKumar Gala #define CONFIG_CMD_IRQ 5141c9aa76bSKumar Gala #define CONFIG_CMD_SETEXPR 5159490a7f1SKumar Gala 5169490a7f1SKumar Gala #if defined(CONFIG_PCI) 5179490a7f1SKumar Gala #define CONFIG_CMD_PCI 5189490a7f1SKumar Gala #define CONFIG_CMD_BEDBUG 5199490a7f1SKumar Gala #define CONFIG_CMD_NET 5209490a7f1SKumar Gala #endif 5219490a7f1SKumar Gala 5229490a7f1SKumar Gala #undef CONFIG_WATCHDOG /* watchdog disabled */ 5239490a7f1SKumar Gala 5249490a7f1SKumar Gala /* 5259490a7f1SKumar Gala * Miscellaneous configurable options 5269490a7f1SKumar Gala */ 5276d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_LONGHELP /* undef to save memory */ 5289490a7f1SKumar Gala #define CONFIG_CMDLINE_EDITING /* Command-line editing */ 5296d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_LOAD_ADDR 0x2000000 /* default load address */ 5306d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PROMPT "=> " /* Monitor Command Prompt */ 5319490a7f1SKumar Gala #if defined(CONFIG_CMD_KGDB) 5326d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buffer Size */ 5339490a7f1SKumar Gala #else 5346d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */ 5359490a7f1SKumar Gala #endif 5366d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */ 5376d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MAXARGS 16 /* max number of command args */ 5386d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE /* Boot Argument Buffer Size */ 5396d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_HZ 1000 /* decrementer freq: 1ms ticks */ 5409490a7f1SKumar Gala 5419490a7f1SKumar Gala /* 5429490a7f1SKumar Gala * For booting Linux, the board info and command line data 5439490a7f1SKumar Gala * have to be in the first 8 MB of memory, since this is 5449490a7f1SKumar Gala * the maximum mapped by the Linux kernel during initialization. 5459490a7f1SKumar Gala */ 5466d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_BOOTMAPSZ (8 << 20) /* Initial Memory map for Linux*/ 5479490a7f1SKumar Gala 5489490a7f1SKumar Gala /* 5499490a7f1SKumar Gala * Internal Definitions 5509490a7f1SKumar Gala * 5519490a7f1SKumar Gala * Boot Flags 5529490a7f1SKumar Gala */ 5539490a7f1SKumar Gala #define BOOTFLAG_COLD 0x01 /* Normal Power-On: Boot from FLASH */ 5549490a7f1SKumar Gala #define BOOTFLAG_WARM 0x02 /* Software reboot */ 5559490a7f1SKumar Gala 5569490a7f1SKumar Gala #if defined(CONFIG_CMD_KGDB) 5579490a7f1SKumar Gala #define CONFIG_KGDB_BAUDRATE 230400 /* speed to run kgdb serial port */ 5589490a7f1SKumar Gala #define CONFIG_KGDB_SER_INDEX 2 /* which serial port to use */ 5599490a7f1SKumar Gala #endif 5609490a7f1SKumar Gala 5619490a7f1SKumar Gala /* 5629490a7f1SKumar Gala * Environment Configuration 5639490a7f1SKumar Gala */ 5649490a7f1SKumar Gala 5659490a7f1SKumar Gala /* The mac addresses for all ethernet interface */ 5669490a7f1SKumar Gala #if defined(CONFIG_TSEC_ENET) 5679490a7f1SKumar Gala #define CONFIG_HAS_ETH0 5689490a7f1SKumar Gala #define CONFIG_ETHADDR 00:E0:0C:02:00:FD 5699490a7f1SKumar Gala #define CONFIG_HAS_ETH1 5709490a7f1SKumar Gala #define CONFIG_ETH1ADDR 00:E0:0C:02:01:FD 5719490a7f1SKumar Gala #define CONFIG_HAS_ETH2 5729490a7f1SKumar Gala #define CONFIG_ETH2ADDR 00:E0:0C:02:02:FD 5739490a7f1SKumar Gala #define CONFIG_HAS_ETH3 5749490a7f1SKumar Gala #define CONFIG_ETH3ADDR 00:E0:0C:02:03:FD 5759490a7f1SKumar Gala #endif 5769490a7f1SKumar Gala 5779490a7f1SKumar Gala #define CONFIG_IPADDR 192.168.1.254 5789490a7f1SKumar Gala 5799490a7f1SKumar Gala #define CONFIG_HOSTNAME unknown 5809490a7f1SKumar Gala #define CONFIG_ROOTPATH /opt/nfsroot 5819490a7f1SKumar Gala #define CONFIG_BOOTFILE uImage 5829490a7f1SKumar Gala #define CONFIG_UBOOTPATH u-boot.bin /* U-Boot image on TFTP server */ 5839490a7f1SKumar Gala 5849490a7f1SKumar Gala #define CONFIG_SERVERIP 192.168.1.1 5859490a7f1SKumar Gala #define CONFIG_GATEWAYIP 192.168.1.1 5869490a7f1SKumar Gala #define CONFIG_NETMASK 255.255.255.0 5879490a7f1SKumar Gala 5889490a7f1SKumar Gala /* default location for tftp and bootm */ 5899490a7f1SKumar Gala #define CONFIG_LOADADDR 1000000 5909490a7f1SKumar Gala 5919490a7f1SKumar Gala #define CONFIG_BOOTDELAY 10 /* -1 disables auto-boot */ 5929490a7f1SKumar Gala #undef CONFIG_BOOTARGS /* the boot command will set bootargs */ 5939490a7f1SKumar Gala 5949490a7f1SKumar Gala #define CONFIG_BAUDRATE 115200 5959490a7f1SKumar Gala 5969490a7f1SKumar Gala #define CONFIG_EXTRA_ENV_SETTINGS \ 5979490a7f1SKumar Gala "netdev=eth0\0" \ 5989490a7f1SKumar Gala "uboot=" MK_STR(CONFIG_UBOOTPATH) "\0" \ 5999490a7f1SKumar Gala "tftpflash=tftpboot $loadaddr $uboot; " \ 6009490a7f1SKumar Gala "protect off " MK_STR(TEXT_BASE) " +$filesize; " \ 6019490a7f1SKumar Gala "erase " MK_STR(TEXT_BASE) " +$filesize; " \ 6029490a7f1SKumar Gala "cp.b $loadaddr " MK_STR(TEXT_BASE) " $filesize; " \ 6039490a7f1SKumar Gala "protect on " MK_STR(TEXT_BASE) " +$filesize; " \ 6049490a7f1SKumar Gala "cmp.b $loadaddr " MK_STR(TEXT_BASE) " $filesize\0" \ 6059490a7f1SKumar Gala "consoledev=ttyS0\0" \ 6069490a7f1SKumar Gala "ramdiskaddr=2000000\0" \ 6079490a7f1SKumar Gala "ramdiskfile=8536ds/ramdisk.uboot\0" \ 6089490a7f1SKumar Gala "fdtaddr=c00000\0" \ 6099490a7f1SKumar Gala "fdtfile=8536ds/mpc8536ds.dtb\0" \ 6109490a7f1SKumar Gala "bdev=sda3\0" 6119490a7f1SKumar Gala 6129490a7f1SKumar Gala #define CONFIG_HDBOOT \ 6139490a7f1SKumar Gala "setenv bootargs root=/dev/$bdev rw " \ 6149490a7f1SKumar Gala "console=$consoledev,$baudrate $othbootargs;" \ 6159490a7f1SKumar Gala "tftp $loadaddr $bootfile;" \ 6169490a7f1SKumar Gala "tftp $fdtaddr $fdtfile;" \ 6179490a7f1SKumar Gala "bootm $loadaddr - $fdtaddr" 6189490a7f1SKumar Gala 6199490a7f1SKumar Gala #define CONFIG_NFSBOOTCOMMAND \ 6209490a7f1SKumar Gala "setenv bootargs root=/dev/nfs rw " \ 6219490a7f1SKumar Gala "nfsroot=$serverip:$rootpath " \ 6229490a7f1SKumar Gala "ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname:$netdev:off " \ 6239490a7f1SKumar Gala "console=$consoledev,$baudrate $othbootargs;" \ 6249490a7f1SKumar Gala "tftp $loadaddr $bootfile;" \ 6259490a7f1SKumar Gala "tftp $fdtaddr $fdtfile;" \ 6269490a7f1SKumar Gala "bootm $loadaddr - $fdtaddr" 6279490a7f1SKumar Gala 6289490a7f1SKumar Gala #define CONFIG_RAMBOOTCOMMAND \ 6299490a7f1SKumar Gala "setenv bootargs root=/dev/ram rw " \ 6309490a7f1SKumar Gala "console=$consoledev,$baudrate $othbootargs;" \ 6319490a7f1SKumar Gala "tftp $ramdiskaddr $ramdiskfile;" \ 6329490a7f1SKumar Gala "tftp $loadaddr $bootfile;" \ 6339490a7f1SKumar Gala "tftp $fdtaddr $fdtfile;" \ 6349490a7f1SKumar Gala "bootm $loadaddr $ramdiskaddr $fdtaddr" 6359490a7f1SKumar Gala 6369490a7f1SKumar Gala #define CONFIG_BOOTCOMMAND CONFIG_HDBOOT 6379490a7f1SKumar Gala 6389490a7f1SKumar Gala #endif /* __CONFIG_H */ 639