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