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 37*f45210d6SMatthew McClintock #define CONFIG_NAND_FSL_ELBC 38*f45210d6SMatthew McClintock 39*f45210d6SMatthew McClintock #ifdef CONFIG_NAND 40*f45210d6SMatthew McClintock #define CONFIG_SPL 41*f45210d6SMatthew McClintock #define CONFIG_SPL_INIT_MINIMAL 42*f45210d6SMatthew McClintock #define CONFIG_SPL_SERIAL_SUPPORT 43*f45210d6SMatthew McClintock #define CONFIG_SPL_NAND_SUPPORT 44*f45210d6SMatthew McClintock #define CONFIG_SPL_NAND_MINIMAL 45*f45210d6SMatthew McClintock #define CONFIG_SPL_FLUSH_IMAGE 46*f45210d6SMatthew McClintock #define CONFIG_SPL_TARGET "u-boot-with-spl.bin" 47*f45210d6SMatthew McClintock 48*f45210d6SMatthew McClintock #define CONFIG_SYS_TEXT_BASE 0x00201000 49*f45210d6SMatthew McClintock #define CONFIG_SPL_TEXT_BASE 0xfffff000 50*f45210d6SMatthew McClintock #define CONFIG_SPL_MAX_SIZE (4 * 1024) 51*f45210d6SMatthew McClintock #define CONFIG_SPL_RELOC_TEXT_BASE 0x00100000 52*f45210d6SMatthew McClintock #define CONFIG_SPL_RELOC_STACK 0x00100000 53*f45210d6SMatthew McClintock #define CONFIG_SYS_NAND_U_BOOT_SIZE ((512 << 10) + CONFIG_SPL_MAX_SIZE) 54*f45210d6SMatthew McClintock #define CONFIG_SYS_NAND_U_BOOT_DST (0x00200000 - CONFIG_SPL_MAX_SIZE) 55*f45210d6SMatthew McClintock #define CONFIG_SYS_NAND_U_BOOT_START 0x00200000 56*f45210d6SMatthew McClintock #define CONFIG_SYS_NAND_U_BOOT_OFFS 0 57*f45210d6SMatthew McClintock #define CONFIG_SYS_LDSCRIPT "arch/powerpc/cpu/mpc85xx/u-boot-nand.lds" 58*f45210d6SMatthew McClintock #endif 59*f45210d6SMatthew 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 110*f45210d6SMatthew McClintock /* IN case of NAND bootloader relocate CCSRBAR in RAMboot code not in the 4k 111*f45210d6SMatthew McClintock SPL code*/ 112*f45210d6SMatthew McClintock #ifdef CONFIG_SPL_BUILD 113*f45210d6SMatthew McClintock #define CONFIG_SYS_CCSR_DO_NOT_RELOCATE 114*f45210d6SMatthew McClintock #endif 115*f45210d6SMatthew McClintock 116*f45210d6SMatthew 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 138*f45210d6SMatthew McClintock /* These are used when DDR doesn't use SPD. */ 139*f45210d6SMatthew McClintock #define CONFIG_SYS_SDRAM_SIZE 2048 140*f45210d6SMatthew McClintock #define CONFIG_SYS_SDRAM_SIZE_LAW LAW_SIZE_2G 141*f45210d6SMatthew McClintock #define CONFIG_SYS_DDR_CS0_BNDS 0x0000003F 142*f45210d6SMatthew McClintock #define CONFIG_SYS_DDR_CS0_CONFIG 0x80014202 143*f45210d6SMatthew McClintock #define CONFIG_SYS_DDR_CS1_BNDS 0x0040007F 144*f45210d6SMatthew McClintock #define CONFIG_SYS_DDR_CS1_CONFIG 0x80014202 145*f45210d6SMatthew McClintock #define CONFIG_SYS_DDR_TIMING_3 0x00010000 146*f45210d6SMatthew McClintock #define CONFIG_SYS_DDR_TIMING_0 0x40110104 147*f45210d6SMatthew McClintock #define CONFIG_SYS_DDR_TIMING_1 0x5c5bd746 148*f45210d6SMatthew McClintock #define CONFIG_SYS_DDR_TIMING_2 0x0fa8d4ca 149*f45210d6SMatthew McClintock #define CONFIG_SYS_DDR_MODE_1 0x00441221 150*f45210d6SMatthew McClintock #define CONFIG_SYS_DDR_MODE_2 0x00000000 151*f45210d6SMatthew McClintock #define CONFIG_SYS_DDR_INTERVAL 0x0a280100 152*f45210d6SMatthew McClintock #define CONFIG_SYS_DDR_DATA_INIT 0xdeadbeef 153*f45210d6SMatthew McClintock #define CONFIG_SYS_DDR_CLK_CTRL 0x02800000 154*f45210d6SMatthew McClintock #define CONFIG_SYS_DDR_CONTROL 0xc7000008 155*f45210d6SMatthew McClintock #define CONFIG_SYS_DDR_CONTROL_2 0x24401041 156*f45210d6SMatthew McClintock #define CONFIG_SYS_DDR_TIMING_4 0x00220001 157*f45210d6SMatthew McClintock #define CONFIG_SYS_DDR_TIMING_5 0x02401400 158*f45210d6SMatthew McClintock #define CONFIG_SYS_DDR_ZQ_CONTROL 0x89080600 159*f45210d6SMatthew McClintock #define CONFIG_SYS_DDR_WRLVL_CONTROL 0x8675f608 160*f45210d6SMatthew McClintock 161*f45210d6SMatthew 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 175*f45210d6SMatthew 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 */ 184*f45210d6SMatthew McClintock #define CONFIG_SYS_FLASH_BASE 0xe8000000 /* start of FLASH 128M */ 1859899ac19SJiang Yutang #ifdef CONFIG_PHYS_64BIT 186*f45210d6SMatthew 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 \ 192*f45210d6SMatthew 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 195*f45210d6SMatthew McClintock #ifdef CONFIG_NAND 196*f45210d6SMatthew McClintock #define CONFIG_SYS_BR1_PRELIM CONFIG_FLASH_BR_PRELIM /* NOR Base Address */ 197*f45210d6SMatthew McClintock #define CONFIG_SYS_OR1_PRELIM CONFIG_FLASH_OR_PRELIM /* NOR Options */ 198*f45210d6SMatthew 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 */ 201*f45210d6SMatthew McClintock #endif 202c59e1b4dSTimur Tabi 203*f45210d6SMatthew 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 207*f45210d6SMatthew McClintock #define CONFIG_SYS_MAX_FLASH_BANKS 1 208c59e1b4dSTimur Tabi #define CONFIG_SYS_MAX_FLASH_SECT 1024 209c59e1b4dSTimur Tabi 210*f45210d6SMatthew McClintock #ifndef CONFIG_SYS_MONITOR_BASE 211*f45210d6SMatthew McClintock #ifdef CONFIG_SPL_BUILD 212*f45210d6SMatthew McClintock #define CONFIG_SYS_MONITOR_BASE CONFIG_SPL_TEXT_BASE 213*f45210d6SMatthew McClintock #else 21414d0a02aSWolfgang Denk #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE /* start of monitor */ 215*f45210d6SMatthew McClintock #endif 216*f45210d6SMatthew 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 222*f45210d6SMatthew McClintock /* Nand Flash */ 223*f45210d6SMatthew McClintock #if defined(CONFIG_NAND_FSL_ELBC) 224*f45210d6SMatthew McClintock #define CONFIG_SYS_NAND_BASE 0xff800000 225*f45210d6SMatthew McClintock #ifdef CONFIG_PHYS_64BIT 226*f45210d6SMatthew McClintock #define CONFIG_SYS_NAND_BASE_PHYS 0xfff800000ull 227*f45210d6SMatthew McClintock #else 228*f45210d6SMatthew McClintock #define CONFIG_SYS_NAND_BASE_PHYS CONFIG_SYS_NAND_BASE 229*f45210d6SMatthew McClintock #endif 230*f45210d6SMatthew McClintock 231*f45210d6SMatthew McClintock #define CONFIG_SYS_NAND_BASE_LIST { CONFIG_SYS_NAND_BASE, } 232*f45210d6SMatthew McClintock #define CONFIG_SYS_MAX_NAND_DEVICE 1 233*f45210d6SMatthew McClintock #define CONFIG_MTD_NAND_VERIFY_WRITE 234*f45210d6SMatthew McClintock #define CONFIG_CMD_NAND 1 235*f45210d6SMatthew McClintock #define CONFIG_SYS_NAND_BLOCK_SIZE (256 * 1024) 236*f45210d6SMatthew McClintock #define CONFIG_ELBC_NAND_SPL_STATIC_PGSIZE 237*f45210d6SMatthew McClintock 238*f45210d6SMatthew McClintock /* NAND flash config */ 239*f45210d6SMatthew McClintock #define CONFIG_SYS_NAND_BR_PRELIM (BR_PHYS_ADDR(CONFIG_SYS_NAND_BASE_PHYS) \ 240*f45210d6SMatthew McClintock | (2<<BR_DECC_SHIFT) /* Use HW ECC */ \ 241*f45210d6SMatthew McClintock | BR_PS_8 /* Port Size = 8 bit */ \ 242*f45210d6SMatthew McClintock | BR_MS_FCM /* MSEL = FCM */ \ 243*f45210d6SMatthew McClintock | BR_V) /* valid */ 244*f45210d6SMatthew McClintock #define CONFIG_SYS_NAND_OR_PRELIM (OR_AM_32KB /* length 256K */ \ 245*f45210d6SMatthew McClintock | OR_FCM_PGS /* Large Page*/ \ 246*f45210d6SMatthew McClintock | OR_FCM_CSCT \ 247*f45210d6SMatthew McClintock | OR_FCM_CST \ 248*f45210d6SMatthew McClintock | OR_FCM_CHT \ 249*f45210d6SMatthew McClintock | OR_FCM_SCY_1 \ 250*f45210d6SMatthew McClintock | OR_FCM_TRLX \ 251*f45210d6SMatthew McClintock | OR_FCM_EHTR) 252*f45210d6SMatthew McClintock #ifdef CONFIG_NAND 253*f45210d6SMatthew McClintock #define CONFIG_SYS_BR0_PRELIM CONFIG_SYS_NAND_BR_PRELIM /* NAND Base Address */ 254*f45210d6SMatthew McClintock #define CONFIG_SYS_OR0_PRELIM CONFIG_SYS_NAND_OR_PRELIM /* NAND Options */ 255*f45210d6SMatthew McClintock #else 256*f45210d6SMatthew McClintock #define CONFIG_SYS_BR1_PRELIM CONFIG_SYS_NAND_BR_PRELIM /* NAND Base Address */ 257*f45210d6SMatthew McClintock #define CONFIG_SYS_OR1_PRELIM CONFIG_SYS_NAND_OR_PRELIM /* NAND Options */ 258*f45210d6SMatthew McClintock #endif 259*f45210d6SMatthew McClintock 260*f45210d6SMatthew McClintock #endif /* CONFIG_NAND_FSL_ELBC */ 261*f45210d6SMatthew 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 281*f45210d6SMatthew McClintock #define PIXIS_SPD 0x07 282*f45210d6SMatthew 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) 305*f45210d6SMatthew McClintock #ifdef CONFIG_SPL_BUILD 306*f45210d6SMatthew McClintock #define CONFIG_NS16550_MIN_FUNCTIONS 307*f45210d6SMatthew 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 #define CONFIG_FSL_DIU_FB 320ba8e76bdSTimur Tabi 321d5e01e49STimur Tabi #ifdef CONFIG_FSL_DIU_FB 322d5e01e49STimur Tabi #define CONFIG_SYS_DIU_ADDR (CONFIG_SYS_CCSRBAR + 0x10000) 323d5e01e49STimur Tabi #define CONFIG_VIDEO 324d5e01e49STimur Tabi #define CONFIG_CMD_BMP 325c59e1b4dSTimur Tabi #define CONFIG_CFB_CONSOLE 3267d3053fbSTimur Tabi #define CONFIG_VIDEO_SW_CURSOR 327c59e1b4dSTimur Tabi #define CONFIG_VGA_AS_SINGLE_DEVICE 328d5e01e49STimur Tabi #define CONFIG_VIDEO_LOGO 329d5e01e49STimur Tabi #define CONFIG_VIDEO_BMP_LOGO 33055b05237STimur Tabi #define CONFIG_CFI_FLASH_USE_WEAK_ACCESSORS 33155b05237STimur Tabi /* 33255b05237STimur Tabi * With CONFIG_CFI_FLASH_USE_WEAK_ACCESSORS, flash I/O is really slow, so 33355b05237STimur Tabi * disable empty flash sector detection, which is I/O-intensive. 33455b05237STimur Tabi */ 33555b05237STimur Tabi #undef CONFIG_SYS_FLASH_EMPTY_INFO 336c59e1b4dSTimur Tabi #endif 337c59e1b4dSTimur Tabi 338ba8e76bdSTimur Tabi #ifndef CONFIG_FSL_DIU_FB 339218a758fSJiang Yutang #define CONFIG_ATI 340218a758fSJiang Yutang #endif 341218a758fSJiang Yutang 342218a758fSJiang Yutang #ifdef CONFIG_ATI 343218a758fSJiang Yutang #define VIDEO_IO_OFFSET CONFIG_SYS_PCIE1_IO_VIRT 344218a758fSJiang Yutang #define CONFIG_VIDEO 345218a758fSJiang Yutang #define CONFIG_BIOSEMU 346218a758fSJiang Yutang #define CONFIG_VIDEO_SW_CURSOR 347218a758fSJiang Yutang #define CONFIG_ATI_RADEON_FB 348218a758fSJiang Yutang #define CONFIG_VIDEO_LOGO 349218a758fSJiang Yutang #define CONFIG_SYS_ISA_IO_BASE_ADDRESS VIDEO_IO_OFFSET 350218a758fSJiang Yutang #define CONFIG_CFB_CONSOLE 351218a758fSJiang Yutang #define CONFIG_VGA_AS_SINGLE_DEVICE 352218a758fSJiang Yutang #endif 353218a758fSJiang Yutang 354c59e1b4dSTimur Tabi /* 355c59e1b4dSTimur Tabi * Pass open firmware flat tree 356c59e1b4dSTimur Tabi */ 357c59e1b4dSTimur Tabi #define CONFIG_OF_LIBFDT 358c59e1b4dSTimur Tabi #define CONFIG_OF_BOARD_SETUP 359c59e1b4dSTimur Tabi #define CONFIG_OF_STDOUT_VIA_ALIAS 360c59e1b4dSTimur Tabi 361c59e1b4dSTimur Tabi /* new uImage format support */ 362c59e1b4dSTimur Tabi #define CONFIG_FIT 363c59e1b4dSTimur Tabi #define CONFIG_FIT_VERBOSE 364c59e1b4dSTimur Tabi 365c59e1b4dSTimur Tabi /* I2C */ 366c59e1b4dSTimur Tabi #define CONFIG_FSL_I2C 367c59e1b4dSTimur Tabi #define CONFIG_HARD_I2C 368c59e1b4dSTimur Tabi #define CONFIG_I2C_MULTI_BUS 369c59e1b4dSTimur Tabi #define CONFIG_SYS_I2C_SPEED 400000 370c59e1b4dSTimur Tabi #define CONFIG_SYS_I2C_EEPROM_ADDR 0x57 371c59e1b4dSTimur Tabi #define CONFIG_SYS_I2C_SLAVE 0x7F 372c59e1b4dSTimur Tabi #define CONFIG_SYS_I2C_NOPROBES {{0, 0x29}} 373c59e1b4dSTimur Tabi #define CONFIG_SYS_I2C_OFFSET 0x3000 374c59e1b4dSTimur Tabi #define CONFIG_SYS_I2C2_OFFSET 0x3100 375c59e1b4dSTimur Tabi 376c59e1b4dSTimur Tabi /* 377c59e1b4dSTimur Tabi * I2C2 EEPROM 378c59e1b4dSTimur Tabi */ 379c59e1b4dSTimur Tabi #define CONFIG_ID_EEPROM 380c59e1b4dSTimur Tabi #define CONFIG_SYS_I2C_EEPROM_NXID 381c59e1b4dSTimur Tabi #define CONFIG_SYS_I2C_EEPROM_ADDR 0x57 382c59e1b4dSTimur Tabi #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1 383c59e1b4dSTimur Tabi #define CONFIG_SYS_EEPROM_BUS_NUM 1 384c59e1b4dSTimur Tabi 385c59e1b4dSTimur Tabi /* 3869b6e9d1cSJiang Yutang * eSPI - Enhanced SPI 3879b6e9d1cSJiang Yutang */ 3889b6e9d1cSJiang Yutang #define CONFIG_SPI_FLASH 3899b6e9d1cSJiang Yutang #define CONFIG_SPI_FLASH_SPANSION 3909b6e9d1cSJiang Yutang 3919b6e9d1cSJiang Yutang #define CONFIG_HARD_SPI 3929b6e9d1cSJiang Yutang #define CONFIG_FSL_ESPI 3939b6e9d1cSJiang Yutang 3949b6e9d1cSJiang Yutang #define CONFIG_CMD_SF 3959b6e9d1cSJiang Yutang #define CONFIG_SF_DEFAULT_SPEED 10000000 3969b6e9d1cSJiang Yutang #define CONFIG_SF_DEFAULT_MODE 0 3979b6e9d1cSJiang Yutang 3989b6e9d1cSJiang Yutang /* 399c59e1b4dSTimur Tabi * General PCI 400c59e1b4dSTimur Tabi * Memory space is mapped 1-1, but I/O space must start from 0. 401c59e1b4dSTimur Tabi */ 402c59e1b4dSTimur Tabi 403c59e1b4dSTimur Tabi /* controller 1, Slot 2, tgtid 1, Base address a000 */ 404c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE1_MEM_VIRT 0xc0000000 4059899ac19SJiang Yutang #ifdef CONFIG_PHYS_64BIT 406c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE1_MEM_BUS 0xe0000000 407c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE1_MEM_PHYS 0xc40000000ull 4089899ac19SJiang Yutang #else 4099899ac19SJiang Yutang #define CONFIG_SYS_PCIE1_MEM_BUS 0xc0000000 4109899ac19SJiang Yutang #define CONFIG_SYS_PCIE1_MEM_PHYS 0xc0000000 4119899ac19SJiang Yutang #endif 412c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE1_MEM_SIZE 0x20000000 /* 512M */ 413c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE1_IO_VIRT 0xffc20000 414c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE1_IO_BUS 0x00000000 4159899ac19SJiang Yutang #ifdef CONFIG_PHYS_64BIT 416c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE1_IO_PHYS 0xfffc20000ull 4179899ac19SJiang Yutang #else 4189899ac19SJiang Yutang #define CONFIG_SYS_PCIE1_IO_PHYS 0xffc20000 4199899ac19SJiang Yutang #endif 420c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE1_IO_SIZE 0x00010000 /* 64k */ 421c59e1b4dSTimur Tabi 422c59e1b4dSTimur Tabi /* controller 2, direct to uli, tgtid 2, Base address 9000 */ 423c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE2_MEM_VIRT 0xa0000000 4249899ac19SJiang Yutang #ifdef CONFIG_PHYS_64BIT 425c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE2_MEM_BUS 0xe0000000 426c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE2_MEM_PHYS 0xc20000000ull 4279899ac19SJiang Yutang #else 4289899ac19SJiang Yutang #define CONFIG_SYS_PCIE2_MEM_BUS 0xa0000000 4299899ac19SJiang Yutang #define CONFIG_SYS_PCIE2_MEM_PHYS 0xa0000000 4309899ac19SJiang Yutang #endif 431c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE2_MEM_SIZE 0x20000000 /* 512M */ 432c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE2_IO_VIRT 0xffc10000 433c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE2_IO_BUS 0x00000000 4349899ac19SJiang Yutang #ifdef CONFIG_PHYS_64BIT 435c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE2_IO_PHYS 0xfffc10000ull 4369899ac19SJiang Yutang #else 4379899ac19SJiang Yutang #define CONFIG_SYS_PCIE2_IO_PHYS 0xffc10000 4389899ac19SJiang Yutang #endif 439c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE2_IO_SIZE 0x00010000 /* 64k */ 440c59e1b4dSTimur Tabi 441c59e1b4dSTimur Tabi /* controller 3, Slot 1, tgtid 3, Base address b000 */ 442c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE3_MEM_VIRT 0x80000000 4439899ac19SJiang Yutang #ifdef CONFIG_PHYS_64BIT 444c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE3_MEM_BUS 0xe0000000 445c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE3_MEM_PHYS 0xc00000000ull 4469899ac19SJiang Yutang #else 4479899ac19SJiang Yutang #define CONFIG_SYS_PCIE3_MEM_BUS 0x80000000 4489899ac19SJiang Yutang #define CONFIG_SYS_PCIE3_MEM_PHYS 0x80000000 4499899ac19SJiang Yutang #endif 450c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE3_MEM_SIZE 0x20000000 /* 512M */ 451c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE3_IO_VIRT 0xffc00000 452c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE3_IO_BUS 0x00000000 4539899ac19SJiang Yutang #ifdef CONFIG_PHYS_64BIT 454c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE3_IO_PHYS 0xfffc00000ull 4559899ac19SJiang Yutang #else 4569899ac19SJiang Yutang #define CONFIG_SYS_PCIE3_IO_PHYS 0xffc00000 4579899ac19SJiang Yutang #endif 458c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE3_IO_SIZE 0x00010000 /* 64k */ 459c59e1b4dSTimur Tabi 460c59e1b4dSTimur Tabi #ifdef CONFIG_PCI 461c59e1b4dSTimur Tabi #define CONFIG_PCI_PNP /* do pci plug-and-play */ 462c59e1b4dSTimur Tabi #define CONFIG_PCI_SCAN_SHOW /* show pci devices on startup */ 46316855ec1SKumar Gala #define CONFIG_E1000 /* Define e1000 pci Ethernet card */ 464c59e1b4dSTimur Tabi #endif 465c59e1b4dSTimur Tabi 466c59e1b4dSTimur Tabi /* SATA */ 467c59e1b4dSTimur Tabi #define CONFIG_LIBATA 468c59e1b4dSTimur Tabi #define CONFIG_FSL_SATA 4699760b274SZang Roy-R61911 #define CONFIG_FSL_SATA_V2 470c59e1b4dSTimur Tabi 471c59e1b4dSTimur Tabi #define CONFIG_SYS_SATA_MAX_DEVICE 2 472c59e1b4dSTimur Tabi #define CONFIG_SATA1 473c59e1b4dSTimur Tabi #define CONFIG_SYS_SATA1 CONFIG_SYS_MPC85xx_SATA1_ADDR 474c59e1b4dSTimur Tabi #define CONFIG_SYS_SATA1_FLAGS FLAGS_DMA 475c59e1b4dSTimur Tabi #define CONFIG_SATA2 476c59e1b4dSTimur Tabi #define CONFIG_SYS_SATA2 CONFIG_SYS_MPC85xx_SATA2_ADDR 477c59e1b4dSTimur Tabi #define CONFIG_SYS_SATA2_FLAGS FLAGS_DMA 478c59e1b4dSTimur Tabi 479c59e1b4dSTimur Tabi #ifdef CONFIG_FSL_SATA 480c59e1b4dSTimur Tabi #define CONFIG_LBA48 481c59e1b4dSTimur Tabi #define CONFIG_CMD_SATA 482c59e1b4dSTimur Tabi #define CONFIG_DOS_PARTITION 483c59e1b4dSTimur Tabi #define CONFIG_CMD_EXT2 484c59e1b4dSTimur Tabi #endif 485c59e1b4dSTimur Tabi 486c59e1b4dSTimur Tabi #define CONFIG_MMC 487c59e1b4dSTimur Tabi #ifdef CONFIG_MMC 488c59e1b4dSTimur Tabi #define CONFIG_CMD_MMC 489c59e1b4dSTimur Tabi #define CONFIG_FSL_ESDHC 490c59e1b4dSTimur Tabi #define CONFIG_GENERIC_MMC 491c59e1b4dSTimur Tabi #define CONFIG_SYS_FSL_ESDHC_ADDR CONFIG_SYS_MPC85xx_ESDHC_ADDR 492c59e1b4dSTimur Tabi #endif 493c59e1b4dSTimur Tabi 494c59e1b4dSTimur Tabi #if defined(CONFIG_MMC) || defined(CONFIG_USB_EHCI) 495c59e1b4dSTimur Tabi #define CONFIG_CMD_EXT2 496c59e1b4dSTimur Tabi #define CONFIG_CMD_FAT 497c59e1b4dSTimur Tabi #define CONFIG_DOS_PARTITION 498c59e1b4dSTimur Tabi #endif 499c59e1b4dSTimur Tabi 500c59e1b4dSTimur Tabi #define CONFIG_TSEC_ENET 501c59e1b4dSTimur Tabi #ifdef CONFIG_TSEC_ENET 502c59e1b4dSTimur Tabi 503c59e1b4dSTimur Tabi #define CONFIG_TSECV2 504c59e1b4dSTimur Tabi 505c59e1b4dSTimur Tabi #define CONFIG_MII /* MII PHY management */ 506c59e1b4dSTimur Tabi #define CONFIG_TSEC1 1 507c59e1b4dSTimur Tabi #define CONFIG_TSEC1_NAME "eTSEC1" 508c59e1b4dSTimur Tabi #define CONFIG_TSEC2 1 509c59e1b4dSTimur Tabi #define CONFIG_TSEC2_NAME "eTSEC2" 510c59e1b4dSTimur Tabi 511c59e1b4dSTimur Tabi #define TSEC1_PHY_ADDR 1 512c59e1b4dSTimur Tabi #define TSEC2_PHY_ADDR 2 513c59e1b4dSTimur Tabi 514c59e1b4dSTimur Tabi #define TSEC1_FLAGS (TSEC_GIGABIT | TSEC_REDUCED) 515c59e1b4dSTimur Tabi #define TSEC2_FLAGS (TSEC_GIGABIT | TSEC_REDUCED) 516c59e1b4dSTimur Tabi 517c59e1b4dSTimur Tabi #define TSEC1_PHYIDX 0 518c59e1b4dSTimur Tabi #define TSEC2_PHYIDX 0 519c59e1b4dSTimur Tabi 520c59e1b4dSTimur Tabi #define CONFIG_ETHPRIME "eTSEC1" 521c59e1b4dSTimur Tabi 522c59e1b4dSTimur Tabi #define CONFIG_PHY_GIGE /* Include GbE speed/duplex detection */ 523c59e1b4dSTimur Tabi #endif 524c59e1b4dSTimur Tabi 525c59e1b4dSTimur Tabi /* 526c59e1b4dSTimur Tabi * Environment 527c59e1b4dSTimur Tabi */ 528af253608SMatthew McClintock #ifdef CONFIG_RAMBOOT_SPIFLASH 529af253608SMatthew McClintock #define CONFIG_ENV_IS_IN_SPI_FLASH 530af253608SMatthew McClintock #define CONFIG_ENV_SPI_BUS 0 531af253608SMatthew McClintock #define CONFIG_ENV_SPI_CS 0 532af253608SMatthew McClintock #define CONFIG_ENV_SPI_MAX_HZ 10000000 533af253608SMatthew McClintock #define CONFIG_ENV_SPI_MODE 0 534af253608SMatthew McClintock #define CONFIG_ENV_SIZE 0x2000 /* 8KB */ 535af253608SMatthew McClintock #define CONFIG_ENV_OFFSET 0x100000 /* 1MB */ 536af253608SMatthew McClintock #define CONFIG_ENV_SECT_SIZE 0x10000 537af253608SMatthew McClintock #elif defined(CONFIG_RAMBOOT_SDCARD) 538af253608SMatthew McClintock #define CONFIG_ENV_IS_IN_MMC 539c59e1b4dSTimur Tabi #define CONFIG_ENV_SIZE 0x2000 540af253608SMatthew McClintock #define CONFIG_SYS_MMC_ENV_DEV 0 541*f45210d6SMatthew McClintock #elif defined(CONFIG_NAND) 542af253608SMatthew McClintock #define CONFIG_ENV_IS_IN_NAND 543af253608SMatthew McClintock #define CONFIG_ENV_SIZE CONFIG_SYS_NAND_BLOCK_SIZE 544af253608SMatthew McClintock #define CONFIG_ENV_OFFSET ((512 * 1024) + CONFIG_SYS_NAND_BLOCK_SIZE) 545af253608SMatthew McClintock #define CONFIG_ENV_RANGE (3 * CONFIG_ENV_SIZE) 546*f45210d6SMatthew McClintock #elif defined(CONFIG_SYS_RAMBOOT) 547af253608SMatthew McClintock #define CONFIG_ENV_IS_NOWHERE /* Store ENV in memory only */ 548af253608SMatthew McClintock #define CONFIG_ENV_ADDR (CONFIG_SYS_MONITOR_BASE - 0x1000) 549af253608SMatthew McClintock #define CONFIG_ENV_SIZE 0x2000 550af253608SMatthew McClintock #else 551af253608SMatthew McClintock #define CONFIG_ENV_IS_IN_FLASH 552af253608SMatthew McClintock #if CONFIG_SYS_MONITOR_BASE > 0xfff80000 553af253608SMatthew McClintock #define CONFIG_ENV_ADDR 0xfff80000 554af253608SMatthew McClintock #else 555af253608SMatthew McClintock #define CONFIG_ENV_ADDR (CONFIG_SYS_MONITOR_BASE - CONFIG_ENV_SECT_SIZE) 556af253608SMatthew McClintock #endif 557af253608SMatthew McClintock #define CONFIG_ENV_SIZE 0x2000 558af253608SMatthew McClintock #define CONFIG_ENV_SECT_SIZE 0x20000 /* 128K (one sector) */ 559af253608SMatthew McClintock #endif 560c59e1b4dSTimur Tabi 561c59e1b4dSTimur Tabi #define CONFIG_LOADS_ECHO 562c59e1b4dSTimur Tabi #define CONFIG_SYS_LOADS_BAUD_CHANGE 563c59e1b4dSTimur Tabi 564c59e1b4dSTimur Tabi /* 565c59e1b4dSTimur Tabi * Command line configuration. 566c59e1b4dSTimur Tabi */ 567c59e1b4dSTimur Tabi #include <config_cmd_default.h> 568c59e1b4dSTimur Tabi 56979ee3448SKumar Gala #define CONFIG_CMD_ELF 57079ee3448SKumar Gala #define CONFIG_CMD_ERRATA 571c59e1b4dSTimur Tabi #define CONFIG_CMD_IRQ 572c59e1b4dSTimur Tabi #define CONFIG_CMD_I2C 573c59e1b4dSTimur Tabi #define CONFIG_CMD_MII 57479ee3448SKumar Gala #define CONFIG_CMD_PING 575c59e1b4dSTimur Tabi #define CONFIG_CMD_SETEXPR 576b8339e2bSMatthew McClintock #define CONFIG_CMD_REGINFO 577c59e1b4dSTimur Tabi 578c59e1b4dSTimur Tabi #ifdef CONFIG_PCI 579c59e1b4dSTimur Tabi #define CONFIG_CMD_PCI 580c59e1b4dSTimur Tabi #define CONFIG_CMD_NET 581c59e1b4dSTimur Tabi #endif 582c59e1b4dSTimur Tabi 583c59e1b4dSTimur Tabi /* 584c59e1b4dSTimur Tabi * USB 585c59e1b4dSTimur Tabi */ 5863d7506faSramneek mehresh #define CONFIG_HAS_FSL_DR_USB 5873d7506faSramneek mehresh #ifdef CONFIG_HAS_FSL_DR_USB 588c59e1b4dSTimur Tabi #define CONFIG_USB_EHCI 589c59e1b4dSTimur Tabi 590c59e1b4dSTimur Tabi #ifdef CONFIG_USB_EHCI 591c59e1b4dSTimur Tabi #define CONFIG_CMD_USB 592c59e1b4dSTimur Tabi #define CONFIG_EHCI_HCD_INIT_AFTER_RESET 593c59e1b4dSTimur Tabi #define CONFIG_USB_EHCI_FSL 594c59e1b4dSTimur Tabi #define CONFIG_USB_STORAGE 595c59e1b4dSTimur Tabi #define CONFIG_CMD_FAT 596c59e1b4dSTimur Tabi #endif 5973d7506faSramneek mehresh #endif 598c59e1b4dSTimur Tabi 599c59e1b4dSTimur Tabi /* 600c59e1b4dSTimur Tabi * Miscellaneous configurable options 601c59e1b4dSTimur Tabi */ 602c59e1b4dSTimur Tabi #define CONFIG_SYS_LONGHELP /* undef to save memory */ 603c59e1b4dSTimur Tabi #define CONFIG_CMDLINE_EDITING /* Command-line editing */ 6045be58f5fSKim Phillips #define CONFIG_AUTO_COMPLETE /* add autocompletion support */ 605c59e1b4dSTimur Tabi #define CONFIG_SYS_LOAD_ADDR 0x2000000 /* default load address */ 606c59e1b4dSTimur Tabi #define CONFIG_SYS_PROMPT "=> " /* Monitor Command Prompt */ 607c59e1b4dSTimur Tabi #ifdef CONFIG_CMD_KGDB 608c59e1b4dSTimur Tabi #define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buffer Size */ 609c59e1b4dSTimur Tabi #else 610c59e1b4dSTimur Tabi #define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */ 611c59e1b4dSTimur Tabi #endif 612c59e1b4dSTimur Tabi /* Print Buffer Size */ 613c59e1b4dSTimur Tabi #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16) 614c59e1b4dSTimur Tabi #define CONFIG_SYS_MAXARGS 16 615c59e1b4dSTimur Tabi #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE 616c59e1b4dSTimur Tabi #define CONFIG_SYS_HZ 1000 617c59e1b4dSTimur Tabi 618c59e1b4dSTimur Tabi /* 619c59e1b4dSTimur Tabi * For booting Linux, the board info and command line data 620a832ac41SKumar Gala * have to be in the first 64 MB of memory, since this is 621c59e1b4dSTimur Tabi * the maximum mapped by the Linux kernel during initialization. 622c59e1b4dSTimur Tabi */ 623a832ac41SKumar Gala #define CONFIG_SYS_BOOTMAPSZ (64 << 20) /* Initial Memory map for Linux*/ 624a832ac41SKumar Gala #define CONFIG_SYS_BOOTM_LEN (64 << 20) /* Increase max gunzip size */ 625c59e1b4dSTimur Tabi 626c59e1b4dSTimur Tabi #ifdef CONFIG_CMD_KGDB 627c59e1b4dSTimur Tabi #define CONFIG_KGDB_BAUDRATE 230400 /* speed to run kgdb serial port */ 628c59e1b4dSTimur Tabi #define CONFIG_KGDB_SER_INDEX 2 /* which serial port to use */ 629c59e1b4dSTimur Tabi #endif 630c59e1b4dSTimur Tabi 631c59e1b4dSTimur Tabi /* 632c59e1b4dSTimur Tabi * Environment Configuration 633c59e1b4dSTimur Tabi */ 634c59e1b4dSTimur Tabi 635c59e1b4dSTimur Tabi #define CONFIG_HOSTNAME p1022ds 6368b3637c6SJoe Hershberger #define CONFIG_ROOTPATH "/opt/nfsroot" 637b3f44c21SJoe Hershberger #define CONFIG_BOOTFILE "uImage" 638c59e1b4dSTimur Tabi #define CONFIG_UBOOTPATH u-boot.bin /* U-Boot image on TFTP server */ 639c59e1b4dSTimur Tabi 640c59e1b4dSTimur Tabi #define CONFIG_LOADADDR 1000000 641c59e1b4dSTimur Tabi 642c59e1b4dSTimur Tabi #define CONFIG_BOOTDELAY 10 /* -1 disables auto-boot */ 643c59e1b4dSTimur Tabi 644c59e1b4dSTimur Tabi #define CONFIG_BAUDRATE 115200 645c59e1b4dSTimur Tabi 646c59e1b4dSTimur Tabi #define CONFIG_EXTRA_ENV_SETTINGS \ 647c59e1b4dSTimur Tabi "netdev=eth0\0" \ 6485368c55dSMarek Vasut "uboot=" __stringify(CONFIG_UBOOTPATH) "\0" \ 6495368c55dSMarek Vasut "ubootaddr=" __stringify(CONFIG_SYS_TEXT_BASE) "\0" \ 65084e34b65STimur Tabi "tftpflash=tftpboot $loadaddr $uboot && " \ 65184e34b65STimur Tabi "protect off $ubootaddr +$filesize && " \ 65284e34b65STimur Tabi "erase $ubootaddr +$filesize && " \ 65384e34b65STimur Tabi "cp.b $loadaddr $ubootaddr $filesize && " \ 65484e34b65STimur Tabi "protect on $ubootaddr +$filesize && " \ 65584e34b65STimur Tabi "cmp.b $loadaddr $ubootaddr $filesize\0" \ 656c59e1b4dSTimur Tabi "consoledev=ttyS0\0" \ 657c59e1b4dSTimur Tabi "ramdiskaddr=2000000\0" \ 65884e34b65STimur Tabi "ramdiskfile=rootfs.ext2.gz.uboot\0" \ 659c59e1b4dSTimur Tabi "fdtaddr=c00000\0" \ 660c59e1b4dSTimur Tabi "fdtfile=p1022ds.dtb\0" \ 661c59e1b4dSTimur Tabi "bdev=sda3\0" \ 662ba8e76bdSTimur Tabi "hwconfig=esdhc;audclk:12\0" 663c59e1b4dSTimur Tabi 664c59e1b4dSTimur Tabi #define CONFIG_HDBOOT \ 665c59e1b4dSTimur Tabi "setenv bootargs root=/dev/$bdev rw " \ 66684e34b65STimur Tabi "console=$consoledev,$baudrate $othbootargs $videobootargs;" \ 667c59e1b4dSTimur Tabi "tftp $loadaddr $bootfile;" \ 668c59e1b4dSTimur Tabi "tftp $fdtaddr $fdtfile;" \ 669c59e1b4dSTimur Tabi "bootm $loadaddr - $fdtaddr" 670c59e1b4dSTimur Tabi 671c59e1b4dSTimur Tabi #define CONFIG_NFSBOOTCOMMAND \ 672c59e1b4dSTimur Tabi "setenv bootargs root=/dev/nfs rw " \ 673c59e1b4dSTimur Tabi "nfsroot=$serverip:$rootpath " \ 674c59e1b4dSTimur Tabi "ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname:$netdev:off " \ 67584e34b65STimur Tabi "console=$consoledev,$baudrate $othbootargs $videobootargs;" \ 676c59e1b4dSTimur Tabi "tftp $loadaddr $bootfile;" \ 677c59e1b4dSTimur Tabi "tftp $fdtaddr $fdtfile;" \ 678c59e1b4dSTimur Tabi "bootm $loadaddr - $fdtaddr" 679c59e1b4dSTimur Tabi 680c59e1b4dSTimur Tabi #define CONFIG_RAMBOOTCOMMAND \ 681c59e1b4dSTimur Tabi "setenv bootargs root=/dev/ram rw " \ 68284e34b65STimur Tabi "console=$consoledev,$baudrate $othbootargs $videobootargs;" \ 683c59e1b4dSTimur Tabi "tftp $ramdiskaddr $ramdiskfile;" \ 684c59e1b4dSTimur Tabi "tftp $loadaddr $bootfile;" \ 685c59e1b4dSTimur Tabi "tftp $fdtaddr $fdtfile;" \ 686c59e1b4dSTimur Tabi "bootm $loadaddr $ramdiskaddr $fdtaddr" 687c59e1b4dSTimur Tabi 688c59e1b4dSTimur Tabi #define CONFIG_BOOTCOMMAND CONFIG_RAMBOOTCOMMAND 689c59e1b4dSTimur Tabi 690c59e1b4dSTimur Tabi #endif 691