1d1712369SKumar Gala /* 2a09b9b68SKumar Gala * Copyright 2009-2011 Freescale Semiconductor, Inc. 3d1712369SKumar Gala * 4d1712369SKumar Gala * See file CREDITS for list of people who contributed to this 5d1712369SKumar Gala * project. 6d1712369SKumar Gala * 7d1712369SKumar Gala * This program is free software; you can redistribute it and/or 8d1712369SKumar Gala * modify it under the terms of the GNU General Public License as 9d1712369SKumar Gala * published by the Free Software Foundation; either version 2 of 10d1712369SKumar Gala * the License, or (at your option) any later version. 11d1712369SKumar Gala * 12d1712369SKumar Gala * This program is distributed in the hope that it will be useful, 13d1712369SKumar Gala * but WITHOUT ANY WARRANTY; without even the implied warranty of 14d1712369SKumar Gala * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15d1712369SKumar Gala * GNU General Public License for more details. 16d1712369SKumar Gala * 17d1712369SKumar Gala * You should have received a copy of the GNU General Public License 18d1712369SKumar Gala * along with this program; if not, write to the Free Software 19d1712369SKumar Gala * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 20d1712369SKumar Gala * MA 02111-1307 USA 21d1712369SKumar Gala */ 22d1712369SKumar Gala 23d1712369SKumar Gala /* 24d1712369SKumar Gala * Corenet DS style board configuration file 25d1712369SKumar Gala */ 26d1712369SKumar Gala #ifndef __CONFIG_H 27d1712369SKumar Gala #define __CONFIG_H 28d1712369SKumar Gala 29d1712369SKumar Gala #include "../board/freescale/common/ics307_clk.h" 30d1712369SKumar Gala 312a9fab82SShaohui Xie #ifdef CONFIG_RAMBOOT_PBL 322a9fab82SShaohui Xie #define CONFIG_RAMBOOT_TEXT_BASE CONFIG_SYS_TEXT_BASE 332a9fab82SShaohui Xie #define CONFIG_RESET_VECTOR_ADDRESS 0xfffffffc 342a9fab82SShaohui Xie #endif 352a9fab82SShaohui Xie 36d1712369SKumar Gala /* High Level Configuration Options */ 37d1712369SKumar Gala #define CONFIG_BOOKE 38d1712369SKumar Gala #define CONFIG_E500 /* BOOKE e500 family */ 39d1712369SKumar Gala #define CONFIG_E500MC /* BOOKE e500mc family */ 40d1712369SKumar Gala #define CONFIG_SYS_BOOK3E_HV /* Category E.HV supported */ 41d1712369SKumar Gala #define CONFIG_MPC85xx /* MPC85xx/PQ3 platform */ 42d1712369SKumar Gala #define CONFIG_FSL_CORENET /* Freescale CoreNet platform */ 43d1712369SKumar Gala #define CONFIG_MP /* support multiple processors */ 44d1712369SKumar Gala 45ed179152SKumar Gala #ifndef CONFIG_SYS_TEXT_BASE 46ed179152SKumar Gala #define CONFIG_SYS_TEXT_BASE 0xeff80000 47ed179152SKumar Gala #endif 48ed179152SKumar Gala 497a577fdaSKumar Gala #ifndef CONFIG_RESET_VECTOR_ADDRESS 507a577fdaSKumar Gala #define CONFIG_RESET_VECTOR_ADDRESS 0xeffffffc 517a577fdaSKumar Gala #endif 527a577fdaSKumar Gala 53d1712369SKumar Gala #define CONFIG_SYS_FSL_CPC /* Corenet Platform Cache */ 54d1712369SKumar Gala #define CONFIG_SYS_NUM_CPC CONFIG_NUM_DDR_CONTROLLERS 55d1712369SKumar Gala #define CONFIG_FSL_ELBC /* Has Enhanced localbus controller */ 56d1712369SKumar Gala #define CONFIG_PCI /* Enable PCI/PCIE */ 57d1712369SKumar Gala #define CONFIG_PCIE1 /* PCIE controler 1 */ 58d1712369SKumar Gala #define CONFIG_PCIE2 /* PCIE controler 2 */ 59d1712369SKumar Gala #define CONFIG_PCIE3 /* PCIE controler 3 */ 60d1712369SKumar Gala #define CONFIG_FSL_PCI_INIT /* Use common FSL init code */ 61d1712369SKumar Gala #define CONFIG_SYS_PCI_64BIT /* enable 64-bit PCI resources */ 62d1712369SKumar Gala 63a09b9b68SKumar Gala #define CONFIG_SYS_SRIO 64d1712369SKumar Gala #define CONFIG_SRIO1 /* SRIO port 1 */ 65d1712369SKumar Gala #define CONFIG_SRIO2 /* SRIO port 2 */ 66d1712369SKumar Gala 67d1712369SKumar Gala #define CONFIG_FSL_LAW /* Use common FSL init code */ 68d1712369SKumar Gala 69d1712369SKumar Gala #define CONFIG_ENV_OVERWRITE 70d1712369SKumar Gala 712a9fab82SShaohui Xie #if defined(CONFIG_RAMBOOT_PBL) 722a9fab82SShaohui Xie #define CONFIG_SYS_NO_FLASH /* Store ENV in memory only */ 732a9fab82SShaohui Xie #endif 742a9fab82SShaohui Xie 75d1712369SKumar Gala #ifdef CONFIG_SYS_NO_FLASH 76d1712369SKumar Gala #define CONFIG_ENV_IS_NOWHERE 77d1712369SKumar Gala #else 78d1712369SKumar Gala #define CONFIG_ENV_IS_IN_FLASH 79d1712369SKumar Gala #define CONFIG_FLASH_CFI_DRIVER 80d1712369SKumar Gala #define CONFIG_SYS_FLASH_CFI 812a9fab82SShaohui Xie #define CONFIG_ENV_ADDR (CONFIG_SYS_MONITOR_BASE - CONFIG_ENV_SECT_SIZE) 82d1712369SKumar Gala #endif 83d1712369SKumar Gala 84d1712369SKumar Gala #define CONFIG_SYS_CLK_FREQ get_board_sys_clk() /* sysclk for MPC85xx */ 85d1712369SKumar Gala 86d1712369SKumar Gala /* 87d1712369SKumar Gala * These can be toggled for performance analysis, otherwise use default. 88d1712369SKumar Gala */ 89d1712369SKumar Gala #define CONFIG_SYS_CACHE_STASHING 90d1712369SKumar Gala #define CONFIG_BACKSIDE_L2_CACHE 91d1712369SKumar Gala #define CONFIG_SYS_INIT_L2CSR0 L2CSR0_L2E 92d1712369SKumar Gala #define CONFIG_BTB /* toggle branch predition */ 938ed20f2cSYork Sun #define CONFIG_DDR_ECC 94d1712369SKumar Gala #ifdef CONFIG_DDR_ECC 95d1712369SKumar Gala #define CONFIG_ECC_INIT_VIA_DDRCONTROLLER 96d1712369SKumar Gala #define CONFIG_MEM_INIT_VALUE 0xdeadbeef 97d1712369SKumar Gala #endif 98d1712369SKumar Gala 99d1712369SKumar Gala #define CONFIG_ENABLE_36BIT_PHYS 100d1712369SKumar Gala 101d1712369SKumar Gala #ifdef CONFIG_PHYS_64BIT 102d1712369SKumar Gala #define CONFIG_ADDR_MAP 103d1712369SKumar Gala #define CONFIG_SYS_NUM_ADDR_MAP 64 /* number of TLB1 entries */ 104d1712369SKumar Gala #endif 105d1712369SKumar Gala 1064672e1eaSYork Sun #define CONFIG_POST CONFIG_SYS_POST_MEMORY /* test POST memory test */ 107d1712369SKumar Gala #define CONFIG_SYS_MEMTEST_START 0x00200000 /* memtest works on */ 108d1712369SKumar Gala #define CONFIG_SYS_MEMTEST_END 0x00400000 109d1712369SKumar Gala #define CONFIG_SYS_ALT_MEMTEST 110d1712369SKumar Gala #define CONFIG_PANIC_HANG /* do not reset board on panic */ 111d1712369SKumar Gala 112d1712369SKumar Gala /* 1132a9fab82SShaohui Xie * Config the L3 Cache as L3 SRAM 1142a9fab82SShaohui Xie */ 1152a9fab82SShaohui Xie #define CONFIG_SYS_INIT_L3_ADDR CONFIG_RAMBOOT_TEXT_BASE 1162a9fab82SShaohui Xie #ifdef CONFIG_PHYS_64BIT 1172a9fab82SShaohui Xie #define CONFIG_SYS_INIT_L3_ADDR_PHYS (0xf00000000ull | CONFIG_RAMBOOT_TEXT_BASE) 1182a9fab82SShaohui Xie #else 1192a9fab82SShaohui Xie #define CONFIG_SYS_INIT_L3_ADDR_PHYS CONFIG_SYS_INIT_L3_ADDR 1202a9fab82SShaohui Xie #endif 1212a9fab82SShaohui Xie #define CONFIG_SYS_L3_SIZE (1024 << 10) 1222a9fab82SShaohui Xie #define CONFIG_SYS_INIT_L3_END (CONFIG_SYS_INIT_L3_ADDR + CONFIG_SYS_L3_SIZE) 1232a9fab82SShaohui Xie 1242a9fab82SShaohui Xie /* 125d1712369SKumar Gala * Base addresses -- Note these are effective addresses where the 126d1712369SKumar Gala * actual resources get mapped (not physical addresses) 127d1712369SKumar Gala */ 128d1712369SKumar Gala #define CONFIG_SYS_CCSRBAR_DEFAULT 0xfe000000 /* CCSRBAR Default */ 129d1712369SKumar Gala #define CONFIG_SYS_CCSRBAR 0xfe000000 /* relocated CCSRBAR */ 130d1712369SKumar Gala #ifdef CONFIG_PHYS_64BIT 131d1712369SKumar Gala #define CONFIG_SYS_CCSRBAR_PHYS 0xffe000000ull /* physical addr of CCSRBAR */ 132d1712369SKumar Gala #else 133d1712369SKumar Gala #define CONFIG_SYS_CCSRBAR_PHYS CONFIG_SYS_CCSRBAR /* physical addr of CCSRBAR */ 134d1712369SKumar Gala #endif 135d1712369SKumar Gala #define CONFIG_SYS_IMMR CONFIG_SYS_CCSRBAR /* PQII uses CONFIG_SYS_IMMR */ 136d1712369SKumar Gala 137d1712369SKumar Gala #ifdef CONFIG_PHYS_64BIT 138d1712369SKumar Gala #define CONFIG_SYS_DCSRBAR 0xf0000000 139d1712369SKumar Gala #define CONFIG_SYS_DCSRBAR_PHYS 0xf00000000ull 140d1712369SKumar Gala #endif 141d1712369SKumar Gala 142d1712369SKumar Gala /* EEPROM */ 143d1712369SKumar Gala #define CONFIG_ID_EEPROM 144d1712369SKumar Gala #define CONFIG_SYS_I2C_EEPROM_NXID 145d1712369SKumar Gala #define CONFIG_SYS_EEPROM_BUS_NUM 0 146d1712369SKumar Gala #define CONFIG_SYS_I2C_EEPROM_ADDR 0x57 147d1712369SKumar Gala #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1 148d1712369SKumar Gala 149d1712369SKumar Gala /* 150d1712369SKumar Gala * DDR Setup 151d1712369SKumar Gala */ 152d1712369SKumar Gala #define CONFIG_VERY_BIG_RAM 153d1712369SKumar Gala #define CONFIG_SYS_DDR_SDRAM_BASE 0x00000000 154d1712369SKumar Gala #define CONFIG_SYS_SDRAM_BASE CONFIG_SYS_DDR_SDRAM_BASE 155d1712369SKumar Gala 156d1712369SKumar Gala #define CONFIG_DIMM_SLOTS_PER_CTLR 1 15790870d98Syork #define CONFIG_CHIP_SELECTS_PER_CTRL (4 * CONFIG_DIMM_SLOTS_PER_CTLR) 158d1712369SKumar Gala 159d1712369SKumar Gala #define CONFIG_DDR_SPD 160d1712369SKumar Gala #define CONFIG_FSL_DDR3 161d1712369SKumar Gala 162d1712369SKumar Gala #define CONFIG_SYS_SPD_BUS_NUM 1 163d1712369SKumar Gala #define SPD_EEPROM_ADDRESS1 0x51 164d1712369SKumar Gala #define SPD_EEPROM_ADDRESS2 0x52 16528a96671SYork Sun #define CONFIG_SYS_SDRAM_SIZE 4096 /* for fixed parameter use */ 166d1712369SKumar Gala 167d1712369SKumar Gala /* 168d1712369SKumar Gala * Local Bus Definitions 169d1712369SKumar Gala */ 170d1712369SKumar Gala 171d1712369SKumar Gala /* Set the local bus clock 1/8 of platform clock */ 172d1712369SKumar Gala #define CONFIG_SYS_LBC_LCRR LCRR_CLKDIV_8 173d1712369SKumar Gala 174d1712369SKumar Gala #define CONFIG_SYS_FLASH_BASE 0xe0000000 /* Start of PromJet */ 175d1712369SKumar Gala #ifdef CONFIG_PHYS_64BIT 176d1712369SKumar Gala #define CONFIG_SYS_FLASH_BASE_PHYS 0xfe0000000ull 177d1712369SKumar Gala #else 178d1712369SKumar Gala #define CONFIG_SYS_FLASH_BASE_PHYS CONFIG_SYS_FLASH_BASE 179d1712369SKumar Gala #endif 180d1712369SKumar Gala 181d1712369SKumar Gala #define CONFIG_SYS_BR0_PRELIM \ 182d1712369SKumar Gala (BR_PHYS_ADDR((CONFIG_SYS_FLASH_BASE_PHYS + 0x8000000)) | \ 183d1712369SKumar Gala BR_PS_16 | BR_V) 184d1712369SKumar Gala #define CONFIG_SYS_OR0_PRELIM ((0xf8000ff7 & ~OR_GPCM_SCY & ~OR_GPCM_EHTR) \ 185d1712369SKumar Gala | OR_GPCM_SCY_8 | OR_GPCM_EHTR_CLEAR) 186d1712369SKumar Gala 187d1712369SKumar Gala #define CONFIG_SYS_BR1_PRELIM \ 188d1712369SKumar Gala (BR_PHYS_ADDR(CONFIG_SYS_FLASH_BASE_PHYS) | BR_PS_16 | BR_V) 189d1712369SKumar Gala #define CONFIG_SYS_OR1_PRELIM 0xf8000ff7 190d1712369SKumar Gala 191d1712369SKumar Gala #define CONFIG_FSL_NGPIXIS /* use common ngPIXIS code */ 192d1712369SKumar Gala #define PIXIS_BASE 0xffdf0000 /* PIXIS registers */ 193d1712369SKumar Gala #ifdef CONFIG_PHYS_64BIT 194d1712369SKumar Gala #define PIXIS_BASE_PHYS 0xfffdf0000ull 195d1712369SKumar Gala #else 196d1712369SKumar Gala #define PIXIS_BASE_PHYS PIXIS_BASE 197d1712369SKumar Gala #endif 198d1712369SKumar Gala 199d1712369SKumar Gala #define CONFIG_SYS_BR3_PRELIM (BR_PHYS_ADDR(PIXIS_BASE_PHYS) | BR_PS_8 | BR_V) 200d1712369SKumar Gala #define CONFIG_SYS_OR3_PRELIM 0xffffeff7 /* 32KB but only 4k mapped */ 201d1712369SKumar Gala 202d1712369SKumar Gala #define PIXIS_LBMAP_SWITCH 7 203d1712369SKumar Gala #define PIXIS_LBMAP_MASK 0xf0 204d1712369SKumar Gala #define PIXIS_LBMAP_SHIFT 4 205d1712369SKumar Gala #define PIXIS_LBMAP_ALTBANK 0x40 206d1712369SKumar Gala 207d1712369SKumar Gala #define CONFIG_SYS_FLASH_QUIET_TEST 208d1712369SKumar Gala #define CONFIG_FLASH_SHOW_PROGRESS 45 /* count down from 45/5: 9..1 */ 209d1712369SKumar Gala 210d1712369SKumar Gala #define CONFIG_SYS_MAX_FLASH_BANKS 2 /* number of banks */ 211d1712369SKumar Gala #define CONFIG_SYS_MAX_FLASH_SECT 1024 /* sectors per device */ 212d1712369SKumar Gala #define CONFIG_SYS_FLASH_ERASE_TOUT 60000 /* Flash Erase Timeout (ms) */ 213d1712369SKumar Gala #define CONFIG_SYS_FLASH_WRITE_TOUT 500 /* Flash Write Timeout (ms) */ 214d1712369SKumar Gala 21514d0a02aSWolfgang Denk #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE /* start of monitor */ 216d1712369SKumar Gala 2172a9fab82SShaohui Xie #if defined(CONFIG_RAMBOOT_PBL) 2182a9fab82SShaohui Xie #define CONFIG_SYS_RAMBOOT 2192a9fab82SShaohui Xie #endif 2202a9fab82SShaohui Xie 221d1712369SKumar Gala #define CONFIG_SYS_FLASH_EMPTY_INFO 222d1712369SKumar Gala #define CONFIG_SYS_FLASH_AMD_CHECK_DQ7 223d1712369SKumar Gala #define CONFIG_SYS_FLASH_BANKS_LIST {CONFIG_SYS_FLASH_BASE_PHYS + 0x8000000, CONFIG_SYS_FLASH_BASE_PHYS} 224d1712369SKumar Gala 225d1712369SKumar Gala #define CONFIG_BOARD_EARLY_INIT_F 226d1712369SKumar Gala #define CONFIG_BOARD_EARLY_INIT_R /* call board_early_init_r function */ 227d1712369SKumar Gala #define CONFIG_MISC_INIT_R 228d1712369SKumar Gala 229d1712369SKumar Gala #define CONFIG_HWCONFIG 230d1712369SKumar Gala 231d1712369SKumar Gala /* define to use L1 as initial stack */ 232d1712369SKumar Gala #define CONFIG_L1_INIT_RAM 233d1712369SKumar Gala #define CONFIG_SYS_INIT_RAM_LOCK 234d1712369SKumar Gala #define CONFIG_SYS_INIT_RAM_ADDR 0xfdd00000 /* Initial L1 address */ 235d1712369SKumar Gala #ifdef CONFIG_PHYS_64BIT 236d1712369SKumar Gala #define CONFIG_SYS_INIT_RAM_ADDR_PHYS_HIGH 0xf 237d1712369SKumar Gala #define CONFIG_SYS_INIT_RAM_ADDR_PHYS_LOW CONFIG_SYS_INIT_RAM_ADDR 238d1712369SKumar Gala /* The assembler doesn't like typecast */ 239d1712369SKumar Gala #define CONFIG_SYS_INIT_RAM_ADDR_PHYS \ 240d1712369SKumar Gala ((CONFIG_SYS_INIT_RAM_ADDR_PHYS_HIGH * 1ull << 32) | \ 241d1712369SKumar Gala CONFIG_SYS_INIT_RAM_ADDR_PHYS_LOW) 242d1712369SKumar Gala #else 243d1712369SKumar Gala #define CONFIG_SYS_INIT_RAM_ADDR_PHYS CONFIG_SYS_INIT_RAM_ADDR /* Initial L1 address */ 244d1712369SKumar Gala #define CONFIG_SYS_INIT_RAM_ADDR_PHYS_HIGH 0 245d1712369SKumar Gala #define CONFIG_SYS_INIT_RAM_ADDR_PHYS_LOW CONFIG_SYS_INIT_RAM_ADDR_PHYS 246d1712369SKumar Gala #endif 247553f0982SWolfgang Denk #define CONFIG_SYS_INIT_RAM_SIZE 0x00004000 /* Size of used area in RAM */ 248d1712369SKumar Gala 24925ddd1fbSWolfgang Denk #define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE) 250d1712369SKumar Gala #define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET 251d1712369SKumar Gala 252d1712369SKumar Gala #define CONFIG_SYS_MONITOR_LEN (512 * 1024) 253d1712369SKumar Gala #define CONFIG_SYS_MALLOC_LEN (1024 * 1024) /* Reserved for malloc */ 254d1712369SKumar Gala 255d1712369SKumar Gala /* Serial Port - controlled on board with jumper J8 256d1712369SKumar Gala * open - index 2 257d1712369SKumar Gala * shorted - index 1 258d1712369SKumar Gala */ 259d1712369SKumar Gala #define CONFIG_CONS_INDEX 1 260d1712369SKumar Gala #define CONFIG_SYS_NS16550 261d1712369SKumar Gala #define CONFIG_SYS_NS16550_SERIAL 262d1712369SKumar Gala #define CONFIG_SYS_NS16550_REG_SIZE 1 263d1712369SKumar Gala #define CONFIG_SYS_NS16550_CLK (get_bus_freq(0)/2) 264d1712369SKumar Gala 265d1712369SKumar Gala #define CONFIG_SYS_BAUDRATE_TABLE \ 266d1712369SKumar Gala {300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200} 267d1712369SKumar Gala 268d1712369SKumar Gala #define CONFIG_SYS_NS16550_COM1 (CONFIG_SYS_CCSRBAR+0x11C500) 269d1712369SKumar Gala #define CONFIG_SYS_NS16550_COM2 (CONFIG_SYS_CCSRBAR+0x11C600) 270d1712369SKumar Gala #define CONFIG_SYS_NS16550_COM3 (CONFIG_SYS_CCSRBAR+0x11D500) 271d1712369SKumar Gala #define CONFIG_SYS_NS16550_COM4 (CONFIG_SYS_CCSRBAR+0x11D600) 272d1712369SKumar Gala 273d1712369SKumar Gala /* Use the HUSH parser */ 274d1712369SKumar Gala #define CONFIG_SYS_HUSH_PARSER 275d1712369SKumar Gala #define CONFIG_SYS_PROMPT_HUSH_PS2 "> " 276d1712369SKumar Gala 277d1712369SKumar Gala /* pass open firmware flat tree */ 278d1712369SKumar Gala #define CONFIG_OF_LIBFDT 279d1712369SKumar Gala #define CONFIG_OF_BOARD_SETUP 280d1712369SKumar Gala #define CONFIG_OF_STDOUT_VIA_ALIAS 281d1712369SKumar Gala 282d1712369SKumar Gala /* new uImage format support */ 283d1712369SKumar Gala #define CONFIG_FIT 284d1712369SKumar Gala #define CONFIG_FIT_VERBOSE /* enable fit_format_{error,warning}() */ 285d1712369SKumar Gala 286d1712369SKumar Gala /* I2C */ 287d1712369SKumar Gala #define CONFIG_FSL_I2C /* Use FSL common I2C driver */ 288d1712369SKumar Gala #define CONFIG_HARD_I2C /* I2C with hardware support */ 289d1712369SKumar Gala #define CONFIG_I2C_MULTI_BUS 290d1712369SKumar Gala #define CONFIG_I2C_CMD_TREE 291d1712369SKumar Gala #define CONFIG_SYS_I2C_SPEED 400000 /* I2C speed and slave address */ 292d1712369SKumar Gala #define CONFIG_SYS_I2C_SLAVE 0x7F 293d1712369SKumar Gala #define CONFIG_SYS_I2C_OFFSET 0x118000 294d1712369SKumar Gala #define CONFIG_SYS_I2C2_OFFSET 0x118100 295d1712369SKumar Gala 296d1712369SKumar Gala /* 297d1712369SKumar Gala * RapidIO 298d1712369SKumar Gala */ 299a09b9b68SKumar Gala #define CONFIG_SYS_SRIO1_MEM_VIRT 0xa0000000 300d1712369SKumar Gala #ifdef CONFIG_PHYS_64BIT 301a09b9b68SKumar Gala #define CONFIG_SYS_SRIO1_MEM_PHYS 0xc20000000ull 302d1712369SKumar Gala #else 303a09b9b68SKumar Gala #define CONFIG_SYS_SRIO1_MEM_PHYS 0xa0000000 304d1712369SKumar Gala #endif 305a09b9b68SKumar Gala #define CONFIG_SYS_SRIO1_MEM_SIZE 0x10000000 /* 256M */ 306d1712369SKumar Gala 307a09b9b68SKumar Gala #define CONFIG_SYS_SRIO2_MEM_VIRT 0xb0000000 308d1712369SKumar Gala #ifdef CONFIG_PHYS_64BIT 309a09b9b68SKumar Gala #define CONFIG_SYS_SRIO2_MEM_PHYS 0xc30000000ull 310d1712369SKumar Gala #else 311a09b9b68SKumar Gala #define CONFIG_SYS_SRIO2_MEM_PHYS 0xb0000000 312d1712369SKumar Gala #endif 313a09b9b68SKumar Gala #define CONFIG_SYS_SRIO2_MEM_SIZE 0x10000000 /* 256M */ 314d1712369SKumar Gala 315d1712369SKumar Gala /* 316d1712369SKumar Gala * General PCI 317d1712369SKumar Gala * Memory space is mapped 1-1, but I/O space must start from 0. 318d1712369SKumar Gala */ 319d1712369SKumar Gala 320d1712369SKumar Gala /* controller 1, direct to uli, tgtid 3, Base address 20000 */ 321d1712369SKumar Gala #define CONFIG_SYS_PCIE1_MEM_VIRT 0x80000000 322d1712369SKumar Gala #ifdef CONFIG_PHYS_64BIT 323d1712369SKumar Gala #define CONFIG_SYS_PCIE1_MEM_BUS 0xe0000000 324d1712369SKumar Gala #define CONFIG_SYS_PCIE1_MEM_PHYS 0xc00000000ull 325d1712369SKumar Gala #else 326d1712369SKumar Gala #define CONFIG_SYS_PCIE1_MEM_BUS 0x80000000 327d1712369SKumar Gala #define CONFIG_SYS_PCIE1_MEM_PHYS 0x80000000 328d1712369SKumar Gala #endif 329d1712369SKumar Gala #define CONFIG_SYS_PCIE1_MEM_SIZE 0x20000000 /* 512M */ 330d1712369SKumar Gala #define CONFIG_SYS_PCIE1_IO_VIRT 0xf8000000 331d1712369SKumar Gala #define CONFIG_SYS_PCIE1_IO_BUS 0x00000000 332d1712369SKumar Gala #ifdef CONFIG_PHYS_64BIT 333d1712369SKumar Gala #define CONFIG_SYS_PCIE1_IO_PHYS 0xff8000000ull 334d1712369SKumar Gala #else 335d1712369SKumar Gala #define CONFIG_SYS_PCIE1_IO_PHYS 0xf8000000 336d1712369SKumar Gala #endif 337d1712369SKumar Gala #define CONFIG_SYS_PCIE1_IO_SIZE 0x00010000 /* 64k */ 338d1712369SKumar Gala 339d1712369SKumar Gala /* controller 2, Slot 2, tgtid 2, Base address 201000 */ 340d1712369SKumar Gala #define CONFIG_SYS_PCIE2_MEM_VIRT 0xa0000000 341d1712369SKumar Gala #ifdef CONFIG_PHYS_64BIT 342d1712369SKumar Gala #define CONFIG_SYS_PCIE2_MEM_BUS 0xe0000000 343d1712369SKumar Gala #define CONFIG_SYS_PCIE2_MEM_PHYS 0xc20000000ull 344d1712369SKumar Gala #else 345d1712369SKumar Gala #define CONFIG_SYS_PCIE2_MEM_BUS 0xa0000000 346d1712369SKumar Gala #define CONFIG_SYS_PCIE2_MEM_PHYS 0xa0000000 347d1712369SKumar Gala #endif 348d1712369SKumar Gala #define CONFIG_SYS_PCIE2_MEM_SIZE 0x20000000 /* 512M */ 349d1712369SKumar Gala #define CONFIG_SYS_PCIE2_IO_VIRT 0xf8010000 350d1712369SKumar Gala #define CONFIG_SYS_PCIE2_IO_BUS 0x00000000 351d1712369SKumar Gala #ifdef CONFIG_PHYS_64BIT 352d1712369SKumar Gala #define CONFIG_SYS_PCIE2_IO_PHYS 0xff8010000ull 353d1712369SKumar Gala #else 354d1712369SKumar Gala #define CONFIG_SYS_PCIE2_IO_PHYS 0xf8010000 355d1712369SKumar Gala #endif 356d1712369SKumar Gala #define CONFIG_SYS_PCIE2_IO_SIZE 0x00010000 /* 64k */ 357d1712369SKumar Gala 358d1712369SKumar Gala /* controller 3, Slot 1, tgtid 1, Base address 202000 */ 359d1712369SKumar Gala #define CONFIG_SYS_PCIE3_MEM_VIRT 0xe0000000 360d1712369SKumar Gala #ifdef CONFIG_PHYS_64BIT 361d1712369SKumar Gala #define CONFIG_SYS_PCIE3_MEM_BUS 0xe0000000 362d1712369SKumar Gala #define CONFIG_SYS_PCIE3_MEM_PHYS 0xc40000000ull 363d1712369SKumar Gala #else 364d1712369SKumar Gala #define CONFIG_SYS_PCIE3_MEM_BUS 0xc0000000 365d1712369SKumar Gala #define CONFIG_SYS_PCIE3_MEM_PHYS 0xc0000000 366d1712369SKumar Gala #endif 367d1712369SKumar Gala #define CONFIG_SYS_PCIE3_MEM_SIZE 0x20000000 /* 512M */ 368d1712369SKumar Gala #define CONFIG_SYS_PCIE3_IO_VIRT 0xf8020000 369d1712369SKumar Gala #define CONFIG_SYS_PCIE3_IO_BUS 0x00000000 370d1712369SKumar Gala #ifdef CONFIG_PHYS_64BIT 371d1712369SKumar Gala #define CONFIG_SYS_PCIE3_IO_PHYS 0xff8020000ull 372d1712369SKumar Gala #else 373d1712369SKumar Gala #define CONFIG_SYS_PCIE3_IO_PHYS 0xf8020000 374d1712369SKumar Gala #endif 375d1712369SKumar Gala #define CONFIG_SYS_PCIE3_IO_SIZE 0x00010000 /* 64k */ 376d1712369SKumar Gala 3771bf8e9fdSKumar Gala /* controller 4, Base address 203000 */ 3781bf8e9fdSKumar Gala #define CONFIG_SYS_PCIE4_MEM_BUS 0xe0000000 3791bf8e9fdSKumar Gala #define CONFIG_SYS_PCIE4_MEM_PHYS 0xc60000000ull 3801bf8e9fdSKumar Gala #define CONFIG_SYS_PCIE4_MEM_SIZE 0x20000000 /* 512M */ 3811bf8e9fdSKumar Gala #define CONFIG_SYS_PCIE4_IO_BUS 0x00000000 3821bf8e9fdSKumar Gala #define CONFIG_SYS_PCIE4_IO_PHYS 0xff8030000ull 3831bf8e9fdSKumar Gala #define CONFIG_SYS_PCIE4_IO_SIZE 0x00010000 /* 64k */ 3841bf8e9fdSKumar Gala 385d1712369SKumar Gala /* Qman/Bman */ 38624995d82SHaiying Wang #define CONFIG_SYS_DPAA_QBMAN /* Support Q/Bman */ 387d1712369SKumar Gala #define CONFIG_SYS_BMAN_NUM_PORTALS 10 388d1712369SKumar Gala #define CONFIG_SYS_BMAN_MEM_BASE 0xf4000000 389d1712369SKumar Gala #ifdef CONFIG_PHYS_64BIT 390d1712369SKumar Gala #define CONFIG_SYS_BMAN_MEM_PHYS 0xff4000000ull 391d1712369SKumar Gala #else 392d1712369SKumar Gala #define CONFIG_SYS_BMAN_MEM_PHYS CONFIG_SYS_BMAN_MEM_BASE 393d1712369SKumar Gala #endif 394d1712369SKumar Gala #define CONFIG_SYS_BMAN_MEM_SIZE 0x00200000 395d1712369SKumar Gala #define CONFIG_SYS_QMAN_NUM_PORTALS 10 396d1712369SKumar Gala #define CONFIG_SYS_QMAN_MEM_BASE 0xf4200000 397d1712369SKumar Gala #ifdef CONFIG_PHYS_64BIT 398d1712369SKumar Gala #define CONFIG_SYS_QMAN_MEM_PHYS 0xff4200000ull 399d1712369SKumar Gala #else 400d1712369SKumar Gala #define CONFIG_SYS_QMAN_MEM_PHYS CONFIG_SYS_QMAN_MEM_BASE 401d1712369SKumar Gala #endif 402d1712369SKumar Gala #define CONFIG_SYS_QMAN_MEM_SIZE 0x00200000 403d1712369SKumar Gala 404d1712369SKumar Gala #define CONFIG_SYS_DPAA_FMAN 405d1712369SKumar Gala #define CONFIG_SYS_DPAA_PME 406d1712369SKumar Gala /* Default address of microcode for the Linux Fman driver */ 407d1712369SKumar Gala #define CONFIG_SYS_FMAN_FW_ADDR 0xEF000000 408d1712369SKumar Gala #ifdef CONFIG_PHYS_64BIT 409d1712369SKumar Gala #define CONFIG_SYS_FMAN_FW_ADDR_PHYS 0xFEF000000ULL 410d1712369SKumar Gala #else 411d1712369SKumar Gala #define CONFIG_SYS_FMAN_FW_ADDR_PHYS CONFIG_SYS_FMAN_FW_ADDR 412d1712369SKumar Gala #endif 413d1712369SKumar Gala 414d1712369SKumar Gala #ifdef CONFIG_SYS_DPAA_FMAN 415d1712369SKumar Gala #define CONFIG_FMAN_ENET 416d1712369SKumar Gala #endif 417d1712369SKumar Gala 418d1712369SKumar Gala #ifdef CONFIG_PCI 419d1712369SKumar Gala #define CONFIG_NET_MULTI 420d1712369SKumar Gala #define CONFIG_PCI_PNP /* do pci plug-and-play */ 421d1712369SKumar Gala #define CONFIG_E1000 422d1712369SKumar Gala 423d1712369SKumar Gala #define CONFIG_PCI_SCAN_SHOW /* show pci devices on startup */ 424d1712369SKumar Gala #define CONFIG_DOS_PARTITION 425d1712369SKumar Gala #endif /* CONFIG_PCI */ 426d1712369SKumar Gala 427d1712369SKumar Gala /* SATA */ 428d1712369SKumar Gala #ifdef CONFIG_FSL_SATA_V2 429d1712369SKumar Gala #define CONFIG_LIBATA 430d1712369SKumar Gala #define CONFIG_FSL_SATA 431d1712369SKumar Gala 432d1712369SKumar Gala #define CONFIG_SYS_SATA_MAX_DEVICE 2 433d1712369SKumar Gala #define CONFIG_SATA1 434d1712369SKumar Gala #define CONFIG_SYS_SATA1 CONFIG_SYS_MPC85xx_SATA1_ADDR 435d1712369SKumar Gala #define CONFIG_SYS_SATA1_FLAGS FLAGS_DMA 436d1712369SKumar Gala #define CONFIG_SATA2 437d1712369SKumar Gala #define CONFIG_SYS_SATA2 CONFIG_SYS_MPC85xx_SATA2_ADDR 438d1712369SKumar Gala #define CONFIG_SYS_SATA2_FLAGS FLAGS_DMA 439d1712369SKumar Gala 440d1712369SKumar Gala #define CONFIG_LBA48 441d1712369SKumar Gala #define CONFIG_CMD_SATA 442d1712369SKumar Gala #define CONFIG_DOS_PARTITION 443d1712369SKumar Gala #define CONFIG_CMD_EXT2 444d1712369SKumar Gala #endif 445d1712369SKumar Gala 446d1712369SKumar Gala #ifdef CONFIG_FMAN_ENET 447d1712369SKumar Gala #define CONFIG_SYS_FM1_DTSEC1_PHY_ADDR 0x1c 448d1712369SKumar Gala #define CONFIG_SYS_FM1_DTSEC2_PHY_ADDR 0x1d 449d1712369SKumar Gala #define CONFIG_SYS_FM1_DTSEC3_PHY_ADDR 0x1e 450d1712369SKumar Gala #define CONFIG_SYS_FM1_DTSEC4_PHY_ADDR 0x1f 451d1712369SKumar Gala #define CONFIG_SYS_FM1_10GEC1_PHY_ADDR 4 452d1712369SKumar Gala 453d1712369SKumar Gala #define CONFIG_SYS_FM2_DTSEC1_PHY_ADDR 0x1c 454d1712369SKumar Gala #define CONFIG_SYS_FM2_DTSEC2_PHY_ADDR 0x1d 455d1712369SKumar Gala #define CONFIG_SYS_FM2_DTSEC3_PHY_ADDR 0x1e 456d1712369SKumar Gala #define CONFIG_SYS_FM2_DTSEC4_PHY_ADDR 0x1f 457d1712369SKumar Gala #define CONFIG_SYS_FM2_10GEC1_PHY_ADDR 0 458d1712369SKumar Gala 459d1712369SKumar Gala #define CONFIG_SYS_TBIPA_VALUE 8 460d1712369SKumar Gala #define CONFIG_MII /* MII PHY management */ 461d1712369SKumar Gala #define CONFIG_ETHPRIME "FM1@DTSEC1" 462d1712369SKumar Gala #define CONFIG_PHY_GIGE /* Include GbE speed/duplex detection */ 463d1712369SKumar Gala #endif 464d1712369SKumar Gala 465d1712369SKumar Gala /* 466d1712369SKumar Gala * Environment 467d1712369SKumar Gala */ 468d1712369SKumar Gala #define CONFIG_ENV_SIZE 0x2000 469d1712369SKumar Gala #define CONFIG_ENV_SECT_SIZE 0x20000 /* 128K (one sector) */ 470d1712369SKumar Gala 471d1712369SKumar Gala #define CONFIG_LOADS_ECHO /* echo on for serial download */ 472d1712369SKumar Gala #define CONFIG_SYS_LOADS_BAUD_CHANGE /* allow baudrate change */ 473d1712369SKumar Gala 474d1712369SKumar Gala /* 475d1712369SKumar Gala * Command line configuration. 476d1712369SKumar Gala */ 477d1712369SKumar Gala #include <config_cmd_default.h> 478d1712369SKumar Gala 479*a000b795SKim Phillips #define CONFIG_CMD_DHCP 480d1712369SKumar Gala #define CONFIG_CMD_ELF 481d1712369SKumar Gala #define CONFIG_CMD_ERRATA 482*a000b795SKim Phillips #define CONFIG_CMD_GREPENV 483d1712369SKumar Gala #define CONFIG_CMD_IRQ 484d1712369SKumar Gala #define CONFIG_CMD_I2C 485d1712369SKumar Gala #define CONFIG_CMD_MII 486d1712369SKumar Gala #define CONFIG_CMD_PING 487d1712369SKumar Gala #define CONFIG_CMD_SETEXPR 488d1712369SKumar Gala 489d1712369SKumar Gala #ifdef CONFIG_PCI 490d1712369SKumar Gala #define CONFIG_CMD_PCI 491d1712369SKumar Gala #define CONFIG_CMD_NET 492d1712369SKumar Gala #endif 493d1712369SKumar Gala 494d1712369SKumar Gala /* 495d1712369SKumar Gala * USB 496d1712369SKumar Gala */ 497d1712369SKumar Gala #define CONFIG_CMD_USB 498d1712369SKumar Gala #define CONFIG_USB_STORAGE 499d1712369SKumar Gala #define CONFIG_USB_EHCI 500d1712369SKumar Gala #define CONFIG_USB_EHCI_FSL 501d1712369SKumar Gala #define CONFIG_EHCI_HCD_INIT_AFTER_RESET 502d1712369SKumar Gala #define CONFIG_CMD_EXT2 503d1712369SKumar Gala 504d1712369SKumar Gala #define CONFIG_MMC 505d1712369SKumar Gala 506d1712369SKumar Gala #ifdef CONFIG_MMC 507d1712369SKumar Gala #define CONFIG_FSL_ESDHC 508d1712369SKumar Gala #define CONFIG_SYS_FSL_ESDHC_ADDR CONFIG_SYS_MPC85xx_ESDHC_ADDR 509d1712369SKumar Gala #define CONFIG_SYS_FSL_ESDHC_BROKEN_TIMEOUT 510d1712369SKumar Gala #define CONFIG_CMD_MMC 511d1712369SKumar Gala #define CONFIG_GENERIC_MMC 512d1712369SKumar Gala #define CONFIG_CMD_EXT2 513d1712369SKumar Gala #define CONFIG_CMD_FAT 514d1712369SKumar Gala #define CONFIG_DOS_PARTITION 515d1712369SKumar Gala #endif 516d1712369SKumar Gala 517d1712369SKumar Gala /* 518d1712369SKumar Gala * Miscellaneous configurable options 519d1712369SKumar Gala */ 520d1712369SKumar Gala #define CONFIG_SYS_LONGHELP /* undef to save memory */ 521d1712369SKumar Gala #define CONFIG_CMDLINE_EDITING /* Command-line editing */ 522d1712369SKumar Gala #define CONFIG_AUTO_COMPLETE /* add autocompletion support */ 523d1712369SKumar Gala #define CONFIG_SYS_LOAD_ADDR 0x2000000 /* default load address */ 524d1712369SKumar Gala #define CONFIG_SYS_PROMPT "=> " /* Monitor Command Prompt */ 525d1712369SKumar Gala #ifdef CONFIG_CMD_KGDB 526d1712369SKumar Gala #define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buffer Size */ 527d1712369SKumar Gala #else 528d1712369SKumar Gala #define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */ 529d1712369SKumar Gala #endif 530d1712369SKumar Gala #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */ 531d1712369SKumar Gala #define CONFIG_SYS_MAXARGS 16 /* max number of command args */ 532d1712369SKumar Gala #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE /* Boot Argument Buffer Size */ 533d1712369SKumar Gala #define CONFIG_SYS_HZ 1000 /* decrementer freq: 1ms ticks */ 534d1712369SKumar Gala 535d1712369SKumar Gala /* 536d1712369SKumar Gala * For booting Linux, the board info and command line data 537d1712369SKumar Gala * have to be in the first 16 MB of memory, since this is 538d1712369SKumar Gala * the maximum mapped by the Linux kernel during initialization. 539d1712369SKumar Gala */ 540d1712369SKumar Gala #define CONFIG_SYS_BOOTMAPSZ (16 << 20) /* Initial Memory map for Linux*/ 5417c57f3e8SKumar Gala #define CONFIG_SYS_BOOTM_LEN (16 << 20) /* Increase max gunzip size */ 542d1712369SKumar Gala 543d1712369SKumar Gala #ifdef CONFIG_CMD_KGDB 544d1712369SKumar Gala #define CONFIG_KGDB_BAUDRATE 230400 /* speed to run kgdb serial port */ 545d1712369SKumar Gala #define CONFIG_KGDB_SER_INDEX 2 /* which serial port to use */ 546d1712369SKumar Gala #endif 547d1712369SKumar Gala 548d1712369SKumar Gala /* 549d1712369SKumar Gala * Environment Configuration 550d1712369SKumar Gala */ 551d1712369SKumar Gala #define CONFIG_ROOTPATH /opt/nfsroot 552d1712369SKumar Gala #define CONFIG_BOOTFILE uImage 553d1712369SKumar Gala #define CONFIG_UBOOTPATH u-boot.bin /* U-Boot image on TFTP server */ 554d1712369SKumar Gala 555d1712369SKumar Gala /* default location for tftp and bootm */ 556d1712369SKumar Gala #define CONFIG_LOADADDR 1000000 557d1712369SKumar Gala 558d1712369SKumar Gala #define CONFIG_BOOTDELAY 10 /* -1 disables auto-boot */ 559d1712369SKumar Gala 560d1712369SKumar Gala #define CONFIG_BAUDRATE 115200 561d1712369SKumar Gala 562d1712369SKumar Gala #define CONFIG_EXTRA_ENV_SETTINGS \ 563c2b3b640SEmil Medve "hwconfig=fsl_ddr:ctlr_intlv=cacheline," \ 564c2b3b640SEmil Medve "bank_intlv=cs0_cs1\0" \ 565d1712369SKumar Gala "netdev=eth0\0" \ 566d1712369SKumar Gala "uboot=" MK_STR(CONFIG_UBOOTPATH) "\0" \ 56714d0a02aSWolfgang Denk "ubootaddr=" MK_STR(CONFIG_SYS_TEXT_BASE) "\0" \ 568c2b3b640SEmil Medve "tftpflash=tftpboot $loadaddr $uboot && " \ 569c2b3b640SEmil Medve "protect off $ubootaddr +$filesize && " \ 570c2b3b640SEmil Medve "erase $ubootaddr +$filesize && " \ 571c2b3b640SEmil Medve "cp.b $loadaddr $ubootaddr $filesize && " \ 572c2b3b640SEmil Medve "protect on $ubootaddr +$filesize && " \ 573c2b3b640SEmil Medve "cmp.b $loadaddr $ubootaddr $filesize\0" \ 574d1712369SKumar Gala "consoledev=ttyS0\0" \ 575d1712369SKumar Gala "ramdiskaddr=2000000\0" \ 576d1712369SKumar Gala "ramdiskfile=p4080ds/ramdisk.uboot\0" \ 577d1712369SKumar Gala "fdtaddr=c00000\0" \ 578d1712369SKumar Gala "fdtfile=p4080ds/p4080ds.dtb\0" \ 579d1712369SKumar Gala "bdev=sda3\0" \ 580d1712369SKumar Gala "c=ffe\0" \ 581d1712369SKumar Gala "fman_ucode="MK_STR(CONFIG_SYS_FMAN_FW_ADDR_PHYS)"\0" 582d1712369SKumar Gala 583d1712369SKumar Gala #define CONFIG_HDBOOT \ 584d1712369SKumar Gala "setenv bootargs root=/dev/$bdev rw " \ 585d1712369SKumar Gala "console=$consoledev,$baudrate $othbootargs;" \ 586d1712369SKumar Gala "tftp $loadaddr $bootfile;" \ 587d1712369SKumar Gala "tftp $fdtaddr $fdtfile;" \ 588d1712369SKumar Gala "bootm $loadaddr - $fdtaddr" 589d1712369SKumar Gala 590d1712369SKumar Gala #define CONFIG_NFSBOOTCOMMAND \ 591d1712369SKumar Gala "setenv bootargs root=/dev/nfs rw " \ 592d1712369SKumar Gala "nfsroot=$serverip:$rootpath " \ 593d1712369SKumar Gala "ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname:$netdev:off " \ 594d1712369SKumar Gala "console=$consoledev,$baudrate $othbootargs;" \ 595d1712369SKumar Gala "tftp $loadaddr $bootfile;" \ 596d1712369SKumar Gala "tftp $fdtaddr $fdtfile;" \ 597d1712369SKumar Gala "bootm $loadaddr - $fdtaddr" 598d1712369SKumar Gala 599d1712369SKumar Gala #define CONFIG_RAMBOOTCOMMAND \ 600d1712369SKumar Gala "setenv bootargs root=/dev/ram rw " \ 601d1712369SKumar Gala "console=$consoledev,$baudrate $othbootargs;" \ 602d1712369SKumar Gala "tftp $ramdiskaddr $ramdiskfile;" \ 603d1712369SKumar Gala "tftp $loadaddr $bootfile;" \ 604d1712369SKumar Gala "tftp $fdtaddr $fdtfile;" \ 605d1712369SKumar Gala "bootm $loadaddr $ramdiskaddr $fdtaddr" 606d1712369SKumar Gala 607d1712369SKumar Gala #define CONFIG_BOOTCOMMAND CONFIG_HDBOOT 608d1712369SKumar Gala 609d1712369SKumar Gala #endif /* __CONFIG_H */ 610