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 */ 449490a7f1SKumar Gala 459490a7f1SKumar Gala #define CONFIG_FSL_LAW 1 /* Use common FSL init code */ 469490a7f1SKumar Gala 479490a7f1SKumar Gala #define CONFIG_TSEC_ENET /* tsec ethernet support */ 489490a7f1SKumar Gala #define CONFIG_ENV_OVERWRITE 499490a7f1SKumar Gala 509490a7f1SKumar Gala /* 519490a7f1SKumar Gala * When initializing flash, if we cannot find the manufacturer ID, 529490a7f1SKumar Gala * assume this is the AMD flash associated with the CDS board. 539490a7f1SKumar Gala * This allows booting from a promjet. 549490a7f1SKumar Gala */ 559490a7f1SKumar Gala #define CONFIG_ASSUME_AMD_FLASH 569490a7f1SKumar Gala 579490a7f1SKumar Gala #ifndef __ASSEMBLY__ 589490a7f1SKumar Gala extern unsigned long get_board_sys_clk(unsigned long dummy); 599490a7f1SKumar Gala extern unsigned long get_board_ddr_clk(unsigned long dummy); 609490a7f1SKumar Gala #endif 619490a7f1SKumar Gala #define CONFIG_SYS_CLK_FREQ get_board_sys_clk(0) /* sysclk for MPC85xx */ 62c0391111SJason Jin #define CONFIG_DDR_CLK_FREQ get_board_ddr_clk(0) 639490a7f1SKumar Gala #define CONFIG_ICS307_REFCLK_HZ 33333000 /* ICS307 clock chip ref freq */ 649490a7f1SKumar Gala #define CONFIG_GET_CLK_FROM_ICS307 /* decode sysclk and ddrclk freq 659490a7f1SKumar Gala from ICS307 instead of switches */ 669490a7f1SKumar Gala 679490a7f1SKumar Gala /* 689490a7f1SKumar Gala * These can be toggled for performance analysis, otherwise use default. 699490a7f1SKumar Gala */ 709490a7f1SKumar Gala #define CONFIG_L2_CACHE /* toggle L2 cache */ 719490a7f1SKumar Gala #define CONFIG_BTB /* toggle branch predition */ 729490a7f1SKumar Gala #define CONFIG_ADDR_STREAMING /* toggle addr streaming */ 739490a7f1SKumar Gala 749490a7f1SKumar Gala #define CONFIG_ENABLE_36BIT_PHYS 1 759490a7f1SKumar Gala 766d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MEMTEST_START 0x00000000 /* memtest works on */ 776d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MEMTEST_END 0x7fffffff 789490a7f1SKumar Gala #define CONFIG_PANIC_HANG /* do not reset board on panic */ 799490a7f1SKumar Gala 809490a7f1SKumar Gala /* 819490a7f1SKumar Gala * Base addresses -- Note these are effective addresses where the 829490a7f1SKumar Gala * actual resources get mapped (not physical addresses) 839490a7f1SKumar Gala */ 846d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000 /* CCSRBAR Default */ 856d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_CCSRBAR 0xffe00000 /* relocated CCSRBAR */ 866d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_CCSRBAR_PHYS CONFIG_SYS_CCSRBAR /* physical addr of CCSRBAR */ 876d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_IMMR CONFIG_SYS_CCSRBAR /* PQII uses CONFIG_SYS_IMMR */ 889490a7f1SKumar Gala 896d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCI1_ADDR (CONFIG_SYS_CCSRBAR+0x8000) 906d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE1_ADDR (CONFIG_SYS_CCSRBAR+0xa000) 916d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE2_ADDR (CONFIG_SYS_CCSRBAR+0x9000) 926d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE3_ADDR (CONFIG_SYS_CCSRBAR+0xb000) 939490a7f1SKumar Gala 949490a7f1SKumar Gala /* DDR Setup */ 959490a7f1SKumar Gala #define CONFIG_FSL_DDR2 969490a7f1SKumar Gala #undef CONFIG_FSL_DDR_INTERACTIVE 979490a7f1SKumar Gala #define CONFIG_SPD_EEPROM /* Use SPD EEPROM for DDR setup */ 989490a7f1SKumar Gala #define CONFIG_DDR_SPD 999490a7f1SKumar Gala #undef CONFIG_DDR_DLL 1009490a7f1SKumar Gala 1019490a7f1SKumar Gala #undef CONFIG_ECC_INIT_VIA_DDRCONTROLLER /* DDR controller or DMA? */ 1029490a7f1SKumar Gala #define CONFIG_MEM_INIT_VALUE 0xDeadBeef 1039490a7f1SKumar Gala 1046d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_SDRAM_BASE 0x00000000 1056d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_SDRAM_BASE CONFIG_SYS_DDR_SDRAM_BASE 1069490a7f1SKumar Gala 1079490a7f1SKumar Gala #define CONFIG_NUM_DDR_CONTROLLERS 1 1089490a7f1SKumar Gala #define CONFIG_DIMM_SLOTS_PER_CTLR 1 1099490a7f1SKumar Gala #define CONFIG_CHIP_SELECTS_PER_CTRL 2 1109490a7f1SKumar Gala 1119490a7f1SKumar Gala /* I2C addresses of SPD EEPROMs */ 1129490a7f1SKumar Gala #define SPD_EEPROM_ADDRESS 0x51 /* CTLR 0 DIMM 0 */ 1136d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_SPD_BUS_NUM 1 1149490a7f1SKumar Gala 1159490a7f1SKumar Gala /* These are used when DDR doesn't use SPD. */ 1166d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_SDRAM_SIZE 256 /* DDR is 256MB */ 1176d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_CS0_BNDS 0x0000001F 1186d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_CS0_CONFIG 0x80010102 /* Enable, no interleaving */ 1196d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_TIMING_3 0x00000000 1206d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_TIMING_0 0x00260802 1216d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_TIMING_1 0x3935d322 1226d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_TIMING_2 0x14904cc8 1236d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_MODE_1 0x00480432 1246d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_MODE_2 0x00000000 1256d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_INTERVAL 0x06180100 1266d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_DATA_INIT 0xdeadbeef 1276d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_CLK_CTRL 0x03800000 1286d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_OCD_CTRL 0x00000000 1296d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_OCD_STATUS 0x00000000 1306d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_CONTROL 0xC3008000 /* Type = DDR2 */ 1316d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_CONTROL2 0x04400010 1329490a7f1SKumar Gala 1336d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_ERR_INT_EN 0x0000000d 1346d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_ERR_DIS 0x00000000 1356d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_SBE 0x00010000 1369490a7f1SKumar Gala 1379490a7f1SKumar Gala /* FIXME: Not used in fixed_sdram function */ 1386d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_MODE 0x00000022 1396d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_CS1_BNDS 0x00000000 1406d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_CS2_BNDS 0x00000FFF /* Not done */ 1416d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_CS3_BNDS 0x00000FFF /* Not done */ 1426d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_CS4_BNDS 0x00000FFF /* Not done */ 1436d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_DDR_CS5_BNDS 0x00000FFF /* Not done */ 1449490a7f1SKumar Gala 1459490a7f1SKumar Gala /* Make sure required options are set */ 1469490a7f1SKumar Gala #ifndef CONFIG_SPD_EEPROM 1479490a7f1SKumar Gala #error ("CONFIG_SPD_EEPROM is required") 1489490a7f1SKumar Gala #endif 1499490a7f1SKumar Gala 1509490a7f1SKumar Gala #undef CONFIG_CLOCKS_IN_MHZ 1519490a7f1SKumar Gala 1529490a7f1SKumar Gala 1539490a7f1SKumar Gala /* 1549490a7f1SKumar Gala * Memory map -- xxx -this is wrong, needs updating 1559490a7f1SKumar Gala * 1569490a7f1SKumar Gala * 0x0000_0000 0x7fff_ffff DDR 2G Cacheable 1579490a7f1SKumar Gala * 0x8000_0000 0xbfff_ffff PCI Express Mem 1G non-cacheable 1589490a7f1SKumar Gala * 0xc000_0000 0xdfff_ffff PCI 512M non-cacheable 1599490a7f1SKumar Gala * 0xe100_0000 0xe3ff_ffff PCI IO range 4M non-cacheable 1609490a7f1SKumar Gala * 1619490a7f1SKumar Gala * Localbus cacheable (TBD) 1629490a7f1SKumar Gala * 0xXXXX_XXXX 0xXXXX_XXXX SRAM YZ M Cacheable 1639490a7f1SKumar Gala * 1649490a7f1SKumar Gala * Localbus non-cacheable 1659490a7f1SKumar Gala * 0xe000_0000 0xe80f_ffff Promjet/free 128M non-cacheable 1669490a7f1SKumar Gala * 0xe800_0000 0xefff_ffff FLASH 128M non-cacheable 1679490a7f1SKumar Gala * 0xffdf_0000 0xffdf_7fff PIXIS 32K non-cacheable TLB0 1689490a7f1SKumar Gala * 0xffd0_0000 0xffd0_3fff L1 for stack 16K Cacheable TLB0 1699490a7f1SKumar Gala * 0xffe0_0000 0xffef_ffff CCSR 1M non-cacheable 1709490a7f1SKumar Gala */ 1719490a7f1SKumar Gala 1729490a7f1SKumar Gala /* 1739490a7f1SKumar Gala * Local Bus Definitions 1749490a7f1SKumar Gala */ 1756d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_FLASH_BASE 0xe0000000 /* start of FLASH 128M */ 1769490a7f1SKumar Gala 1776d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_BR0_PRELIM 0xe8001001 1786d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_OR0_PRELIM 0xf8000ff7 1799490a7f1SKumar Gala 1806d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_BR1_PRELIM 0xe0001001 1816d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_OR1_PRELIM 0xf8000ff7 1829490a7f1SKumar Gala 1836d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_FLASH_BANKS_LIST {CONFIG_SYS_FLASH_BASE + 0x8000000, CONFIG_SYS_FLASH_BASE} 1846d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_FLASH_QUIET_TEST 1859490a7f1SKumar Gala #define CONFIG_FLASH_SHOW_PROGRESS 45 /* count down from 45/5: 9..1 */ 1869490a7f1SKumar Gala 1876d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MAX_FLASH_BANKS 2 /* number of banks */ 1886d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MAX_FLASH_SECT 1024 /* sectors per device */ 1896d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #undef CONFIG_SYS_FLASH_CHECKSUM 1906d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_FLASH_ERASE_TOUT 60000 /* Flash Erase Timeout (ms) */ 1916d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_FLASH_WRITE_TOUT 500 /* Flash Write Timeout (ms) */ 1929490a7f1SKumar Gala 1936d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MONITOR_BASE TEXT_BASE /* start of monitor */ 1949490a7f1SKumar Gala 1959490a7f1SKumar Gala #define CONFIG_FLASH_CFI_DRIVER 1966d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_FLASH_CFI 1976d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_FLASH_EMPTY_INFO 1986d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_FLASH_AMD_CHECK_DQ7 1999490a7f1SKumar Gala 2009490a7f1SKumar Gala #define CONFIG_BOARD_EARLY_INIT_R /* call board_early_init_r function */ 2019490a7f1SKumar Gala 2029490a7f1SKumar Gala #define CONFIG_FSL_PIXIS 1 /* use common PIXIS code */ 2039490a7f1SKumar Gala #define PIXIS_BASE 0xffdf0000 /* PIXIS registers */ 2049490a7f1SKumar Gala 2056d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_BR3_PRELIM (PIXIS_BASE | 0x0801) /* port size 8bit */ 2066d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_OR3_PRELIM 0xffffeff7 /* 32KB but only 4k mapped */ 2079490a7f1SKumar Gala 2089490a7f1SKumar Gala #define PIXIS_ID 0x0 /* Board ID at offset 0 */ 2099490a7f1SKumar Gala #define PIXIS_VER 0x1 /* Board version at offset 1 */ 2109490a7f1SKumar Gala #define PIXIS_PVER 0x2 /* PIXIS FPGA version at offset 2 */ 2119490a7f1SKumar Gala #define PIXIS_CSR 0x3 /* PIXIS General control/status register */ 2129490a7f1SKumar Gala #define PIXIS_RST 0x4 /* PIXIS Reset Control register */ 2139490a7f1SKumar Gala #define PIXIS_PWR 0x5 /* PIXIS Power status register */ 2149490a7f1SKumar Gala #define PIXIS_AUX 0x6 /* Auxiliary 1 register */ 2159490a7f1SKumar Gala #define PIXIS_SPD 0x7 /* Register for SYSCLK speed */ 2169490a7f1SKumar Gala #define PIXIS_AUX2 0x8 /* Auxiliary 2 register */ 2179490a7f1SKumar Gala #define PIXIS_VCTL 0x10 /* VELA Control Register */ 2189490a7f1SKumar Gala #define PIXIS_VSTAT 0x11 /* VELA Status Register */ 2199490a7f1SKumar Gala #define PIXIS_VCFGEN0 0x12 /* VELA Config Enable 0 */ 2209490a7f1SKumar Gala #define PIXIS_VCFGEN1 0x13 /* VELA Config Enable 1 */ 2219490a7f1SKumar Gala #define PIXIS_VCORE0 0x14 /* VELA VCORE0 Register */ 2229490a7f1SKumar Gala #define PIXIS_VBOOT 0x16 /* VELA VBOOT Register */ 2239490a7f1SKumar Gala #define PIXIS_VSPEED0 0x17 /* VELA VSpeed 0 */ 2249490a7f1SKumar Gala #define PIXIS_VSPEED1 0x18 /* VELA VSpeed 1 */ 2259490a7f1SKumar Gala #define PIXIS_VSPEED2 0x19 /* VELA VSpeed 2 */ 2269490a7f1SKumar Gala #define PIXIS_VSYSCLK0 0x1A /* VELA SYSCLK0 Register */ 2279490a7f1SKumar Gala #define PIXIS_VSYSCLK1 0x1B /* VELA SYSCLK1 Register */ 2289490a7f1SKumar Gala #define PIXIS_VSYSCLK2 0x1C /* VELA SYSCLK2 Register */ 2299490a7f1SKumar Gala #define PIXIS_VDDRCLK0 0x1D /* VELA DDRCLK0 Register */ 2309490a7f1SKumar Gala #define PIXIS_VDDRCLK1 0x1E /* VELA DDRCLK1 Register */ 2319490a7f1SKumar Gala #define PIXIS_VDDRCLK2 0x1F /* VELA DDRCLK2 Register */ 2329490a7f1SKumar Gala #define PIXIS_VWATCH 0x24 /* Watchdog Register */ 2339490a7f1SKumar Gala #define PIXIS_LED 0x25 /* LED Register */ 2349490a7f1SKumar Gala 2359490a7f1SKumar Gala /* old pixis referenced names */ 2369490a7f1SKumar Gala #define PIXIS_VCLKH 0x19 /* VELA VCLKH register */ 2379490a7f1SKumar Gala #define PIXIS_VCLKL 0x1A /* VELA VCLKL register */ 2386d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PIXIS_VBOOT_MASK 0xc0 2399490a7f1SKumar Gala 2409490a7f1SKumar Gala /* define to use L1 as initial stack */ 2419490a7f1SKumar Gala #define CONFIG_L1_INIT_RAM 2426d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_INIT_RAM_LOCK 1 2436d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_INIT_RAM_ADDR 0xffd00000 /* Initial L1 address */ 2446d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_INIT_RAM_END 0x00004000 /* End of used area in RAM */ 2459490a7f1SKumar Gala 2466d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_GBL_DATA_SIZE 128 /* num bytes initial data */ 2476d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE) 2486d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET 2499490a7f1SKumar Gala 2506d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MONITOR_LEN (256 * 1024) /* Reserve 256 kB for Mon */ 2516d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MALLOC_LEN (1024 * 1024) /* Reserved for malloc */ 2529490a7f1SKumar Gala 2539490a7f1SKumar Gala /* Serial Port - controlled on board with jumper J8 2549490a7f1SKumar Gala * open - index 2 2559490a7f1SKumar Gala * shorted - index 1 2569490a7f1SKumar Gala */ 2579490a7f1SKumar Gala #define CONFIG_CONS_INDEX 1 2589490a7f1SKumar Gala #undef CONFIG_SERIAL_SOFTWARE_FIFO 2596d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_NS16550 2606d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_NS16550_SERIAL 2616d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_NS16550_REG_SIZE 1 2626d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_NS16550_CLK get_bus_freq(0) 2639490a7f1SKumar Gala 2646d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_BAUDRATE_TABLE \ 2659490a7f1SKumar Gala {300, 600, 1200, 2400, 4800, 9600, 19200, 38400,115200} 2669490a7f1SKumar Gala 2676d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_NS16550_COM1 (CONFIG_SYS_CCSRBAR+0x4500) 2686d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_NS16550_COM2 (CONFIG_SYS_CCSRBAR+0x4600) 2699490a7f1SKumar Gala 2709490a7f1SKumar Gala /* Use the HUSH parser */ 2716d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_HUSH_PARSER 2726d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #ifdef CONFIG_SYS_HUSH_PARSER 2736d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PROMPT_HUSH_PS2 "> " 2749490a7f1SKumar Gala #endif 2759490a7f1SKumar Gala 2769490a7f1SKumar Gala /* 2779490a7f1SKumar Gala * Pass open firmware flat tree 2789490a7f1SKumar Gala */ 2799490a7f1SKumar Gala #define CONFIG_OF_LIBFDT 1 2809490a7f1SKumar Gala #define CONFIG_OF_BOARD_SETUP 1 2819490a7f1SKumar Gala #define CONFIG_OF_STDOUT_VIA_ALIAS 1 2829490a7f1SKumar Gala 2836d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_64BIT_STRTOUL 1 2846d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_64BIT_VSPRINTF 1 2859490a7f1SKumar Gala 2869490a7f1SKumar Gala 2879490a7f1SKumar Gala /* 2889490a7f1SKumar Gala * I2C 2899490a7f1SKumar Gala */ 2909490a7f1SKumar Gala #define CONFIG_FSL_I2C /* Use FSL common I2C driver */ 2919490a7f1SKumar Gala #define CONFIG_HARD_I2C /* I2C with hardware support */ 2929490a7f1SKumar Gala #undef CONFIG_SOFT_I2C /* I2C bit-banged */ 2939490a7f1SKumar Gala #define CONFIG_I2C_MULTI_BUS 2949490a7f1SKumar Gala #define CONFIG_I2C_CMD_TREE 2956d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_I2C_SPEED 400000 /* I2C speed and slave address */ 2966d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_I2C_SLAVE 0x7F 2976d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_I2C_NOPROBES {{0, 0x29}} /* Don't probe these addrs */ 2986d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_I2C_OFFSET 0x3000 2996d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_I2C2_OFFSET 0x3100 3009490a7f1SKumar Gala 3019490a7f1SKumar Gala /* 3029490a7f1SKumar Gala * I2C2 EEPROM 3039490a7f1SKumar Gala */ 30432628c50SJean-Christophe PLAGNIOL-VILLARD #define CONFIG_ID_EEPROM 30532628c50SJean-Christophe PLAGNIOL-VILLARD #ifdef CONFIG_ID_EEPROM 3066d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_I2C_EEPROM_NXID 3079490a7f1SKumar Gala #endif 3086d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_I2C_EEPROM_ADDR 0x57 3096d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1 3106d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_EEPROM_BUS_NUM 1 3119490a7f1SKumar Gala 3129490a7f1SKumar Gala /* 3139490a7f1SKumar Gala * General PCI 3149490a7f1SKumar Gala * Memory space is mapped 1-1, but I/O space must start from 0. 3159490a7f1SKumar Gala */ 3169490a7f1SKumar Gala 3179490a7f1SKumar Gala /* PCI view of System Memory */ 3186d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCI_MEMORY_BUS 0x00000000 3196d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCI_MEMORY_PHYS 0x00000000 3206d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCI_MEMORY_SIZE 0x80000000 3219490a7f1SKumar Gala 3226d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCI1_MEM_BASE 0x80000000 3236d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCI1_MEM_PHYS CONFIG_SYS_PCI1_MEM_BASE 3246d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCI1_MEM_SIZE 0x10000000 /* 256M */ 3256d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCI1_IO_BASE 0x00000000 3266d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCI1_IO_PHYS 0xffc00000 3276d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCI1_IO_SIZE 0x00010000 /* 64k */ 3289490a7f1SKumar Gala 3299490a7f1SKumar Gala /* controller 1, Slot 1, tgtid 1, Base address a000 */ 3306d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE1_MEM_BASE 0x90000000 3316d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE1_MEM_PHYS CONFIG_SYS_PCIE1_MEM_BASE 3326d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE1_MEM_SIZE 0x08000000 /* 128M */ 3336d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE1_IO_BASE 0x00000000 3346d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE1_IO_PHYS 0xffc10000 3356d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE1_IO_SIZE 0x00010000 /* 64k */ 3369490a7f1SKumar Gala 3379490a7f1SKumar Gala /* controller 2, Slot 2, tgtid 2, Base address 9000 */ 3386d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE2_MEM_BASE 0x98000000 3396d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE2_MEM_PHYS CONFIG_SYS_PCIE2_MEM_BASE 3406d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE2_MEM_SIZE 0x08000000 /* 128M */ 3416d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE2_IO_BASE 0x00000000 3426d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE2_IO_PHYS 0xffc20000 3436d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE2_IO_SIZE 0x00010000 /* 64k */ 3449490a7f1SKumar Gala 3459490a7f1SKumar Gala /* controller 3, direct to uli, tgtid 3, Base address 8000 */ 3466d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE3_MEM_BASE 0xa0000000 3476d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE3_MEM_PHYS CONFIG_SYS_PCIE3_MEM_BASE 3486d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE3_MEM_SIZE 0x20000000 /* 512M */ 3496d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE3_IO_BASE 0x00000000 3506d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE3_IO_PHYS 0xffc30000 3516d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PCIE3_IO_SIZE 0x00010000 /* 64k */ 3529490a7f1SKumar Gala 3539490a7f1SKumar Gala #if defined(CONFIG_PCI) 3549490a7f1SKumar Gala 3559490a7f1SKumar Gala #define CONFIG_NET_MULTI 3569490a7f1SKumar Gala #define CONFIG_PCI_PNP /* do pci plug-and-play */ 3579490a7f1SKumar Gala 3589490a7f1SKumar Gala /*PCIE video card used*/ 3596d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define VIDEO_IO_OFFSET CONFIG_SYS_PCIE3_IO_PHYS 3609490a7f1SKumar Gala 3619490a7f1SKumar Gala /*PCI video card used*/ 3626d0f6bcfSJean-Christophe PLAGNIOL-VILLARD /*#define VIDEO_IO_OFFSET CONFIG_SYS_PCI1_IO_PHYS*/ 3639490a7f1SKumar Gala 3649490a7f1SKumar Gala /* video */ 3659490a7f1SKumar Gala #define CONFIG_VIDEO 3669490a7f1SKumar Gala 3679490a7f1SKumar Gala #if defined(CONFIG_VIDEO) 3689490a7f1SKumar Gala #define CONFIG_BIOSEMU 3699490a7f1SKumar Gala #define CONFIG_CFB_CONSOLE 3709490a7f1SKumar Gala #define CONFIG_VIDEO_SW_CURSOR 3719490a7f1SKumar Gala #define CONFIG_VGA_AS_SINGLE_DEVICE 3729490a7f1SKumar Gala #define CONFIG_ATI_RADEON_FB 3739490a7f1SKumar Gala #define CONFIG_VIDEO_LOGO 3749490a7f1SKumar Gala /*#define CONFIG_CONSOLE_CURSOR*/ 3756d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_ISA_IO_BASE_ADDRESS CONFIG_SYS_PCIE3_IO_PHYS 3769490a7f1SKumar Gala #endif 3779490a7f1SKumar Gala 3789490a7f1SKumar Gala #undef CONFIG_EEPRO100 3799490a7f1SKumar Gala #undef CONFIG_TULIP 3809490a7f1SKumar Gala #undef CONFIG_RTL8139 3819490a7f1SKumar Gala 3829490a7f1SKumar Gala #ifdef CONFIG_RTL8139 3839490a7f1SKumar Gala /* This macro is used by RTL8139 but not defined in PPC architecture */ 3849490a7f1SKumar Gala #define KSEG1ADDR(x) ({u32 _x=le32_to_cpu(*(u32 *)(x)); (&_x);}) 3859490a7f1SKumar Gala #define _IO_BASE 0x00000000 3869490a7f1SKumar Gala #endif 3879490a7f1SKumar Gala 3889490a7f1SKumar Gala #ifndef CONFIG_PCI_PNP 3896d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define PCI_ENET0_IOADDR CONFIG_SYS_PCI1_IO_BASE 3906d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define PCI_ENET0_MEMADDR CONFIG_SYS_PCI1_IO_BASE 3919490a7f1SKumar Gala #define PCI_IDSEL_NUMBER 0x11 /* IDSEL = AD11 */ 3929490a7f1SKumar Gala #endif 3939490a7f1SKumar Gala 3949490a7f1SKumar Gala #define CONFIG_PCI_SCAN_SHOW /* show pci devices on startup */ 3959490a7f1SKumar Gala 3969490a7f1SKumar Gala #endif /* CONFIG_PCI */ 3979490a7f1SKumar Gala 3989490a7f1SKumar Gala /* SATA */ 3999490a7f1SKumar Gala #define CONFIG_LIBATA 4009490a7f1SKumar Gala #define CONFIG_FSL_SATA 4019490a7f1SKumar Gala 4026d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_SATA_MAX_DEVICE 2 4039490a7f1SKumar Gala #define CONFIG_SATA1 4046d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_SATA1 CONFIG_SYS_MPC85xx_SATA1_ADDR 4056d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_SATA1_FLAGS FLAGS_DMA 4069490a7f1SKumar Gala #define CONFIG_SATA2 4076d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_SATA2 CONFIG_SYS_MPC85xx_SATA2_ADDR 4086d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_SATA2_FLAGS FLAGS_DMA 4099490a7f1SKumar Gala 4109490a7f1SKumar Gala #ifdef CONFIG_FSL_SATA 4119490a7f1SKumar Gala #define CONFIG_LBA48 4129490a7f1SKumar Gala #define CONFIG_CMD_SATA 4139490a7f1SKumar Gala #define CONFIG_DOS_PARTITION 4149490a7f1SKumar Gala #define CONFIG_CMD_EXT2 4159490a7f1SKumar Gala #endif 4169490a7f1SKumar Gala 4179490a7f1SKumar Gala #if defined(CONFIG_TSEC_ENET) 4189490a7f1SKumar Gala 4199490a7f1SKumar Gala #ifndef CONFIG_NET_MULTI 4209490a7f1SKumar Gala #define CONFIG_NET_MULTI 1 4219490a7f1SKumar Gala #endif 4229490a7f1SKumar Gala 4239490a7f1SKumar Gala #define CONFIG_MII 1 /* MII PHY management */ 4249490a7f1SKumar Gala #define CONFIG_MII_DEFAULT_TSEC 1 /* Allow unregistered phys */ 4259490a7f1SKumar Gala #define CONFIG_TSEC1 1 4269490a7f1SKumar Gala #define CONFIG_TSEC1_NAME "eTSEC1" 4279490a7f1SKumar Gala #define CONFIG_TSEC3 1 4289490a7f1SKumar Gala #define CONFIG_TSEC3_NAME "eTSEC3" 4299490a7f1SKumar Gala 430*2e26d837SJason Jin #define CONFIG_FSL_SGMII_RISER 1 431*2e26d837SJason Jin #define SGMII_RISER_PHY_OFFSET 0x1c 432*2e26d837SJason Jin 4339490a7f1SKumar Gala #define TSEC1_PHY_ADDR 1 /* TSEC1 -> PHY1 */ 4349490a7f1SKumar Gala #define TSEC3_PHY_ADDR 0 /* TSEC3 -> PHY0 */ 4359490a7f1SKumar Gala 4369490a7f1SKumar Gala #define TSEC1_FLAGS (TSEC_GIGABIT | TSEC_REDUCED) 4379490a7f1SKumar Gala #define TSEC3_FLAGS (TSEC_GIGABIT | TSEC_REDUCED) 4389490a7f1SKumar Gala 4399490a7f1SKumar Gala #define TSEC1_PHYIDX 0 4409490a7f1SKumar Gala #define TSEC3_PHYIDX 0 4419490a7f1SKumar Gala 4429490a7f1SKumar Gala #define CONFIG_ETHPRIME "eTSEC1" 4439490a7f1SKumar Gala 4449490a7f1SKumar Gala #define CONFIG_PHY_GIGE 1 /* Include GbE speed/duplex detection */ 4459490a7f1SKumar Gala 4469490a7f1SKumar Gala #endif /* CONFIG_TSEC_ENET */ 4479490a7f1SKumar Gala 4489490a7f1SKumar Gala /* 4499490a7f1SKumar Gala * Environment 4509490a7f1SKumar Gala */ 4515a1aceb0SJean-Christophe PLAGNIOL-VILLARD #define CONFIG_ENV_IS_IN_FLASH 1 4526d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #if CONFIG_SYS_MONITOR_BASE > 0xfff80000 4530e8d1586SJean-Christophe PLAGNIOL-VILLARD #define CONFIG_ENV_ADDR 0xfff80000 4549490a7f1SKumar Gala #else 4556d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_ENV_ADDR (CONFIG_SYS_MONITOR_BASE + 0x60000) 4569490a7f1SKumar Gala #endif 4570e8d1586SJean-Christophe PLAGNIOL-VILLARD #define CONFIG_ENV_SIZE 0x2000 4580e8d1586SJean-Christophe PLAGNIOL-VILLARD #define CONFIG_ENV_SECT_SIZE 0x20000 /* 128K (one sector) */ 4599490a7f1SKumar Gala 4609490a7f1SKumar Gala #define CONFIG_LOADS_ECHO 1 /* echo on for serial download */ 4616d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_LOADS_BAUD_CHANGE 1 /* allow baudrate change */ 4629490a7f1SKumar Gala 4639490a7f1SKumar Gala /* 4649490a7f1SKumar Gala * Command line configuration. 4659490a7f1SKumar Gala */ 4669490a7f1SKumar Gala #include <config_cmd_default.h> 4679490a7f1SKumar Gala 4689490a7f1SKumar Gala #define CONFIG_CMD_IRQ 4699490a7f1SKumar Gala #define CONFIG_CMD_PING 4709490a7f1SKumar Gala #define CONFIG_CMD_I2C 4719490a7f1SKumar Gala #define CONFIG_CMD_MII 4729490a7f1SKumar Gala #define CONFIG_CMD_ELF 4731c9aa76bSKumar Gala #define CONFIG_CMD_IRQ 4741c9aa76bSKumar Gala #define CONFIG_CMD_SETEXPR 4759490a7f1SKumar Gala 4769490a7f1SKumar Gala #if defined(CONFIG_PCI) 4779490a7f1SKumar Gala #define CONFIG_CMD_PCI 4789490a7f1SKumar Gala #define CONFIG_CMD_BEDBUG 4799490a7f1SKumar Gala #define CONFIG_CMD_NET 4809490a7f1SKumar Gala #endif 4819490a7f1SKumar Gala 4829490a7f1SKumar Gala #undef CONFIG_WATCHDOG /* watchdog disabled */ 4839490a7f1SKumar Gala 4849490a7f1SKumar Gala /* 4859490a7f1SKumar Gala * Miscellaneous configurable options 4869490a7f1SKumar Gala */ 4876d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_LONGHELP /* undef to save memory */ 4889490a7f1SKumar Gala #define CONFIG_CMDLINE_EDITING /* Command-line editing */ 4896d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_LOAD_ADDR 0x2000000 /* default load address */ 4906d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PROMPT "=> " /* Monitor Command Prompt */ 4919490a7f1SKumar Gala #if defined(CONFIG_CMD_KGDB) 4926d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buffer Size */ 4939490a7f1SKumar Gala #else 4946d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */ 4959490a7f1SKumar Gala #endif 4966d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */ 4976d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_MAXARGS 16 /* max number of command args */ 4986d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE /* Boot Argument Buffer Size */ 4996d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_HZ 1000 /* decrementer freq: 1ms ticks */ 5009490a7f1SKumar Gala 5019490a7f1SKumar Gala /* 5029490a7f1SKumar Gala * For booting Linux, the board info and command line data 5039490a7f1SKumar Gala * have to be in the first 8 MB of memory, since this is 5049490a7f1SKumar Gala * the maximum mapped by the Linux kernel during initialization. 5059490a7f1SKumar Gala */ 5066d0f6bcfSJean-Christophe PLAGNIOL-VILLARD #define CONFIG_SYS_BOOTMAPSZ (8 << 20) /* Initial Memory map for Linux*/ 5079490a7f1SKumar Gala 5089490a7f1SKumar Gala /* 5099490a7f1SKumar Gala * Internal Definitions 5109490a7f1SKumar Gala * 5119490a7f1SKumar Gala * Boot Flags 5129490a7f1SKumar Gala */ 5139490a7f1SKumar Gala #define BOOTFLAG_COLD 0x01 /* Normal Power-On: Boot from FLASH */ 5149490a7f1SKumar Gala #define BOOTFLAG_WARM 0x02 /* Software reboot */ 5159490a7f1SKumar Gala 5169490a7f1SKumar Gala #if defined(CONFIG_CMD_KGDB) 5179490a7f1SKumar Gala #define CONFIG_KGDB_BAUDRATE 230400 /* speed to run kgdb serial port */ 5189490a7f1SKumar Gala #define CONFIG_KGDB_SER_INDEX 2 /* which serial port to use */ 5199490a7f1SKumar Gala #endif 5209490a7f1SKumar Gala 5219490a7f1SKumar Gala /* 5229490a7f1SKumar Gala * Environment Configuration 5239490a7f1SKumar Gala */ 5249490a7f1SKumar Gala 5259490a7f1SKumar Gala /* The mac addresses for all ethernet interface */ 5269490a7f1SKumar Gala #if defined(CONFIG_TSEC_ENET) 5279490a7f1SKumar Gala #define CONFIG_HAS_ETH0 5289490a7f1SKumar Gala #define CONFIG_ETHADDR 00:E0:0C:02:00:FD 5299490a7f1SKumar Gala #define CONFIG_HAS_ETH1 5309490a7f1SKumar Gala #define CONFIG_ETH1ADDR 00:E0:0C:02:01:FD 5319490a7f1SKumar Gala #define CONFIG_HAS_ETH2 5329490a7f1SKumar Gala #define CONFIG_ETH2ADDR 00:E0:0C:02:02:FD 5339490a7f1SKumar Gala #define CONFIG_HAS_ETH3 5349490a7f1SKumar Gala #define CONFIG_ETH3ADDR 00:E0:0C:02:03:FD 5359490a7f1SKumar Gala #endif 5369490a7f1SKumar Gala 5379490a7f1SKumar Gala #define CONFIG_IPADDR 192.168.1.254 5389490a7f1SKumar Gala 5399490a7f1SKumar Gala #define CONFIG_HOSTNAME unknown 5409490a7f1SKumar Gala #define CONFIG_ROOTPATH /opt/nfsroot 5419490a7f1SKumar Gala #define CONFIG_BOOTFILE uImage 5429490a7f1SKumar Gala #define CONFIG_UBOOTPATH u-boot.bin /* U-Boot image on TFTP server */ 5439490a7f1SKumar Gala 5449490a7f1SKumar Gala #define CONFIG_SERVERIP 192.168.1.1 5459490a7f1SKumar Gala #define CONFIG_GATEWAYIP 192.168.1.1 5469490a7f1SKumar Gala #define CONFIG_NETMASK 255.255.255.0 5479490a7f1SKumar Gala 5489490a7f1SKumar Gala /* default location for tftp and bootm */ 5499490a7f1SKumar Gala #define CONFIG_LOADADDR 1000000 5509490a7f1SKumar Gala 5519490a7f1SKumar Gala #define CONFIG_BOOTDELAY 10 /* -1 disables auto-boot */ 5529490a7f1SKumar Gala #undef CONFIG_BOOTARGS /* the boot command will set bootargs */ 5539490a7f1SKumar Gala 5549490a7f1SKumar Gala #define CONFIG_BAUDRATE 115200 5559490a7f1SKumar Gala 5569490a7f1SKumar Gala #define CONFIG_EXTRA_ENV_SETTINGS \ 5579490a7f1SKumar Gala "netdev=eth0\0" \ 5589490a7f1SKumar Gala "uboot=" MK_STR(CONFIG_UBOOTPATH) "\0" \ 5599490a7f1SKumar Gala "tftpflash=tftpboot $loadaddr $uboot; " \ 5609490a7f1SKumar Gala "protect off " MK_STR(TEXT_BASE) " +$filesize; " \ 5619490a7f1SKumar Gala "erase " MK_STR(TEXT_BASE) " +$filesize; " \ 5629490a7f1SKumar Gala "cp.b $loadaddr " MK_STR(TEXT_BASE) " $filesize; " \ 5639490a7f1SKumar Gala "protect on " MK_STR(TEXT_BASE) " +$filesize; " \ 5649490a7f1SKumar Gala "cmp.b $loadaddr " MK_STR(TEXT_BASE) " $filesize\0" \ 5659490a7f1SKumar Gala "consoledev=ttyS0\0" \ 5669490a7f1SKumar Gala "ramdiskaddr=2000000\0" \ 5679490a7f1SKumar Gala "ramdiskfile=8536ds/ramdisk.uboot\0" \ 5689490a7f1SKumar Gala "fdtaddr=c00000\0" \ 5699490a7f1SKumar Gala "fdtfile=8536ds/mpc8536ds.dtb\0" \ 5709490a7f1SKumar Gala "bdev=sda3\0" 5719490a7f1SKumar Gala 5729490a7f1SKumar Gala #define CONFIG_HDBOOT \ 5739490a7f1SKumar Gala "setenv bootargs root=/dev/$bdev rw " \ 5749490a7f1SKumar Gala "console=$consoledev,$baudrate $othbootargs;" \ 5759490a7f1SKumar Gala "tftp $loadaddr $bootfile;" \ 5769490a7f1SKumar Gala "tftp $fdtaddr $fdtfile;" \ 5779490a7f1SKumar Gala "bootm $loadaddr - $fdtaddr" 5789490a7f1SKumar Gala 5799490a7f1SKumar Gala #define CONFIG_NFSBOOTCOMMAND \ 5809490a7f1SKumar Gala "setenv bootargs root=/dev/nfs rw " \ 5819490a7f1SKumar Gala "nfsroot=$serverip:$rootpath " \ 5829490a7f1SKumar Gala "ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname:$netdev:off " \ 5839490a7f1SKumar Gala "console=$consoledev,$baudrate $othbootargs;" \ 5849490a7f1SKumar Gala "tftp $loadaddr $bootfile;" \ 5859490a7f1SKumar Gala "tftp $fdtaddr $fdtfile;" \ 5869490a7f1SKumar Gala "bootm $loadaddr - $fdtaddr" 5879490a7f1SKumar Gala 5889490a7f1SKumar Gala #define CONFIG_RAMBOOTCOMMAND \ 5899490a7f1SKumar Gala "setenv bootargs root=/dev/ram rw " \ 5909490a7f1SKumar Gala "console=$consoledev,$baudrate $othbootargs;" \ 5919490a7f1SKumar Gala "tftp $ramdiskaddr $ramdiskfile;" \ 5929490a7f1SKumar Gala "tftp $loadaddr $bootfile;" \ 5939490a7f1SKumar Gala "tftp $fdtaddr $fdtfile;" \ 5949490a7f1SKumar Gala "bootm $loadaddr $ramdiskaddr $fdtaddr" 5959490a7f1SKumar Gala 5969490a7f1SKumar Gala #define CONFIG_BOOTCOMMAND CONFIG_HDBOOT 5979490a7f1SKumar Gala 5989490a7f1SKumar Gala #endif /* __CONFIG_H */ 599