1c59e1b4dSTimur Tabi /* 23d7506faSramneek mehresh * Copyright 2010-2012 Freescale Semiconductor, Inc. 3c59e1b4dSTimur Tabi * Authors: Srikanth Srinivasan <srikanth.srinivasan@freescale.com> 4c59e1b4dSTimur Tabi * Timur Tabi <timur@freescale.com> 5c59e1b4dSTimur Tabi * 6*1a459660SWolfgang Denk * SPDX-License-Identifier: GPL-2.0+ 7c59e1b4dSTimur Tabi */ 8c59e1b4dSTimur Tabi 9c59e1b4dSTimur Tabi #ifndef __CONFIG_H 10c59e1b4dSTimur Tabi #define __CONFIG_H 11c59e1b4dSTimur Tabi 12c59e1b4dSTimur Tabi #include "../board/freescale/common/ics307_clk.h" 13c59e1b4dSTimur Tabi 149899ac19SJiang Yutang #ifdef CONFIG_36BIT 159899ac19SJiang Yutang #define CONFIG_PHYS_64BIT 169899ac19SJiang Yutang #endif 179899ac19SJiang Yutang 18af253608SMatthew McClintock #ifdef CONFIG_SDCARD 19af253608SMatthew McClintock #define CONFIG_RAMBOOT_SDCARD 20af253608SMatthew McClintock #define CONFIG_SYS_RAMBOOT 21af253608SMatthew McClintock #define CONFIG_SYS_EXTRA_ENV_RELOC 22af253608SMatthew McClintock #define CONFIG_SYS_TEXT_BASE 0x11000000 23af253608SMatthew McClintock #define CONFIG_RESET_VECTOR_ADDRESS 0x1107fffc 24af253608SMatthew McClintock #endif 25af253608SMatthew McClintock 26af253608SMatthew McClintock #ifdef CONFIG_SPIFLASH 27af253608SMatthew McClintock #define CONFIG_RAMBOOT_SPIFLASH 28af253608SMatthew McClintock #define CONFIG_SYS_RAMBOOT 29af253608SMatthew McClintock #define CONFIG_SYS_EXTRA_ENV_RELOC 30af253608SMatthew McClintock #define CONFIG_SYS_TEXT_BASE 0x11000000 31af253608SMatthew McClintock #define CONFIG_RESET_VECTOR_ADDRESS 0x1107fffc 32af253608SMatthew McClintock #endif 33af253608SMatthew McClintock 34f45210d6SMatthew McClintock #define CONFIG_NAND_FSL_ELBC 35f45210d6SMatthew McClintock 36f45210d6SMatthew McClintock #ifdef CONFIG_NAND 37f45210d6SMatthew McClintock #define CONFIG_SPL 38f45210d6SMatthew McClintock #define CONFIG_SPL_INIT_MINIMAL 39f45210d6SMatthew McClintock #define CONFIG_SPL_SERIAL_SUPPORT 40f45210d6SMatthew McClintock #define CONFIG_SPL_NAND_SUPPORT 41f45210d6SMatthew McClintock #define CONFIG_SPL_NAND_MINIMAL 42f45210d6SMatthew McClintock #define CONFIG_SPL_FLUSH_IMAGE 43f45210d6SMatthew McClintock #define CONFIG_SPL_TARGET "u-boot-with-spl.bin" 44f45210d6SMatthew McClintock 45f45210d6SMatthew McClintock #define CONFIG_SYS_TEXT_BASE 0x00201000 46f45210d6SMatthew McClintock #define CONFIG_SPL_TEXT_BASE 0xfffff000 475ed6f447STom Rini #define CONFIG_SPL_MAX_SIZE 4096 48f45210d6SMatthew McClintock #define CONFIG_SPL_RELOC_TEXT_BASE 0x00100000 49f45210d6SMatthew McClintock #define CONFIG_SPL_RELOC_STACK 0x00100000 50f45210d6SMatthew McClintock #define CONFIG_SYS_NAND_U_BOOT_SIZE ((512 << 10) + CONFIG_SPL_MAX_SIZE) 51f45210d6SMatthew McClintock #define CONFIG_SYS_NAND_U_BOOT_DST (0x00200000 - CONFIG_SPL_MAX_SIZE) 52f45210d6SMatthew McClintock #define CONFIG_SYS_NAND_U_BOOT_START 0x00200000 53f45210d6SMatthew McClintock #define CONFIG_SYS_NAND_U_BOOT_OFFS 0 54f45210d6SMatthew McClintock #define CONFIG_SYS_LDSCRIPT "arch/powerpc/cpu/mpc85xx/u-boot-nand.lds" 55f45210d6SMatthew McClintock #endif 56f45210d6SMatthew McClintock 57c59e1b4dSTimur Tabi /* High Level Configuration Options */ 58c59e1b4dSTimur Tabi #define CONFIG_BOOKE /* BOOKE */ 59c59e1b4dSTimur Tabi #define CONFIG_E500 /* BOOKE e500 family */ 60c59e1b4dSTimur Tabi #define CONFIG_MPC85xx /* MPC8540/60/55/41/48 */ 61c59e1b4dSTimur Tabi #define CONFIG_P1022 62c59e1b4dSTimur Tabi #define CONFIG_P1022DS 63c59e1b4dSTimur Tabi #define CONFIG_MP /* support multiple processors */ 64c59e1b4dSTimur Tabi 652ae18241SWolfgang Denk #ifndef CONFIG_SYS_TEXT_BASE 662ae18241SWolfgang Denk #define CONFIG_SYS_TEXT_BASE 0xeff80000 672ae18241SWolfgang Denk #endif 682ae18241SWolfgang Denk 697a577fdaSKumar Gala #ifndef CONFIG_RESET_VECTOR_ADDRESS 707a577fdaSKumar Gala #define CONFIG_RESET_VECTOR_ADDRESS 0xeffffffc 717a577fdaSKumar Gala #endif 727a577fdaSKumar Gala 73c59e1b4dSTimur Tabi #define CONFIG_FSL_ELBC /* Has Enhanced localbus controller */ 74c59e1b4dSTimur Tabi #define CONFIG_PCI /* Enable PCI/PCIE */ 75c59e1b4dSTimur Tabi #define CONFIG_PCIE1 /* PCIE controler 1 (slot 1) */ 76c59e1b4dSTimur Tabi #define CONFIG_PCIE2 /* PCIE controler 2 (slot 2) */ 77c59e1b4dSTimur Tabi #define CONFIG_PCIE3 /* PCIE controler 3 (ULI bridge) */ 78c59e1b4dSTimur Tabi #define CONFIG_FSL_PCI_INIT /* Use common FSL init code */ 79c59e1b4dSTimur Tabi #define CONFIG_FSL_PCIE_RESET /* need PCIe reset errata */ 80c59e1b4dSTimur Tabi #define CONFIG_SYS_PCI_64BIT /* enable 64-bit PCI resources */ 81c59e1b4dSTimur Tabi 82c59e1b4dSTimur Tabi #define CONFIG_ENABLE_36BIT_PHYS 83babb348cSTimur Tabi 84babb348cSTimur Tabi #ifdef CONFIG_PHYS_64BIT 85c59e1b4dSTimur Tabi #define CONFIG_ADDR_MAP 86c59e1b4dSTimur Tabi #define CONFIG_SYS_NUM_ADDR_MAP 16 /* number of TLB1 entries */ 879899ac19SJiang Yutang #endif 88c59e1b4dSTimur Tabi 89c59e1b4dSTimur Tabi #define CONFIG_FSL_LAW /* Use common FSL init code */ 90c59e1b4dSTimur Tabi 91c59e1b4dSTimur Tabi #define CONFIG_SYS_CLK_FREQ get_board_sys_clk() 92c59e1b4dSTimur Tabi #define CONFIG_DDR_CLK_FREQ get_board_ddr_clk() 93c59e1b4dSTimur Tabi #define CONFIG_ICS307_REFCLK_HZ 33333000 /* ICS307 clock chip ref freq */ 94c59e1b4dSTimur Tabi 95c59e1b4dSTimur Tabi /* 96c59e1b4dSTimur Tabi * These can be toggled for performance analysis, otherwise use default. 97c59e1b4dSTimur Tabi */ 98c59e1b4dSTimur Tabi #define CONFIG_L2_CACHE 99c59e1b4dSTimur Tabi #define CONFIG_BTB 100c59e1b4dSTimur Tabi 101c59e1b4dSTimur Tabi #define CONFIG_SYS_MEMTEST_START 0x00000000 102c59e1b4dSTimur Tabi #define CONFIG_SYS_MEMTEST_END 0x7fffffff 103c59e1b4dSTimur Tabi 104e46fedfeSTimur Tabi #define CONFIG_SYS_CCSRBAR 0xffe00000 105e46fedfeSTimur Tabi #define CONFIG_SYS_CCSRBAR_PHYS_LOW CONFIG_SYS_CCSRBAR 106c59e1b4dSTimur Tabi 107f45210d6SMatthew McClintock /* IN case of NAND bootloader relocate CCSRBAR in RAMboot code not in the 4k 108f45210d6SMatthew McClintock SPL code*/ 109f45210d6SMatthew McClintock #ifdef CONFIG_SPL_BUILD 110f45210d6SMatthew McClintock #define CONFIG_SYS_CCSR_DO_NOT_RELOCATE 111f45210d6SMatthew McClintock #endif 112f45210d6SMatthew McClintock 113f45210d6SMatthew McClintock 114c59e1b4dSTimur Tabi /* DDR Setup */ 115c59e1b4dSTimur Tabi #define CONFIG_DDR_SPD 116c59e1b4dSTimur Tabi #define CONFIG_VERY_BIG_RAM 117c59e1b4dSTimur Tabi #define CONFIG_FSL_DDR3 118c59e1b4dSTimur Tabi 119c59e1b4dSTimur Tabi #ifdef CONFIG_DDR_ECC 120c59e1b4dSTimur Tabi #define CONFIG_ECC_INIT_VIA_DDRCONTROLLER 121c59e1b4dSTimur Tabi #define CONFIG_MEM_INIT_VALUE 0xdeadbeef 122c59e1b4dSTimur Tabi #endif 123c59e1b4dSTimur Tabi 124c59e1b4dSTimur Tabi #define CONFIG_SYS_DDR_SDRAM_BASE 0x00000000 125c59e1b4dSTimur Tabi #define CONFIG_SYS_SDRAM_BASE CONFIG_SYS_DDR_SDRAM_BASE 126c59e1b4dSTimur Tabi 127c59e1b4dSTimur Tabi #define CONFIG_NUM_DDR_CONTROLLERS 1 128c59e1b4dSTimur Tabi #define CONFIG_DIMM_SLOTS_PER_CTLR 1 129c59e1b4dSTimur Tabi #define CONFIG_CHIP_SELECTS_PER_CTRL (2 * CONFIG_DIMM_SLOTS_PER_CTLR) 130c59e1b4dSTimur Tabi 131c59e1b4dSTimur Tabi /* I2C addresses of SPD EEPROMs */ 132c59e1b4dSTimur Tabi #define CONFIG_SYS_SPD_BUS_NUM 1 133c39f44dcSKumar Gala #define SPD_EEPROM_ADDRESS 0x51 /* CTLR 0 DIMM 0 */ 134c59e1b4dSTimur Tabi 135f45210d6SMatthew McClintock /* These are used when DDR doesn't use SPD. */ 136f45210d6SMatthew McClintock #define CONFIG_SYS_SDRAM_SIZE 2048 137f45210d6SMatthew McClintock #define CONFIG_SYS_SDRAM_SIZE_LAW LAW_SIZE_2G 138f45210d6SMatthew McClintock #define CONFIG_SYS_DDR_CS0_BNDS 0x0000003F 139f45210d6SMatthew McClintock #define CONFIG_SYS_DDR_CS0_CONFIG 0x80014202 140f45210d6SMatthew McClintock #define CONFIG_SYS_DDR_CS1_BNDS 0x0040007F 141f45210d6SMatthew McClintock #define CONFIG_SYS_DDR_CS1_CONFIG 0x80014202 142f45210d6SMatthew McClintock #define CONFIG_SYS_DDR_TIMING_3 0x00010000 143f45210d6SMatthew McClintock #define CONFIG_SYS_DDR_TIMING_0 0x40110104 144f45210d6SMatthew McClintock #define CONFIG_SYS_DDR_TIMING_1 0x5c5bd746 145f45210d6SMatthew McClintock #define CONFIG_SYS_DDR_TIMING_2 0x0fa8d4ca 146f45210d6SMatthew McClintock #define CONFIG_SYS_DDR_MODE_1 0x00441221 147f45210d6SMatthew McClintock #define CONFIG_SYS_DDR_MODE_2 0x00000000 148f45210d6SMatthew McClintock #define CONFIG_SYS_DDR_INTERVAL 0x0a280100 149f45210d6SMatthew McClintock #define CONFIG_SYS_DDR_DATA_INIT 0xdeadbeef 150f45210d6SMatthew McClintock #define CONFIG_SYS_DDR_CLK_CTRL 0x02800000 151f45210d6SMatthew McClintock #define CONFIG_SYS_DDR_CONTROL 0xc7000008 152f45210d6SMatthew McClintock #define CONFIG_SYS_DDR_CONTROL_2 0x24401041 153f45210d6SMatthew McClintock #define CONFIG_SYS_DDR_TIMING_4 0x00220001 154f45210d6SMatthew McClintock #define CONFIG_SYS_DDR_TIMING_5 0x02401400 155f45210d6SMatthew McClintock #define CONFIG_SYS_DDR_ZQ_CONTROL 0x89080600 156f45210d6SMatthew McClintock #define CONFIG_SYS_DDR_WRLVL_CONTROL 0x8675f608 157f45210d6SMatthew McClintock 158f45210d6SMatthew McClintock 159c59e1b4dSTimur Tabi /* 160c59e1b4dSTimur Tabi * Memory map 161c59e1b4dSTimur Tabi * 162c59e1b4dSTimur Tabi * 0x0000_0000 0x7fff_ffff DDR 2G Cacheable 163c59e1b4dSTimur Tabi * 0x8000_0000 0xdfff_ffff PCI Express Mem 1.5G non-cacheable 164c59e1b4dSTimur Tabi * 0xffc0_0000 0xffc2_ffff PCI IO range 192K non-cacheable 165c59e1b4dSTimur Tabi * 166c59e1b4dSTimur Tabi * Localbus cacheable (TBD) 167c59e1b4dSTimur Tabi * 0xXXXX_XXXX 0xXXXX_XXXX SRAM YZ M Cacheable 168c59e1b4dSTimur Tabi * 169c59e1b4dSTimur Tabi * Localbus non-cacheable 170c59e1b4dSTimur Tabi * 0xe000_0000 0xe80f_ffff Promjet/free 128M non-cacheable 171c59e1b4dSTimur Tabi * 0xe800_0000 0xefff_ffff FLASH 128M non-cacheable 172f45210d6SMatthew McClintock * 0xff80_0000 0xff80_7fff NAND 32K non-cacheable 173c59e1b4dSTimur Tabi * 0xffdf_0000 0xffdf_7fff PIXIS 32K non-cacheable TLB0 174c59e1b4dSTimur Tabi * 0xffd0_0000 0xffd0_3fff L1 for stack 16K Cacheable TLB0 175c59e1b4dSTimur Tabi * 0xffe0_0000 0xffef_ffff CCSR 1M non-cacheable 176c59e1b4dSTimur Tabi */ 177c59e1b4dSTimur Tabi 178c59e1b4dSTimur Tabi /* 179c59e1b4dSTimur Tabi * Local Bus Definitions 180c59e1b4dSTimur Tabi */ 181f45210d6SMatthew McClintock #define CONFIG_SYS_FLASH_BASE 0xe8000000 /* start of FLASH 128M */ 1829899ac19SJiang Yutang #ifdef CONFIG_PHYS_64BIT 183f45210d6SMatthew McClintock #define CONFIG_SYS_FLASH_BASE_PHYS 0xfe8000000ull 1849899ac19SJiang Yutang #else 1859899ac19SJiang Yutang #define CONFIG_SYS_FLASH_BASE_PHYS CONFIG_SYS_FLASH_BASE 1869899ac19SJiang Yutang #endif 187c59e1b4dSTimur Tabi 188c59e1b4dSTimur Tabi #define CONFIG_FLASH_BR_PRELIM \ 189f45210d6SMatthew McClintock (BR_PHYS_ADDR(CONFIG_SYS_FLASH_BASE_PHYS) | BR_PS_16 | BR_V) 190c59e1b4dSTimur Tabi #define CONFIG_FLASH_OR_PRELIM (OR_AM_128MB | 0xff7) 191c59e1b4dSTimur Tabi 192f45210d6SMatthew McClintock #ifdef CONFIG_NAND 193f45210d6SMatthew McClintock #define CONFIG_SYS_BR1_PRELIM CONFIG_FLASH_BR_PRELIM /* NOR Base Address */ 194f45210d6SMatthew McClintock #define CONFIG_SYS_OR1_PRELIM CONFIG_FLASH_OR_PRELIM /* NOR Options */ 195f45210d6SMatthew McClintock #else 196c59e1b4dSTimur Tabi #define CONFIG_SYS_BR0_PRELIM CONFIG_FLASH_BR_PRELIM /* NOR Base Address */ 197c59e1b4dSTimur Tabi #define CONFIG_SYS_OR0_PRELIM CONFIG_FLASH_OR_PRELIM /* NOR Options */ 198f45210d6SMatthew McClintock #endif 199c59e1b4dSTimur Tabi 200f45210d6SMatthew McClintock #define CONFIG_SYS_FLASH_BANKS_LIST {CONFIG_SYS_FLASH_BASE_PHYS} 201c59e1b4dSTimur Tabi #define CONFIG_SYS_FLASH_QUIET_TEST 202c59e1b4dSTimur Tabi #define CONFIG_FLASH_SHOW_PROGRESS 45 /* count down from 45/5: 9..1 */ 203c59e1b4dSTimur Tabi 204f45210d6SMatthew McClintock #define CONFIG_SYS_MAX_FLASH_BANKS 1 205c59e1b4dSTimur Tabi #define CONFIG_SYS_MAX_FLASH_SECT 1024 206c59e1b4dSTimur Tabi 207f45210d6SMatthew McClintock #ifndef CONFIG_SYS_MONITOR_BASE 208f45210d6SMatthew McClintock #ifdef CONFIG_SPL_BUILD 209f45210d6SMatthew McClintock #define CONFIG_SYS_MONITOR_BASE CONFIG_SPL_TEXT_BASE 210f45210d6SMatthew McClintock #else 21114d0a02aSWolfgang Denk #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE /* start of monitor */ 212f45210d6SMatthew McClintock #endif 213f45210d6SMatthew McClintock #endif 214c59e1b4dSTimur Tabi 215c59e1b4dSTimur Tabi #define CONFIG_FLASH_CFI_DRIVER 216c59e1b4dSTimur Tabi #define CONFIG_SYS_FLASH_CFI 217c59e1b4dSTimur Tabi #define CONFIG_SYS_FLASH_EMPTY_INFO 218c59e1b4dSTimur Tabi 219f45210d6SMatthew McClintock /* Nand Flash */ 220f45210d6SMatthew McClintock #if defined(CONFIG_NAND_FSL_ELBC) 221f45210d6SMatthew McClintock #define CONFIG_SYS_NAND_BASE 0xff800000 222f45210d6SMatthew McClintock #ifdef CONFIG_PHYS_64BIT 223f45210d6SMatthew McClintock #define CONFIG_SYS_NAND_BASE_PHYS 0xfff800000ull 224f45210d6SMatthew McClintock #else 225f45210d6SMatthew McClintock #define CONFIG_SYS_NAND_BASE_PHYS CONFIG_SYS_NAND_BASE 226f45210d6SMatthew McClintock #endif 227f45210d6SMatthew McClintock 228f45210d6SMatthew McClintock #define CONFIG_SYS_NAND_BASE_LIST { CONFIG_SYS_NAND_BASE, } 229f45210d6SMatthew McClintock #define CONFIG_SYS_MAX_NAND_DEVICE 1 230f45210d6SMatthew McClintock #define CONFIG_MTD_NAND_VERIFY_WRITE 231f45210d6SMatthew McClintock #define CONFIG_CMD_NAND 1 232f45210d6SMatthew McClintock #define CONFIG_SYS_NAND_BLOCK_SIZE (256 * 1024) 233f45210d6SMatthew McClintock #define CONFIG_ELBC_NAND_SPL_STATIC_PGSIZE 234f45210d6SMatthew McClintock 235f45210d6SMatthew McClintock /* NAND flash config */ 236f45210d6SMatthew McClintock #define CONFIG_SYS_NAND_BR_PRELIM (BR_PHYS_ADDR(CONFIG_SYS_NAND_BASE_PHYS) \ 237f45210d6SMatthew McClintock | (2<<BR_DECC_SHIFT) /* Use HW ECC */ \ 238f45210d6SMatthew McClintock | BR_PS_8 /* Port Size = 8 bit */ \ 239f45210d6SMatthew McClintock | BR_MS_FCM /* MSEL = FCM */ \ 240f45210d6SMatthew McClintock | BR_V) /* valid */ 241f45210d6SMatthew McClintock #define CONFIG_SYS_NAND_OR_PRELIM (OR_AM_32KB /* length 256K */ \ 242f45210d6SMatthew McClintock | OR_FCM_PGS /* Large Page*/ \ 243f45210d6SMatthew McClintock | OR_FCM_CSCT \ 244f45210d6SMatthew McClintock | OR_FCM_CST \ 245f45210d6SMatthew McClintock | OR_FCM_CHT \ 246f45210d6SMatthew McClintock | OR_FCM_SCY_1 \ 247f45210d6SMatthew McClintock | OR_FCM_TRLX \ 248f45210d6SMatthew McClintock | OR_FCM_EHTR) 249f45210d6SMatthew McClintock #ifdef CONFIG_NAND 250f45210d6SMatthew McClintock #define CONFIG_SYS_BR0_PRELIM CONFIG_SYS_NAND_BR_PRELIM /* NAND Base Address */ 251f45210d6SMatthew McClintock #define CONFIG_SYS_OR0_PRELIM CONFIG_SYS_NAND_OR_PRELIM /* NAND Options */ 252f45210d6SMatthew McClintock #else 253f45210d6SMatthew McClintock #define CONFIG_SYS_BR1_PRELIM CONFIG_SYS_NAND_BR_PRELIM /* NAND Base Address */ 254f45210d6SMatthew McClintock #define CONFIG_SYS_OR1_PRELIM CONFIG_SYS_NAND_OR_PRELIM /* NAND Options */ 255f45210d6SMatthew McClintock #endif 256f45210d6SMatthew McClintock 257f45210d6SMatthew McClintock #endif /* CONFIG_NAND_FSL_ELBC */ 258f45210d6SMatthew McClintock 259c59e1b4dSTimur Tabi #define CONFIG_BOARD_EARLY_INIT_F 260c59e1b4dSTimur Tabi #define CONFIG_BOARD_EARLY_INIT_R 261c59e1b4dSTimur Tabi #define CONFIG_MISC_INIT_R 262a2d12f88STimur Tabi #define CONFIG_HWCONFIG 263c59e1b4dSTimur Tabi 264c59e1b4dSTimur Tabi #define CONFIG_FSL_NGPIXIS 265c59e1b4dSTimur Tabi #define PIXIS_BASE 0xffdf0000 /* PIXIS registers */ 2669899ac19SJiang Yutang #ifdef CONFIG_PHYS_64BIT 267c59e1b4dSTimur Tabi #define PIXIS_BASE_PHYS 0xfffdf0000ull 2689899ac19SJiang Yutang #else 2699899ac19SJiang Yutang #define PIXIS_BASE_PHYS PIXIS_BASE 2709899ac19SJiang Yutang #endif 271c59e1b4dSTimur Tabi 272c59e1b4dSTimur Tabi #define CONFIG_SYS_BR2_PRELIM (BR_PHYS_ADDR(PIXIS_BASE_PHYS) | BR_PS_8 | BR_V) 273c59e1b4dSTimur Tabi #define CONFIG_SYS_OR2_PRELIM (OR_AM_32KB | 0x6ff7) 274c59e1b4dSTimur Tabi 275c59e1b4dSTimur Tabi #define PIXIS_LBMAP_SWITCH 7 2762906845aSYork Sun #define PIXIS_LBMAP_MASK 0xF0 277c59e1b4dSTimur Tabi #define PIXIS_LBMAP_ALTBANK 0x20 278f45210d6SMatthew McClintock #define PIXIS_SPD 0x07 279f45210d6SMatthew McClintock #define PIXIS_SPD_SYSCLK_MASK 0x07 2809b6e9d1cSJiang Yutang #define PIXIS_ELBC_SPI_MASK 0xc0 2819b6e9d1cSJiang Yutang #define PIXIS_SPI 0x80 282c59e1b4dSTimur Tabi 283c59e1b4dSTimur Tabi #define CONFIG_SYS_INIT_RAM_LOCK 284c59e1b4dSTimur Tabi #define CONFIG_SYS_INIT_RAM_ADDR 0xffd00000 /* Initial L1 address */ 285553f0982SWolfgang Denk #define CONFIG_SYS_INIT_RAM_SIZE 0x00004000 /* Size of used area in RAM */ 286c59e1b4dSTimur Tabi 287c59e1b4dSTimur Tabi #define CONFIG_SYS_GBL_DATA_OFFSET \ 28825ddd1fbSWolfgang Denk (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE) 289c59e1b4dSTimur Tabi #define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET 290c59e1b4dSTimur Tabi 291c59e1b4dSTimur Tabi #define CONFIG_SYS_MONITOR_LEN (512 * 1024) 29207b5edc2SJerry Huang #define CONFIG_SYS_MALLOC_LEN (10 * 1024 * 1024) 293c59e1b4dSTimur Tabi 294c59e1b4dSTimur Tabi /* 295c59e1b4dSTimur Tabi * Serial Port 296c59e1b4dSTimur Tabi */ 297c59e1b4dSTimur Tabi #define CONFIG_CONS_INDEX 1 298c59e1b4dSTimur Tabi #define CONFIG_SYS_NS16550 299c59e1b4dSTimur Tabi #define CONFIG_SYS_NS16550_SERIAL 300c59e1b4dSTimur Tabi #define CONFIG_SYS_NS16550_REG_SIZE 1 301c59e1b4dSTimur Tabi #define CONFIG_SYS_NS16550_CLK get_bus_freq(0) 302f45210d6SMatthew McClintock #ifdef CONFIG_SPL_BUILD 303f45210d6SMatthew McClintock #define CONFIG_NS16550_MIN_FUNCTIONS 304f45210d6SMatthew McClintock #endif 305c59e1b4dSTimur Tabi 306c59e1b4dSTimur Tabi #define CONFIG_SYS_BAUDRATE_TABLE \ 307c59e1b4dSTimur Tabi {300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200} 308c59e1b4dSTimur Tabi 309c59e1b4dSTimur Tabi #define CONFIG_SYS_NS16550_COM1 (CONFIG_SYS_CCSRBAR+0x4500) 310c59e1b4dSTimur Tabi #define CONFIG_SYS_NS16550_COM2 (CONFIG_SYS_CCSRBAR+0x4600) 311c59e1b4dSTimur Tabi 312c59e1b4dSTimur Tabi /* Use the HUSH parser */ 313c59e1b4dSTimur Tabi #define CONFIG_SYS_HUSH_PARSER 314c59e1b4dSTimur Tabi 315c59e1b4dSTimur Tabi /* Video */ 316ba8e76bdSTimur Tabi 317d5e01e49STimur Tabi #ifdef CONFIG_FSL_DIU_FB 318d5e01e49STimur Tabi #define CONFIG_SYS_DIU_ADDR (CONFIG_SYS_CCSRBAR + 0x10000) 319d5e01e49STimur Tabi #define CONFIG_VIDEO 320d5e01e49STimur Tabi #define CONFIG_CMD_BMP 321c59e1b4dSTimur Tabi #define CONFIG_CFB_CONSOLE 3227d3053fbSTimur Tabi #define CONFIG_VIDEO_SW_CURSOR 323c59e1b4dSTimur Tabi #define CONFIG_VGA_AS_SINGLE_DEVICE 324d5e01e49STimur Tabi #define CONFIG_VIDEO_LOGO 325d5e01e49STimur Tabi #define CONFIG_VIDEO_BMP_LOGO 32655b05237STimur Tabi #define CONFIG_CFI_FLASH_USE_WEAK_ACCESSORS 32755b05237STimur Tabi /* 32855b05237STimur Tabi * With CONFIG_CFI_FLASH_USE_WEAK_ACCESSORS, flash I/O is really slow, so 32955b05237STimur Tabi * disable empty flash sector detection, which is I/O-intensive. 33055b05237STimur Tabi */ 33155b05237STimur Tabi #undef CONFIG_SYS_FLASH_EMPTY_INFO 332c59e1b4dSTimur Tabi #endif 333c59e1b4dSTimur Tabi 334ba8e76bdSTimur Tabi #ifndef CONFIG_FSL_DIU_FB 335218a758fSJiang Yutang #endif 336218a758fSJiang Yutang 337218a758fSJiang Yutang #ifdef CONFIG_ATI 338218a758fSJiang Yutang #define VIDEO_IO_OFFSET CONFIG_SYS_PCIE1_IO_VIRT 339218a758fSJiang Yutang #define CONFIG_VIDEO 340218a758fSJiang Yutang #define CONFIG_BIOSEMU 341218a758fSJiang Yutang #define CONFIG_VIDEO_SW_CURSOR 342218a758fSJiang Yutang #define CONFIG_ATI_RADEON_FB 343218a758fSJiang Yutang #define CONFIG_VIDEO_LOGO 344218a758fSJiang Yutang #define CONFIG_SYS_ISA_IO_BASE_ADDRESS VIDEO_IO_OFFSET 345218a758fSJiang Yutang #define CONFIG_CFB_CONSOLE 346218a758fSJiang Yutang #define CONFIG_VGA_AS_SINGLE_DEVICE 347218a758fSJiang Yutang #endif 348218a758fSJiang Yutang 349c59e1b4dSTimur Tabi /* 350c59e1b4dSTimur Tabi * Pass open firmware flat tree 351c59e1b4dSTimur Tabi */ 352c59e1b4dSTimur Tabi #define CONFIG_OF_LIBFDT 353c59e1b4dSTimur Tabi #define CONFIG_OF_BOARD_SETUP 354c59e1b4dSTimur Tabi #define CONFIG_OF_STDOUT_VIA_ALIAS 355c59e1b4dSTimur Tabi 356c59e1b4dSTimur Tabi /* new uImage format support */ 357c59e1b4dSTimur Tabi #define CONFIG_FIT 358c59e1b4dSTimur Tabi #define CONFIG_FIT_VERBOSE 359c59e1b4dSTimur Tabi 360c59e1b4dSTimur Tabi /* I2C */ 361c59e1b4dSTimur Tabi #define CONFIG_FSL_I2C 362c59e1b4dSTimur Tabi #define CONFIG_HARD_I2C 363c59e1b4dSTimur Tabi #define CONFIG_I2C_MULTI_BUS 364c59e1b4dSTimur Tabi #define CONFIG_SYS_I2C_SPEED 400000 365c59e1b4dSTimur Tabi #define CONFIG_SYS_I2C_EEPROM_ADDR 0x57 366c59e1b4dSTimur Tabi #define CONFIG_SYS_I2C_SLAVE 0x7F 367c59e1b4dSTimur Tabi #define CONFIG_SYS_I2C_NOPROBES {{0, 0x29}} 368c59e1b4dSTimur Tabi #define CONFIG_SYS_I2C_OFFSET 0x3000 369c59e1b4dSTimur Tabi #define CONFIG_SYS_I2C2_OFFSET 0x3100 370c59e1b4dSTimur Tabi 371c59e1b4dSTimur Tabi /* 372c59e1b4dSTimur Tabi * I2C2 EEPROM 373c59e1b4dSTimur Tabi */ 374c59e1b4dSTimur Tabi #define CONFIG_ID_EEPROM 375c59e1b4dSTimur Tabi #define CONFIG_SYS_I2C_EEPROM_NXID 376c59e1b4dSTimur Tabi #define CONFIG_SYS_I2C_EEPROM_ADDR 0x57 377c59e1b4dSTimur Tabi #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1 378c59e1b4dSTimur Tabi #define CONFIG_SYS_EEPROM_BUS_NUM 1 379c59e1b4dSTimur Tabi 380c59e1b4dSTimur Tabi /* 3819b6e9d1cSJiang Yutang * eSPI - Enhanced SPI 3829b6e9d1cSJiang Yutang */ 3839b6e9d1cSJiang Yutang #define CONFIG_SPI_FLASH 3849b6e9d1cSJiang Yutang #define CONFIG_SPI_FLASH_SPANSION 3859b6e9d1cSJiang Yutang 3869b6e9d1cSJiang Yutang #define CONFIG_HARD_SPI 3879b6e9d1cSJiang Yutang #define CONFIG_FSL_ESPI 3889b6e9d1cSJiang Yutang 3899b6e9d1cSJiang Yutang #define CONFIG_CMD_SF 3909b6e9d1cSJiang Yutang #define CONFIG_SF_DEFAULT_SPEED 10000000 3919b6e9d1cSJiang Yutang #define CONFIG_SF_DEFAULT_MODE 0 3929b6e9d1cSJiang Yutang 3939b6e9d1cSJiang Yutang /* 394c59e1b4dSTimur Tabi * General PCI 395c59e1b4dSTimur Tabi * Memory space is mapped 1-1, but I/O space must start from 0. 396c59e1b4dSTimur Tabi */ 397c59e1b4dSTimur Tabi 398c59e1b4dSTimur Tabi /* controller 1, Slot 2, tgtid 1, Base address a000 */ 399c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE1_MEM_VIRT 0xc0000000 4009899ac19SJiang Yutang #ifdef CONFIG_PHYS_64BIT 401c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE1_MEM_BUS 0xe0000000 402c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE1_MEM_PHYS 0xc40000000ull 4039899ac19SJiang Yutang #else 4049899ac19SJiang Yutang #define CONFIG_SYS_PCIE1_MEM_BUS 0xc0000000 4059899ac19SJiang Yutang #define CONFIG_SYS_PCIE1_MEM_PHYS 0xc0000000 4069899ac19SJiang Yutang #endif 407c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE1_MEM_SIZE 0x20000000 /* 512M */ 408c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE1_IO_VIRT 0xffc20000 409c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE1_IO_BUS 0x00000000 4109899ac19SJiang Yutang #ifdef CONFIG_PHYS_64BIT 411c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE1_IO_PHYS 0xfffc20000ull 4129899ac19SJiang Yutang #else 4139899ac19SJiang Yutang #define CONFIG_SYS_PCIE1_IO_PHYS 0xffc20000 4149899ac19SJiang Yutang #endif 415c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE1_IO_SIZE 0x00010000 /* 64k */ 416c59e1b4dSTimur Tabi 417c59e1b4dSTimur Tabi /* controller 2, direct to uli, tgtid 2, Base address 9000 */ 418c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE2_MEM_VIRT 0xa0000000 4199899ac19SJiang Yutang #ifdef CONFIG_PHYS_64BIT 420c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE2_MEM_BUS 0xe0000000 421c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE2_MEM_PHYS 0xc20000000ull 4229899ac19SJiang Yutang #else 4239899ac19SJiang Yutang #define CONFIG_SYS_PCIE2_MEM_BUS 0xa0000000 4249899ac19SJiang Yutang #define CONFIG_SYS_PCIE2_MEM_PHYS 0xa0000000 4259899ac19SJiang Yutang #endif 426c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE2_MEM_SIZE 0x20000000 /* 512M */ 427c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE2_IO_VIRT 0xffc10000 428c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE2_IO_BUS 0x00000000 4299899ac19SJiang Yutang #ifdef CONFIG_PHYS_64BIT 430c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE2_IO_PHYS 0xfffc10000ull 4319899ac19SJiang Yutang #else 4329899ac19SJiang Yutang #define CONFIG_SYS_PCIE2_IO_PHYS 0xffc10000 4339899ac19SJiang Yutang #endif 434c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE2_IO_SIZE 0x00010000 /* 64k */ 435c59e1b4dSTimur Tabi 436c59e1b4dSTimur Tabi /* controller 3, Slot 1, tgtid 3, Base address b000 */ 437c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE3_MEM_VIRT 0x80000000 4389899ac19SJiang Yutang #ifdef CONFIG_PHYS_64BIT 439c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE3_MEM_BUS 0xe0000000 440c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE3_MEM_PHYS 0xc00000000ull 4419899ac19SJiang Yutang #else 4429899ac19SJiang Yutang #define CONFIG_SYS_PCIE3_MEM_BUS 0x80000000 4439899ac19SJiang Yutang #define CONFIG_SYS_PCIE3_MEM_PHYS 0x80000000 4449899ac19SJiang Yutang #endif 445c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE3_MEM_SIZE 0x20000000 /* 512M */ 446c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE3_IO_VIRT 0xffc00000 447c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE3_IO_BUS 0x00000000 4489899ac19SJiang Yutang #ifdef CONFIG_PHYS_64BIT 449c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE3_IO_PHYS 0xfffc00000ull 4509899ac19SJiang Yutang #else 4519899ac19SJiang Yutang #define CONFIG_SYS_PCIE3_IO_PHYS 0xffc00000 4529899ac19SJiang Yutang #endif 453c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE3_IO_SIZE 0x00010000 /* 64k */ 454c59e1b4dSTimur Tabi 455c59e1b4dSTimur Tabi #ifdef CONFIG_PCI 456842033e6SGabor Juhos #define CONFIG_PCI_INDIRECT_BRIDGE 457c59e1b4dSTimur Tabi #define CONFIG_PCI_PNP /* do pci plug-and-play */ 458c59e1b4dSTimur Tabi #define CONFIG_PCI_SCAN_SHOW /* show pci devices on startup */ 45916855ec1SKumar Gala #define CONFIG_E1000 /* Define e1000 pci Ethernet card */ 460c59e1b4dSTimur Tabi #endif 461c59e1b4dSTimur Tabi 462c59e1b4dSTimur Tabi /* SATA */ 463c59e1b4dSTimur Tabi #define CONFIG_LIBATA 464c59e1b4dSTimur Tabi #define CONFIG_FSL_SATA 4659760b274SZang Roy-R61911 #define CONFIG_FSL_SATA_V2 466c59e1b4dSTimur Tabi 467c59e1b4dSTimur Tabi #define CONFIG_SYS_SATA_MAX_DEVICE 2 468c59e1b4dSTimur Tabi #define CONFIG_SATA1 469c59e1b4dSTimur Tabi #define CONFIG_SYS_SATA1 CONFIG_SYS_MPC85xx_SATA1_ADDR 470c59e1b4dSTimur Tabi #define CONFIG_SYS_SATA1_FLAGS FLAGS_DMA 471c59e1b4dSTimur Tabi #define CONFIG_SATA2 472c59e1b4dSTimur Tabi #define CONFIG_SYS_SATA2 CONFIG_SYS_MPC85xx_SATA2_ADDR 473c59e1b4dSTimur Tabi #define CONFIG_SYS_SATA2_FLAGS FLAGS_DMA 474c59e1b4dSTimur Tabi 475c59e1b4dSTimur Tabi #ifdef CONFIG_FSL_SATA 476c59e1b4dSTimur Tabi #define CONFIG_LBA48 477c59e1b4dSTimur Tabi #define CONFIG_CMD_SATA 478c59e1b4dSTimur Tabi #define CONFIG_DOS_PARTITION 479c59e1b4dSTimur Tabi #define CONFIG_CMD_EXT2 480c59e1b4dSTimur Tabi #endif 481c59e1b4dSTimur Tabi 482c59e1b4dSTimur Tabi #define CONFIG_MMC 483c59e1b4dSTimur Tabi #ifdef CONFIG_MMC 484c59e1b4dSTimur Tabi #define CONFIG_CMD_MMC 485c59e1b4dSTimur Tabi #define CONFIG_FSL_ESDHC 486c59e1b4dSTimur Tabi #define CONFIG_GENERIC_MMC 487c59e1b4dSTimur Tabi #define CONFIG_SYS_FSL_ESDHC_ADDR CONFIG_SYS_MPC85xx_ESDHC_ADDR 488c59e1b4dSTimur Tabi #endif 489c59e1b4dSTimur Tabi 490c59e1b4dSTimur Tabi #if defined(CONFIG_MMC) || defined(CONFIG_USB_EHCI) 491c59e1b4dSTimur Tabi #define CONFIG_CMD_EXT2 492c59e1b4dSTimur Tabi #define CONFIG_CMD_FAT 493c59e1b4dSTimur Tabi #define CONFIG_DOS_PARTITION 494c59e1b4dSTimur Tabi #endif 495c59e1b4dSTimur Tabi 496c59e1b4dSTimur Tabi #define CONFIG_TSEC_ENET 497c59e1b4dSTimur Tabi #ifdef CONFIG_TSEC_ENET 498c59e1b4dSTimur Tabi 499c59e1b4dSTimur Tabi #define CONFIG_TSECV2 500c59e1b4dSTimur Tabi 501c59e1b4dSTimur Tabi #define CONFIG_MII /* MII PHY management */ 502c59e1b4dSTimur Tabi #define CONFIG_TSEC1 1 503c59e1b4dSTimur Tabi #define CONFIG_TSEC1_NAME "eTSEC1" 504c59e1b4dSTimur Tabi #define CONFIG_TSEC2 1 505c59e1b4dSTimur Tabi #define CONFIG_TSEC2_NAME "eTSEC2" 506c59e1b4dSTimur Tabi 507c59e1b4dSTimur Tabi #define TSEC1_PHY_ADDR 1 508c59e1b4dSTimur Tabi #define TSEC2_PHY_ADDR 2 509c59e1b4dSTimur Tabi 510c59e1b4dSTimur Tabi #define TSEC1_FLAGS (TSEC_GIGABIT | TSEC_REDUCED) 511c59e1b4dSTimur Tabi #define TSEC2_FLAGS (TSEC_GIGABIT | TSEC_REDUCED) 512c59e1b4dSTimur Tabi 513c59e1b4dSTimur Tabi #define TSEC1_PHYIDX 0 514c59e1b4dSTimur Tabi #define TSEC2_PHYIDX 0 515c59e1b4dSTimur Tabi 516c59e1b4dSTimur Tabi #define CONFIG_ETHPRIME "eTSEC1" 517c59e1b4dSTimur Tabi 518c59e1b4dSTimur Tabi #define CONFIG_PHY_GIGE /* Include GbE speed/duplex detection */ 519c59e1b4dSTimur Tabi #endif 520c59e1b4dSTimur Tabi 521c59e1b4dSTimur Tabi /* 522c59e1b4dSTimur Tabi * Environment 523c59e1b4dSTimur Tabi */ 524af253608SMatthew McClintock #ifdef CONFIG_RAMBOOT_SPIFLASH 525af253608SMatthew McClintock #define CONFIG_ENV_IS_IN_SPI_FLASH 526af253608SMatthew McClintock #define CONFIG_ENV_SPI_BUS 0 527af253608SMatthew McClintock #define CONFIG_ENV_SPI_CS 0 528af253608SMatthew McClintock #define CONFIG_ENV_SPI_MAX_HZ 10000000 529af253608SMatthew McClintock #define CONFIG_ENV_SPI_MODE 0 530af253608SMatthew McClintock #define CONFIG_ENV_SIZE 0x2000 /* 8KB */ 531af253608SMatthew McClintock #define CONFIG_ENV_OFFSET 0x100000 /* 1MB */ 532af253608SMatthew McClintock #define CONFIG_ENV_SECT_SIZE 0x10000 533af253608SMatthew McClintock #elif defined(CONFIG_RAMBOOT_SDCARD) 534af253608SMatthew McClintock #define CONFIG_ENV_IS_IN_MMC 535c59e1b4dSTimur Tabi #define CONFIG_ENV_SIZE 0x2000 536af253608SMatthew McClintock #define CONFIG_SYS_MMC_ENV_DEV 0 537f45210d6SMatthew McClintock #elif defined(CONFIG_NAND) 538af253608SMatthew McClintock #define CONFIG_ENV_IS_IN_NAND 539af253608SMatthew McClintock #define CONFIG_ENV_SIZE CONFIG_SYS_NAND_BLOCK_SIZE 540af253608SMatthew McClintock #define CONFIG_ENV_OFFSET ((512 * 1024) + CONFIG_SYS_NAND_BLOCK_SIZE) 541af253608SMatthew McClintock #define CONFIG_ENV_RANGE (3 * CONFIG_ENV_SIZE) 542f45210d6SMatthew McClintock #elif defined(CONFIG_SYS_RAMBOOT) 543af253608SMatthew McClintock #define CONFIG_ENV_IS_NOWHERE /* Store ENV in memory only */ 544af253608SMatthew McClintock #define CONFIG_ENV_ADDR (CONFIG_SYS_MONITOR_BASE - 0x1000) 545af253608SMatthew McClintock #define CONFIG_ENV_SIZE 0x2000 546af253608SMatthew McClintock #else 547af253608SMatthew McClintock #define CONFIG_ENV_IS_IN_FLASH 548af253608SMatthew McClintock #if CONFIG_SYS_MONITOR_BASE > 0xfff80000 549af253608SMatthew McClintock #define CONFIG_ENV_ADDR 0xfff80000 550af253608SMatthew McClintock #else 551af253608SMatthew McClintock #define CONFIG_ENV_ADDR (CONFIG_SYS_MONITOR_BASE - CONFIG_ENV_SECT_SIZE) 552af253608SMatthew McClintock #endif 553af253608SMatthew McClintock #define CONFIG_ENV_SIZE 0x2000 554af253608SMatthew McClintock #define CONFIG_ENV_SECT_SIZE 0x20000 /* 128K (one sector) */ 555af253608SMatthew McClintock #endif 556c59e1b4dSTimur Tabi 557c59e1b4dSTimur Tabi #define CONFIG_LOADS_ECHO 558c59e1b4dSTimur Tabi #define CONFIG_SYS_LOADS_BAUD_CHANGE 559c59e1b4dSTimur Tabi 560c59e1b4dSTimur Tabi /* 561c59e1b4dSTimur Tabi * Command line configuration. 562c59e1b4dSTimur Tabi */ 563c59e1b4dSTimur Tabi #include <config_cmd_default.h> 564c59e1b4dSTimur Tabi 56579ee3448SKumar Gala #define CONFIG_CMD_ELF 56679ee3448SKumar Gala #define CONFIG_CMD_ERRATA 567c59e1b4dSTimur Tabi #define CONFIG_CMD_IRQ 568c59e1b4dSTimur Tabi #define CONFIG_CMD_I2C 569c59e1b4dSTimur Tabi #define CONFIG_CMD_MII 57079ee3448SKumar Gala #define CONFIG_CMD_PING 571c59e1b4dSTimur Tabi #define CONFIG_CMD_SETEXPR 572b8339e2bSMatthew McClintock #define CONFIG_CMD_REGINFO 573c59e1b4dSTimur Tabi 574c59e1b4dSTimur Tabi #ifdef CONFIG_PCI 575c59e1b4dSTimur Tabi #define CONFIG_CMD_PCI 576c59e1b4dSTimur Tabi #define CONFIG_CMD_NET 577c59e1b4dSTimur Tabi #endif 578c59e1b4dSTimur Tabi 579c59e1b4dSTimur Tabi /* 580c59e1b4dSTimur Tabi * USB 581c59e1b4dSTimur Tabi */ 5823d7506faSramneek mehresh #define CONFIG_HAS_FSL_DR_USB 5833d7506faSramneek mehresh #ifdef CONFIG_HAS_FSL_DR_USB 584c59e1b4dSTimur Tabi #define CONFIG_USB_EHCI 585c59e1b4dSTimur Tabi 586c59e1b4dSTimur Tabi #ifdef CONFIG_USB_EHCI 587c59e1b4dSTimur Tabi #define CONFIG_CMD_USB 588c59e1b4dSTimur Tabi #define CONFIG_EHCI_HCD_INIT_AFTER_RESET 589c59e1b4dSTimur Tabi #define CONFIG_USB_EHCI_FSL 590c59e1b4dSTimur Tabi #define CONFIG_USB_STORAGE 591c59e1b4dSTimur Tabi #define CONFIG_CMD_FAT 592c59e1b4dSTimur Tabi #endif 5933d7506faSramneek mehresh #endif 594c59e1b4dSTimur Tabi 595c59e1b4dSTimur Tabi /* 596c59e1b4dSTimur Tabi * Miscellaneous configurable options 597c59e1b4dSTimur Tabi */ 598c59e1b4dSTimur Tabi #define CONFIG_SYS_LONGHELP /* undef to save memory */ 599c59e1b4dSTimur Tabi #define CONFIG_CMDLINE_EDITING /* Command-line editing */ 6005be58f5fSKim Phillips #define CONFIG_AUTO_COMPLETE /* add autocompletion support */ 601c59e1b4dSTimur Tabi #define CONFIG_SYS_LOAD_ADDR 0x2000000 /* default load address */ 602c59e1b4dSTimur Tabi #define CONFIG_SYS_PROMPT "=> " /* Monitor Command Prompt */ 603c59e1b4dSTimur Tabi #ifdef CONFIG_CMD_KGDB 604c59e1b4dSTimur Tabi #define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buffer Size */ 605c59e1b4dSTimur Tabi #else 606c59e1b4dSTimur Tabi #define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */ 607c59e1b4dSTimur Tabi #endif 608c59e1b4dSTimur Tabi /* Print Buffer Size */ 609c59e1b4dSTimur Tabi #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16) 610c59e1b4dSTimur Tabi #define CONFIG_SYS_MAXARGS 16 611c59e1b4dSTimur Tabi #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE 612c59e1b4dSTimur Tabi #define CONFIG_SYS_HZ 1000 613c59e1b4dSTimur Tabi 614c59e1b4dSTimur Tabi /* 615c59e1b4dSTimur Tabi * For booting Linux, the board info and command line data 616a832ac41SKumar Gala * have to be in the first 64 MB of memory, since this is 617c59e1b4dSTimur Tabi * the maximum mapped by the Linux kernel during initialization. 618c59e1b4dSTimur Tabi */ 619a832ac41SKumar Gala #define CONFIG_SYS_BOOTMAPSZ (64 << 20) /* Initial Memory map for Linux*/ 620a832ac41SKumar Gala #define CONFIG_SYS_BOOTM_LEN (64 << 20) /* Increase max gunzip size */ 621c59e1b4dSTimur Tabi 622c59e1b4dSTimur Tabi #ifdef CONFIG_CMD_KGDB 623c59e1b4dSTimur Tabi #define CONFIG_KGDB_BAUDRATE 230400 /* speed to run kgdb serial port */ 624c59e1b4dSTimur Tabi #define CONFIG_KGDB_SER_INDEX 2 /* which serial port to use */ 625c59e1b4dSTimur Tabi #endif 626c59e1b4dSTimur Tabi 627c59e1b4dSTimur Tabi /* 628c59e1b4dSTimur Tabi * Environment Configuration 629c59e1b4dSTimur Tabi */ 630c59e1b4dSTimur Tabi 631c59e1b4dSTimur Tabi #define CONFIG_HOSTNAME p1022ds 6328b3637c6SJoe Hershberger #define CONFIG_ROOTPATH "/opt/nfsroot" 633b3f44c21SJoe Hershberger #define CONFIG_BOOTFILE "uImage" 634c59e1b4dSTimur Tabi #define CONFIG_UBOOTPATH u-boot.bin /* U-Boot image on TFTP server */ 635c59e1b4dSTimur Tabi 636c59e1b4dSTimur Tabi #define CONFIG_LOADADDR 1000000 637c59e1b4dSTimur Tabi 638c59e1b4dSTimur Tabi #define CONFIG_BOOTDELAY 10 /* -1 disables auto-boot */ 639c59e1b4dSTimur Tabi 640c59e1b4dSTimur Tabi #define CONFIG_BAUDRATE 115200 641c59e1b4dSTimur Tabi 642c59e1b4dSTimur Tabi #define CONFIG_EXTRA_ENV_SETTINGS \ 643c59e1b4dSTimur Tabi "netdev=eth0\0" \ 6445368c55dSMarek Vasut "uboot=" __stringify(CONFIG_UBOOTPATH) "\0" \ 6455368c55dSMarek Vasut "ubootaddr=" __stringify(CONFIG_SYS_TEXT_BASE) "\0" \ 64684e34b65STimur Tabi "tftpflash=tftpboot $loadaddr $uboot && " \ 64784e34b65STimur Tabi "protect off $ubootaddr +$filesize && " \ 64884e34b65STimur Tabi "erase $ubootaddr +$filesize && " \ 64984e34b65STimur Tabi "cp.b $loadaddr $ubootaddr $filesize && " \ 65084e34b65STimur Tabi "protect on $ubootaddr +$filesize && " \ 65184e34b65STimur Tabi "cmp.b $loadaddr $ubootaddr $filesize\0" \ 652c59e1b4dSTimur Tabi "consoledev=ttyS0\0" \ 653c59e1b4dSTimur Tabi "ramdiskaddr=2000000\0" \ 65484e34b65STimur Tabi "ramdiskfile=rootfs.ext2.gz.uboot\0" \ 655c59e1b4dSTimur Tabi "fdtaddr=c00000\0" \ 656c59e1b4dSTimur Tabi "fdtfile=p1022ds.dtb\0" \ 657c59e1b4dSTimur Tabi "bdev=sda3\0" \ 658ba8e76bdSTimur Tabi "hwconfig=esdhc;audclk:12\0" 659c59e1b4dSTimur Tabi 660c59e1b4dSTimur Tabi #define CONFIG_HDBOOT \ 661c59e1b4dSTimur Tabi "setenv bootargs root=/dev/$bdev rw " \ 66284e34b65STimur Tabi "console=$consoledev,$baudrate $othbootargs $videobootargs;" \ 663c59e1b4dSTimur Tabi "tftp $loadaddr $bootfile;" \ 664c59e1b4dSTimur Tabi "tftp $fdtaddr $fdtfile;" \ 665c59e1b4dSTimur Tabi "bootm $loadaddr - $fdtaddr" 666c59e1b4dSTimur Tabi 667c59e1b4dSTimur Tabi #define CONFIG_NFSBOOTCOMMAND \ 668c59e1b4dSTimur Tabi "setenv bootargs root=/dev/nfs rw " \ 669c59e1b4dSTimur Tabi "nfsroot=$serverip:$rootpath " \ 670c59e1b4dSTimur Tabi "ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname:$netdev:off " \ 67184e34b65STimur Tabi "console=$consoledev,$baudrate $othbootargs $videobootargs;" \ 672c59e1b4dSTimur Tabi "tftp $loadaddr $bootfile;" \ 673c59e1b4dSTimur Tabi "tftp $fdtaddr $fdtfile;" \ 674c59e1b4dSTimur Tabi "bootm $loadaddr - $fdtaddr" 675c59e1b4dSTimur Tabi 676c59e1b4dSTimur Tabi #define CONFIG_RAMBOOTCOMMAND \ 677c59e1b4dSTimur Tabi "setenv bootargs root=/dev/ram rw " \ 67884e34b65STimur Tabi "console=$consoledev,$baudrate $othbootargs $videobootargs;" \ 679c59e1b4dSTimur Tabi "tftp $ramdiskaddr $ramdiskfile;" \ 680c59e1b4dSTimur Tabi "tftp $loadaddr $bootfile;" \ 681c59e1b4dSTimur Tabi "tftp $fdtaddr $fdtfile;" \ 682c59e1b4dSTimur Tabi "bootm $loadaddr $ramdiskaddr $fdtaddr" 683c59e1b4dSTimur Tabi 684c59e1b4dSTimur Tabi #define CONFIG_BOOTCOMMAND CONFIG_RAMBOOTCOMMAND 685c59e1b4dSTimur Tabi 686c59e1b4dSTimur Tabi #endif 687