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 21c59e1b4dSTimur Tabi /* High Level Configuration Options */ 22c59e1b4dSTimur Tabi #define CONFIG_BOOKE /* BOOKE */ 23c59e1b4dSTimur Tabi #define CONFIG_E500 /* BOOKE e500 family */ 24c59e1b4dSTimur Tabi #define CONFIG_MPC85xx /* MPC8540/60/55/41/48 */ 25c59e1b4dSTimur Tabi #define CONFIG_P1022 26c59e1b4dSTimur Tabi #define CONFIG_P1022DS 27c59e1b4dSTimur Tabi #define CONFIG_MP /* support multiple processors */ 28c59e1b4dSTimur Tabi 292ae18241SWolfgang Denk #ifndef CONFIG_SYS_TEXT_BASE 302ae18241SWolfgang Denk #define CONFIG_SYS_TEXT_BASE 0xeff80000 312ae18241SWolfgang Denk #endif 322ae18241SWolfgang Denk 337a577fdaSKumar Gala #ifndef CONFIG_RESET_VECTOR_ADDRESS 347a577fdaSKumar Gala #define CONFIG_RESET_VECTOR_ADDRESS 0xeffffffc 357a577fdaSKumar Gala #endif 367a577fdaSKumar Gala 37c59e1b4dSTimur Tabi #define CONFIG_FSL_ELBC /* Has Enhanced localbus controller */ 38c59e1b4dSTimur Tabi #define CONFIG_PCI /* Enable PCI/PCIE */ 39c59e1b4dSTimur Tabi #define CONFIG_PCIE1 /* PCIE controler 1 (slot 1) */ 40c59e1b4dSTimur Tabi #define CONFIG_PCIE2 /* PCIE controler 2 (slot 2) */ 41c59e1b4dSTimur Tabi #define CONFIG_PCIE3 /* PCIE controler 3 (ULI bridge) */ 42c59e1b4dSTimur Tabi #define CONFIG_FSL_PCI_INIT /* Use common FSL init code */ 43c59e1b4dSTimur Tabi #define CONFIG_FSL_PCIE_RESET /* need PCIe reset errata */ 44c59e1b4dSTimur Tabi #define CONFIG_SYS_PCI_64BIT /* enable 64-bit PCI resources */ 45c59e1b4dSTimur Tabi 46c59e1b4dSTimur Tabi #define CONFIG_ENABLE_36BIT_PHYS 47babb348cSTimur Tabi 48babb348cSTimur Tabi #ifdef CONFIG_PHYS_64BIT 49c59e1b4dSTimur Tabi #define CONFIG_ADDR_MAP 50c59e1b4dSTimur Tabi #define CONFIG_SYS_NUM_ADDR_MAP 16 /* number of TLB1 entries */ 519899ac19SJiang Yutang #endif 52c59e1b4dSTimur Tabi 53c59e1b4dSTimur Tabi #define CONFIG_FSL_LAW /* Use common FSL init code */ 54c59e1b4dSTimur Tabi 55c59e1b4dSTimur Tabi #define CONFIG_SYS_CLK_FREQ get_board_sys_clk() 56c59e1b4dSTimur Tabi #define CONFIG_DDR_CLK_FREQ get_board_ddr_clk() 57c59e1b4dSTimur Tabi #define CONFIG_ICS307_REFCLK_HZ 33333000 /* ICS307 clock chip ref freq */ 58c59e1b4dSTimur Tabi 59c59e1b4dSTimur Tabi /* 60c59e1b4dSTimur Tabi * These can be toggled for performance analysis, otherwise use default. 61c59e1b4dSTimur Tabi */ 62c59e1b4dSTimur Tabi #define CONFIG_L2_CACHE 63c59e1b4dSTimur Tabi #define CONFIG_BTB 64c59e1b4dSTimur Tabi 65c59e1b4dSTimur Tabi #define CONFIG_SYS_MEMTEST_START 0x00000000 66c59e1b4dSTimur Tabi #define CONFIG_SYS_MEMTEST_END 0x7fffffff 67c59e1b4dSTimur Tabi 68e46fedfeSTimur Tabi #define CONFIG_SYS_CCSRBAR 0xffe00000 69e46fedfeSTimur Tabi #define CONFIG_SYS_CCSRBAR_PHYS_LOW CONFIG_SYS_CCSRBAR 70c59e1b4dSTimur Tabi 71c59e1b4dSTimur Tabi /* DDR Setup */ 72c59e1b4dSTimur Tabi #define CONFIG_DDR_SPD 73c59e1b4dSTimur Tabi #define CONFIG_VERY_BIG_RAM 74c59e1b4dSTimur Tabi #define CONFIG_FSL_DDR3 75c59e1b4dSTimur Tabi 76c59e1b4dSTimur Tabi #ifdef CONFIG_DDR_ECC 77c59e1b4dSTimur Tabi #define CONFIG_ECC_INIT_VIA_DDRCONTROLLER 78c59e1b4dSTimur Tabi #define CONFIG_MEM_INIT_VALUE 0xdeadbeef 79c59e1b4dSTimur Tabi #endif 80c59e1b4dSTimur Tabi 81c59e1b4dSTimur Tabi #define CONFIG_SYS_DDR_SDRAM_BASE 0x00000000 82c59e1b4dSTimur Tabi #define CONFIG_SYS_SDRAM_BASE CONFIG_SYS_DDR_SDRAM_BASE 83c59e1b4dSTimur Tabi 84c59e1b4dSTimur Tabi #define CONFIG_NUM_DDR_CONTROLLERS 1 85c59e1b4dSTimur Tabi #define CONFIG_DIMM_SLOTS_PER_CTLR 1 86c59e1b4dSTimur Tabi #define CONFIG_CHIP_SELECTS_PER_CTRL (2 * CONFIG_DIMM_SLOTS_PER_CTLR) 87c59e1b4dSTimur Tabi 88c59e1b4dSTimur Tabi /* I2C addresses of SPD EEPROMs */ 89c59e1b4dSTimur Tabi #define CONFIG_SYS_SPD_BUS_NUM 1 90c39f44dcSKumar Gala #define SPD_EEPROM_ADDRESS 0x51 /* CTLR 0 DIMM 0 */ 91c59e1b4dSTimur Tabi 92c59e1b4dSTimur Tabi /* 93c59e1b4dSTimur Tabi * Memory map 94c59e1b4dSTimur Tabi * 95c59e1b4dSTimur Tabi * 0x0000_0000 0x7fff_ffff DDR 2G Cacheable 96c59e1b4dSTimur Tabi * 0x8000_0000 0xdfff_ffff PCI Express Mem 1.5G non-cacheable 97c59e1b4dSTimur Tabi * 0xffc0_0000 0xffc2_ffff PCI IO range 192K non-cacheable 98c59e1b4dSTimur Tabi * 99c59e1b4dSTimur Tabi * Localbus cacheable (TBD) 100c59e1b4dSTimur Tabi * 0xXXXX_XXXX 0xXXXX_XXXX SRAM YZ M Cacheable 101c59e1b4dSTimur Tabi * 102c59e1b4dSTimur Tabi * Localbus non-cacheable 103c59e1b4dSTimur Tabi * 0xe000_0000 0xe80f_ffff Promjet/free 128M non-cacheable 104c59e1b4dSTimur Tabi * 0xe800_0000 0xefff_ffff FLASH 128M non-cacheable 105c59e1b4dSTimur Tabi * 0xffdf_0000 0xffdf_7fff PIXIS 32K non-cacheable TLB0 106c59e1b4dSTimur Tabi * 0xffd0_0000 0xffd0_3fff L1 for stack 16K Cacheable TLB0 107c59e1b4dSTimur Tabi * 0xffe0_0000 0xffef_ffff CCSR 1M non-cacheable 108c59e1b4dSTimur Tabi */ 109c59e1b4dSTimur Tabi 110c59e1b4dSTimur Tabi /* 111c59e1b4dSTimur Tabi * Local Bus Definitions 112c59e1b4dSTimur Tabi */ 113c59e1b4dSTimur Tabi #define CONFIG_SYS_FLASH_BASE 0xe0000000 /* start of FLASH 128M */ 1149899ac19SJiang Yutang #ifdef CONFIG_PHYS_64BIT 115c59e1b4dSTimur Tabi #define CONFIG_SYS_FLASH_BASE_PHYS 0xfe0000000ull 1169899ac19SJiang Yutang #else 1179899ac19SJiang Yutang #define CONFIG_SYS_FLASH_BASE_PHYS CONFIG_SYS_FLASH_BASE 1189899ac19SJiang Yutang #endif 119c59e1b4dSTimur Tabi 120c59e1b4dSTimur Tabi #define CONFIG_FLASH_BR_PRELIM \ 121c59e1b4dSTimur Tabi (BR_PHYS_ADDR((CONFIG_SYS_FLASH_BASE_PHYS + 0x8000000)) | BR_PS_16 | BR_V) 122c59e1b4dSTimur Tabi #define CONFIG_FLASH_OR_PRELIM (OR_AM_128MB | 0xff7) 123c59e1b4dSTimur Tabi 124c59e1b4dSTimur Tabi #define CONFIG_SYS_BR0_PRELIM CONFIG_FLASH_BR_PRELIM /* NOR Base Address */ 125c59e1b4dSTimur Tabi #define CONFIG_SYS_OR0_PRELIM CONFIG_FLASH_OR_PRELIM /* NOR Options */ 126c59e1b4dSTimur Tabi 127c59e1b4dSTimur Tabi #define CONFIG_SYS_BR1_PRELIM \ 128c59e1b4dSTimur Tabi (BR_PHYS_ADDR(CONFIG_SYS_FLASH_BASE_PHYS) | BR_PS_16 | BR_V) 129c59e1b4dSTimur Tabi #define CONFIG_SYS_OR1_PRELIM CONFIG_FLASH_OR_PRELIM 130c59e1b4dSTimur Tabi 131c59e1b4dSTimur Tabi #define CONFIG_SYS_FLASH_BANKS_LIST \ 132c59e1b4dSTimur Tabi {CONFIG_SYS_FLASH_BASE_PHYS + 0x8000000, CONFIG_SYS_FLASH_BASE_PHYS} 133c59e1b4dSTimur Tabi #define CONFIG_SYS_FLASH_QUIET_TEST 134c59e1b4dSTimur Tabi #define CONFIG_FLASH_SHOW_PROGRESS 45 /* count down from 45/5: 9..1 */ 135c59e1b4dSTimur Tabi 136c59e1b4dSTimur Tabi #define CONFIG_SYS_MAX_FLASH_BANKS 2 137c59e1b4dSTimur Tabi #define CONFIG_SYS_MAX_FLASH_SECT 1024 138c59e1b4dSTimur Tabi 13914d0a02aSWolfgang Denk #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE /* start of monitor */ 140c59e1b4dSTimur Tabi 141c59e1b4dSTimur Tabi #define CONFIG_FLASH_CFI_DRIVER 142c59e1b4dSTimur Tabi #define CONFIG_SYS_FLASH_CFI 143c59e1b4dSTimur Tabi #define CONFIG_SYS_FLASH_EMPTY_INFO 144c59e1b4dSTimur Tabi 145c59e1b4dSTimur Tabi #define CONFIG_BOARD_EARLY_INIT_F 146c59e1b4dSTimur Tabi #define CONFIG_BOARD_EARLY_INIT_R 147c59e1b4dSTimur Tabi #define CONFIG_MISC_INIT_R 148a2d12f88STimur Tabi #define CONFIG_HWCONFIG 149c59e1b4dSTimur Tabi 150c59e1b4dSTimur Tabi #define CONFIG_FSL_NGPIXIS 151c59e1b4dSTimur Tabi #define PIXIS_BASE 0xffdf0000 /* PIXIS registers */ 1529899ac19SJiang Yutang #ifdef CONFIG_PHYS_64BIT 153c59e1b4dSTimur Tabi #define PIXIS_BASE_PHYS 0xfffdf0000ull 1549899ac19SJiang Yutang #else 1559899ac19SJiang Yutang #define PIXIS_BASE_PHYS PIXIS_BASE 1569899ac19SJiang Yutang #endif 157c59e1b4dSTimur Tabi 158c59e1b4dSTimur Tabi #define CONFIG_SYS_BR2_PRELIM (BR_PHYS_ADDR(PIXIS_BASE_PHYS) | BR_PS_8 | BR_V) 159c59e1b4dSTimur Tabi #define CONFIG_SYS_OR2_PRELIM (OR_AM_32KB | 0x6ff7) 160c59e1b4dSTimur Tabi 161c59e1b4dSTimur Tabi #define PIXIS_LBMAP_SWITCH 7 1622906845aSYork Sun #define PIXIS_LBMAP_MASK 0xF0 163c59e1b4dSTimur Tabi #define PIXIS_LBMAP_ALTBANK 0x20 1649b6e9d1cSJiang Yutang #define PIXIS_ELBC_SPI_MASK 0xc0 1659b6e9d1cSJiang Yutang #define PIXIS_SPI 0x80 166c59e1b4dSTimur Tabi 167c59e1b4dSTimur Tabi #define CONFIG_SYS_INIT_RAM_LOCK 168c59e1b4dSTimur Tabi #define CONFIG_SYS_INIT_RAM_ADDR 0xffd00000 /* Initial L1 address */ 169553f0982SWolfgang Denk #define CONFIG_SYS_INIT_RAM_SIZE 0x00004000 /* Size of used area in RAM */ 170c59e1b4dSTimur Tabi 171c59e1b4dSTimur Tabi #define CONFIG_SYS_GBL_DATA_OFFSET \ 17225ddd1fbSWolfgang Denk (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE) 173c59e1b4dSTimur Tabi #define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET 174c59e1b4dSTimur Tabi 175c59e1b4dSTimur Tabi #define CONFIG_SYS_MONITOR_LEN (512 * 1024) 17607b5edc2SJerry Huang #define CONFIG_SYS_MALLOC_LEN (10 * 1024 * 1024) 177c59e1b4dSTimur Tabi 178c59e1b4dSTimur Tabi /* 179c59e1b4dSTimur Tabi * Serial Port 180c59e1b4dSTimur Tabi */ 181c59e1b4dSTimur Tabi #define CONFIG_CONS_INDEX 1 182c59e1b4dSTimur Tabi #define CONFIG_SYS_NS16550 183c59e1b4dSTimur Tabi #define CONFIG_SYS_NS16550_SERIAL 184c59e1b4dSTimur Tabi #define CONFIG_SYS_NS16550_REG_SIZE 1 185c59e1b4dSTimur Tabi #define CONFIG_SYS_NS16550_CLK get_bus_freq(0) 186c59e1b4dSTimur Tabi 187c59e1b4dSTimur Tabi #define CONFIG_SYS_BAUDRATE_TABLE \ 188c59e1b4dSTimur Tabi {300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200} 189c59e1b4dSTimur Tabi 190c59e1b4dSTimur Tabi #define CONFIG_SYS_NS16550_COM1 (CONFIG_SYS_CCSRBAR+0x4500) 191c59e1b4dSTimur Tabi #define CONFIG_SYS_NS16550_COM2 (CONFIG_SYS_CCSRBAR+0x4600) 192c59e1b4dSTimur Tabi 193c59e1b4dSTimur Tabi /* Use the HUSH parser */ 194c59e1b4dSTimur Tabi #define CONFIG_SYS_HUSH_PARSER 195c59e1b4dSTimur Tabi 196c59e1b4dSTimur Tabi /* Video */ 197ba8e76bdSTimur Tabi #define CONFIG_FSL_DIU_FB 198ba8e76bdSTimur Tabi 199d5e01e49STimur Tabi #ifdef CONFIG_FSL_DIU_FB 200d5e01e49STimur Tabi #define CONFIG_SYS_DIU_ADDR (CONFIG_SYS_CCSRBAR + 0x10000) 201d5e01e49STimur Tabi #define CONFIG_VIDEO 202d5e01e49STimur Tabi #define CONFIG_CMD_BMP 203c59e1b4dSTimur Tabi #define CONFIG_CFB_CONSOLE 2047d3053fbSTimur Tabi #define CONFIG_VIDEO_SW_CURSOR 205c59e1b4dSTimur Tabi #define CONFIG_VGA_AS_SINGLE_DEVICE 206d5e01e49STimur Tabi #define CONFIG_VIDEO_LOGO 207d5e01e49STimur Tabi #define CONFIG_VIDEO_BMP_LOGO 20855b05237STimur Tabi #define CONFIG_CFI_FLASH_USE_WEAK_ACCESSORS 20955b05237STimur Tabi /* 21055b05237STimur Tabi * With CONFIG_CFI_FLASH_USE_WEAK_ACCESSORS, flash I/O is really slow, so 21155b05237STimur Tabi * disable empty flash sector detection, which is I/O-intensive. 21255b05237STimur Tabi */ 21355b05237STimur Tabi #undef CONFIG_SYS_FLASH_EMPTY_INFO 214c59e1b4dSTimur Tabi #endif 215c59e1b4dSTimur Tabi 216ba8e76bdSTimur Tabi #ifndef CONFIG_FSL_DIU_FB 217218a758fSJiang Yutang #define CONFIG_ATI 218218a758fSJiang Yutang #endif 219218a758fSJiang Yutang 220218a758fSJiang Yutang #ifdef CONFIG_ATI 221218a758fSJiang Yutang #define VIDEO_IO_OFFSET CONFIG_SYS_PCIE1_IO_VIRT 222218a758fSJiang Yutang #define CONFIG_VIDEO 223218a758fSJiang Yutang #define CONFIG_BIOSEMU 224218a758fSJiang Yutang #define CONFIG_VIDEO_SW_CURSOR 225218a758fSJiang Yutang #define CONFIG_ATI_RADEON_FB 226218a758fSJiang Yutang #define CONFIG_VIDEO_LOGO 227218a758fSJiang Yutang #define CONFIG_SYS_ISA_IO_BASE_ADDRESS VIDEO_IO_OFFSET 228218a758fSJiang Yutang #define CONFIG_CFB_CONSOLE 229218a758fSJiang Yutang #define CONFIG_VGA_AS_SINGLE_DEVICE 230218a758fSJiang Yutang #endif 231218a758fSJiang Yutang 232c59e1b4dSTimur Tabi /* 233c59e1b4dSTimur Tabi * Pass open firmware flat tree 234c59e1b4dSTimur Tabi */ 235c59e1b4dSTimur Tabi #define CONFIG_OF_LIBFDT 236c59e1b4dSTimur Tabi #define CONFIG_OF_BOARD_SETUP 237c59e1b4dSTimur Tabi #define CONFIG_OF_STDOUT_VIA_ALIAS 238c59e1b4dSTimur Tabi 239c59e1b4dSTimur Tabi /* new uImage format support */ 240c59e1b4dSTimur Tabi #define CONFIG_FIT 241c59e1b4dSTimur Tabi #define CONFIG_FIT_VERBOSE 242c59e1b4dSTimur Tabi 243c59e1b4dSTimur Tabi /* I2C */ 244c59e1b4dSTimur Tabi #define CONFIG_FSL_I2C 245c59e1b4dSTimur Tabi #define CONFIG_HARD_I2C 246c59e1b4dSTimur Tabi #define CONFIG_I2C_MULTI_BUS 247c59e1b4dSTimur Tabi #define CONFIG_SYS_I2C_SPEED 400000 248c59e1b4dSTimur Tabi #define CONFIG_SYS_I2C_EEPROM_ADDR 0x57 249c59e1b4dSTimur Tabi #define CONFIG_SYS_I2C_SLAVE 0x7F 250c59e1b4dSTimur Tabi #define CONFIG_SYS_I2C_NOPROBES {{0, 0x29}} 251c59e1b4dSTimur Tabi #define CONFIG_SYS_I2C_OFFSET 0x3000 252c59e1b4dSTimur Tabi #define CONFIG_SYS_I2C2_OFFSET 0x3100 253c59e1b4dSTimur Tabi 254c59e1b4dSTimur Tabi /* 255c59e1b4dSTimur Tabi * I2C2 EEPROM 256c59e1b4dSTimur Tabi */ 257c59e1b4dSTimur Tabi #define CONFIG_ID_EEPROM 258c59e1b4dSTimur Tabi #define CONFIG_SYS_I2C_EEPROM_NXID 259c59e1b4dSTimur Tabi #define CONFIG_SYS_I2C_EEPROM_ADDR 0x57 260c59e1b4dSTimur Tabi #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1 261c59e1b4dSTimur Tabi #define CONFIG_SYS_EEPROM_BUS_NUM 1 262c59e1b4dSTimur Tabi 263c59e1b4dSTimur Tabi /* 2649b6e9d1cSJiang Yutang * eSPI - Enhanced SPI 2659b6e9d1cSJiang Yutang */ 2669b6e9d1cSJiang Yutang #define CONFIG_SPI_FLASH 2679b6e9d1cSJiang Yutang #define CONFIG_SPI_FLASH_SPANSION 2689b6e9d1cSJiang Yutang 2699b6e9d1cSJiang Yutang #define CONFIG_HARD_SPI 2709b6e9d1cSJiang Yutang #define CONFIG_FSL_ESPI 2719b6e9d1cSJiang Yutang 2729b6e9d1cSJiang Yutang #define CONFIG_CMD_SF 2739b6e9d1cSJiang Yutang #define CONFIG_SF_DEFAULT_SPEED 10000000 2749b6e9d1cSJiang Yutang #define CONFIG_SF_DEFAULT_MODE 0 2759b6e9d1cSJiang Yutang 2769b6e9d1cSJiang Yutang /* 277c59e1b4dSTimur Tabi * General PCI 278c59e1b4dSTimur Tabi * Memory space is mapped 1-1, but I/O space must start from 0. 279c59e1b4dSTimur Tabi */ 280c59e1b4dSTimur Tabi 281c59e1b4dSTimur Tabi /* controller 1, Slot 2, tgtid 1, Base address a000 */ 282c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE1_MEM_VIRT 0xc0000000 2839899ac19SJiang Yutang #ifdef CONFIG_PHYS_64BIT 284c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE1_MEM_BUS 0xe0000000 285c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE1_MEM_PHYS 0xc40000000ull 2869899ac19SJiang Yutang #else 2879899ac19SJiang Yutang #define CONFIG_SYS_PCIE1_MEM_BUS 0xc0000000 2889899ac19SJiang Yutang #define CONFIG_SYS_PCIE1_MEM_PHYS 0xc0000000 2899899ac19SJiang Yutang #endif 290c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE1_MEM_SIZE 0x20000000 /* 512M */ 291c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE1_IO_VIRT 0xffc20000 292c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE1_IO_BUS 0x00000000 2939899ac19SJiang Yutang #ifdef CONFIG_PHYS_64BIT 294c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE1_IO_PHYS 0xfffc20000ull 2959899ac19SJiang Yutang #else 2969899ac19SJiang Yutang #define CONFIG_SYS_PCIE1_IO_PHYS 0xffc20000 2979899ac19SJiang Yutang #endif 298c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE1_IO_SIZE 0x00010000 /* 64k */ 299c59e1b4dSTimur Tabi 300c59e1b4dSTimur Tabi /* controller 2, direct to uli, tgtid 2, Base address 9000 */ 301c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE2_MEM_VIRT 0xa0000000 3029899ac19SJiang Yutang #ifdef CONFIG_PHYS_64BIT 303c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE2_MEM_BUS 0xe0000000 304c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE2_MEM_PHYS 0xc20000000ull 3059899ac19SJiang Yutang #else 3069899ac19SJiang Yutang #define CONFIG_SYS_PCIE2_MEM_BUS 0xa0000000 3079899ac19SJiang Yutang #define CONFIG_SYS_PCIE2_MEM_PHYS 0xa0000000 3089899ac19SJiang Yutang #endif 309c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE2_MEM_SIZE 0x20000000 /* 512M */ 310c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE2_IO_VIRT 0xffc10000 311c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE2_IO_BUS 0x00000000 3129899ac19SJiang Yutang #ifdef CONFIG_PHYS_64BIT 313c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE2_IO_PHYS 0xfffc10000ull 3149899ac19SJiang Yutang #else 3159899ac19SJiang Yutang #define CONFIG_SYS_PCIE2_IO_PHYS 0xffc10000 3169899ac19SJiang Yutang #endif 317c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE2_IO_SIZE 0x00010000 /* 64k */ 318c59e1b4dSTimur Tabi 319c59e1b4dSTimur Tabi /* controller 3, Slot 1, tgtid 3, Base address b000 */ 320c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE3_MEM_VIRT 0x80000000 3219899ac19SJiang Yutang #ifdef CONFIG_PHYS_64BIT 322c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE3_MEM_BUS 0xe0000000 323c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE3_MEM_PHYS 0xc00000000ull 3249899ac19SJiang Yutang #else 3259899ac19SJiang Yutang #define CONFIG_SYS_PCIE3_MEM_BUS 0x80000000 3269899ac19SJiang Yutang #define CONFIG_SYS_PCIE3_MEM_PHYS 0x80000000 3279899ac19SJiang Yutang #endif 328c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE3_MEM_SIZE 0x20000000 /* 512M */ 329c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE3_IO_VIRT 0xffc00000 330c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE3_IO_BUS 0x00000000 3319899ac19SJiang Yutang #ifdef CONFIG_PHYS_64BIT 332c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE3_IO_PHYS 0xfffc00000ull 3339899ac19SJiang Yutang #else 3349899ac19SJiang Yutang #define CONFIG_SYS_PCIE3_IO_PHYS 0xffc00000 3359899ac19SJiang Yutang #endif 336c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE3_IO_SIZE 0x00010000 /* 64k */ 337c59e1b4dSTimur Tabi 338c59e1b4dSTimur Tabi #ifdef CONFIG_PCI 339c59e1b4dSTimur Tabi #define CONFIG_PCI_PNP /* do pci plug-and-play */ 340c59e1b4dSTimur Tabi #define CONFIG_PCI_SCAN_SHOW /* show pci devices on startup */ 34116855ec1SKumar Gala #define CONFIG_E1000 /* Define e1000 pci Ethernet card */ 342c59e1b4dSTimur Tabi #endif 343c59e1b4dSTimur Tabi 344c59e1b4dSTimur Tabi /* SATA */ 345c59e1b4dSTimur Tabi #define CONFIG_LIBATA 346c59e1b4dSTimur Tabi #define CONFIG_FSL_SATA 347c59e1b4dSTimur Tabi 348c59e1b4dSTimur Tabi #define CONFIG_SYS_SATA_MAX_DEVICE 2 349c59e1b4dSTimur Tabi #define CONFIG_SATA1 350c59e1b4dSTimur Tabi #define CONFIG_SYS_SATA1 CONFIG_SYS_MPC85xx_SATA1_ADDR 351c59e1b4dSTimur Tabi #define CONFIG_SYS_SATA1_FLAGS FLAGS_DMA 352c59e1b4dSTimur Tabi #define CONFIG_SATA2 353c59e1b4dSTimur Tabi #define CONFIG_SYS_SATA2 CONFIG_SYS_MPC85xx_SATA2_ADDR 354c59e1b4dSTimur Tabi #define CONFIG_SYS_SATA2_FLAGS FLAGS_DMA 355c59e1b4dSTimur Tabi 356c59e1b4dSTimur Tabi #ifdef CONFIG_FSL_SATA 357c59e1b4dSTimur Tabi #define CONFIG_LBA48 358c59e1b4dSTimur Tabi #define CONFIG_CMD_SATA 359c59e1b4dSTimur Tabi #define CONFIG_DOS_PARTITION 360c59e1b4dSTimur Tabi #define CONFIG_CMD_EXT2 361c59e1b4dSTimur Tabi #endif 362c59e1b4dSTimur Tabi 363c59e1b4dSTimur Tabi #define CONFIG_MMC 364c59e1b4dSTimur Tabi #ifdef CONFIG_MMC 365c59e1b4dSTimur Tabi #define CONFIG_CMD_MMC 366c59e1b4dSTimur Tabi #define CONFIG_FSL_ESDHC 367c59e1b4dSTimur Tabi #define CONFIG_GENERIC_MMC 368c59e1b4dSTimur Tabi #define CONFIG_SYS_FSL_ESDHC_ADDR CONFIG_SYS_MPC85xx_ESDHC_ADDR 369c59e1b4dSTimur Tabi #endif 370c59e1b4dSTimur Tabi 371c59e1b4dSTimur Tabi #if defined(CONFIG_MMC) || defined(CONFIG_USB_EHCI) 372c59e1b4dSTimur Tabi #define CONFIG_CMD_EXT2 373c59e1b4dSTimur Tabi #define CONFIG_CMD_FAT 374c59e1b4dSTimur Tabi #define CONFIG_DOS_PARTITION 375c59e1b4dSTimur Tabi #endif 376c59e1b4dSTimur Tabi 377c59e1b4dSTimur Tabi #define CONFIG_TSEC_ENET 378c59e1b4dSTimur Tabi #ifdef CONFIG_TSEC_ENET 379c59e1b4dSTimur Tabi 380c59e1b4dSTimur Tabi #define CONFIG_TSECV2 381c59e1b4dSTimur Tabi 382c59e1b4dSTimur Tabi #define CONFIG_MII /* MII PHY management */ 383c59e1b4dSTimur Tabi #define CONFIG_TSEC1 1 384c59e1b4dSTimur Tabi #define CONFIG_TSEC1_NAME "eTSEC1" 385c59e1b4dSTimur Tabi #define CONFIG_TSEC2 1 386c59e1b4dSTimur Tabi #define CONFIG_TSEC2_NAME "eTSEC2" 387c59e1b4dSTimur Tabi 388c59e1b4dSTimur Tabi #define TSEC1_PHY_ADDR 1 389c59e1b4dSTimur Tabi #define TSEC2_PHY_ADDR 2 390c59e1b4dSTimur Tabi 391c59e1b4dSTimur Tabi #define TSEC1_FLAGS (TSEC_GIGABIT | TSEC_REDUCED) 392c59e1b4dSTimur Tabi #define TSEC2_FLAGS (TSEC_GIGABIT | TSEC_REDUCED) 393c59e1b4dSTimur Tabi 394c59e1b4dSTimur Tabi #define TSEC1_PHYIDX 0 395c59e1b4dSTimur Tabi #define TSEC2_PHYIDX 0 396c59e1b4dSTimur Tabi 397c59e1b4dSTimur Tabi #define CONFIG_ETHPRIME "eTSEC1" 398c59e1b4dSTimur Tabi 399c59e1b4dSTimur Tabi #define CONFIG_PHY_GIGE /* Include GbE speed/duplex detection */ 400c59e1b4dSTimur Tabi #endif 401c59e1b4dSTimur Tabi 402c59e1b4dSTimur Tabi /* 403c59e1b4dSTimur Tabi * Environment 404c59e1b4dSTimur Tabi */ 405c59e1b4dSTimur Tabi #define CONFIG_ENV_IS_IN_FLASH 406c59e1b4dSTimur Tabi #define CONFIG_ENV_OVERWRITE 407c59e1b4dSTimur Tabi #define CONFIG_ENV_ADDR (CONFIG_SYS_MONITOR_BASE - CONFIG_ENV_SECT_SIZE) 408c59e1b4dSTimur Tabi #define CONFIG_ENV_SIZE 0x2000 409c59e1b4dSTimur Tabi #define CONFIG_ENV_SECT_SIZE 0x20000 410c59e1b4dSTimur Tabi 411c59e1b4dSTimur Tabi #define CONFIG_LOADS_ECHO 412c59e1b4dSTimur Tabi #define CONFIG_SYS_LOADS_BAUD_CHANGE 413c59e1b4dSTimur Tabi 414c59e1b4dSTimur Tabi /* 415c59e1b4dSTimur Tabi * Command line configuration. 416c59e1b4dSTimur Tabi */ 417c59e1b4dSTimur Tabi #include <config_cmd_default.h> 418c59e1b4dSTimur Tabi 41979ee3448SKumar Gala #define CONFIG_CMD_ELF 42079ee3448SKumar Gala #define CONFIG_CMD_ERRATA 421c59e1b4dSTimur Tabi #define CONFIG_CMD_IRQ 422c59e1b4dSTimur Tabi #define CONFIG_CMD_I2C 423c59e1b4dSTimur Tabi #define CONFIG_CMD_MII 42479ee3448SKumar Gala #define CONFIG_CMD_PING 425c59e1b4dSTimur Tabi #define CONFIG_CMD_SETEXPR 426b8339e2bSMatthew McClintock #define CONFIG_CMD_REGINFO 427c59e1b4dSTimur Tabi 428c59e1b4dSTimur Tabi #ifdef CONFIG_PCI 429c59e1b4dSTimur Tabi #define CONFIG_CMD_PCI 430c59e1b4dSTimur Tabi #define CONFIG_CMD_NET 431c59e1b4dSTimur Tabi #endif 432c59e1b4dSTimur Tabi 433c59e1b4dSTimur Tabi /* 434c59e1b4dSTimur Tabi * USB 435c59e1b4dSTimur Tabi */ 4363d7506faSramneek mehresh #define CONFIG_HAS_FSL_DR_USB 4373d7506faSramneek mehresh #ifdef CONFIG_HAS_FSL_DR_USB 438c59e1b4dSTimur Tabi #define CONFIG_USB_EHCI 439c59e1b4dSTimur Tabi 440c59e1b4dSTimur Tabi #ifdef CONFIG_USB_EHCI 441c59e1b4dSTimur Tabi #define CONFIG_CMD_USB 442c59e1b4dSTimur Tabi #define CONFIG_EHCI_HCD_INIT_AFTER_RESET 443c59e1b4dSTimur Tabi #define CONFIG_USB_EHCI_FSL 444c59e1b4dSTimur Tabi #define CONFIG_USB_STORAGE 445c59e1b4dSTimur Tabi #define CONFIG_CMD_FAT 446c59e1b4dSTimur Tabi #endif 4473d7506faSramneek mehresh #endif 448c59e1b4dSTimur Tabi 449c59e1b4dSTimur Tabi /* 450c59e1b4dSTimur Tabi * Miscellaneous configurable options 451c59e1b4dSTimur Tabi */ 452c59e1b4dSTimur Tabi #define CONFIG_SYS_LONGHELP /* undef to save memory */ 453c59e1b4dSTimur Tabi #define CONFIG_CMDLINE_EDITING /* Command-line editing */ 4545be58f5fSKim Phillips #define CONFIG_AUTO_COMPLETE /* add autocompletion support */ 455c59e1b4dSTimur Tabi #define CONFIG_SYS_LOAD_ADDR 0x2000000 /* default load address */ 456c59e1b4dSTimur Tabi #define CONFIG_SYS_PROMPT "=> " /* Monitor Command Prompt */ 457c59e1b4dSTimur Tabi #ifdef CONFIG_CMD_KGDB 458c59e1b4dSTimur Tabi #define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buffer Size */ 459c59e1b4dSTimur Tabi #else 460c59e1b4dSTimur Tabi #define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */ 461c59e1b4dSTimur Tabi #endif 462c59e1b4dSTimur Tabi /* Print Buffer Size */ 463c59e1b4dSTimur Tabi #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16) 464c59e1b4dSTimur Tabi #define CONFIG_SYS_MAXARGS 16 465c59e1b4dSTimur Tabi #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE 466c59e1b4dSTimur Tabi #define CONFIG_SYS_HZ 1000 467c59e1b4dSTimur Tabi 468c59e1b4dSTimur Tabi /* 469c59e1b4dSTimur Tabi * For booting Linux, the board info and command line data 470a832ac41SKumar Gala * have to be in the first 64 MB of memory, since this is 471c59e1b4dSTimur Tabi * the maximum mapped by the Linux kernel during initialization. 472c59e1b4dSTimur Tabi */ 473a832ac41SKumar Gala #define CONFIG_SYS_BOOTMAPSZ (64 << 20) /* Initial Memory map for Linux*/ 474a832ac41SKumar Gala #define CONFIG_SYS_BOOTM_LEN (64 << 20) /* Increase max gunzip size */ 475c59e1b4dSTimur Tabi 476c59e1b4dSTimur Tabi #ifdef CONFIG_CMD_KGDB 477c59e1b4dSTimur Tabi #define CONFIG_KGDB_BAUDRATE 230400 /* speed to run kgdb serial port */ 478c59e1b4dSTimur Tabi #define CONFIG_KGDB_SER_INDEX 2 /* which serial port to use */ 479c59e1b4dSTimur Tabi #endif 480c59e1b4dSTimur Tabi 481c59e1b4dSTimur Tabi /* 482c59e1b4dSTimur Tabi * Environment Configuration 483c59e1b4dSTimur Tabi */ 484c59e1b4dSTimur Tabi 485c59e1b4dSTimur Tabi #define CONFIG_HOSTNAME p1022ds 4868b3637c6SJoe Hershberger #define CONFIG_ROOTPATH "/opt/nfsroot" 487b3f44c21SJoe Hershberger #define CONFIG_BOOTFILE "uImage" 488c59e1b4dSTimur Tabi #define CONFIG_UBOOTPATH u-boot.bin /* U-Boot image on TFTP server */ 489c59e1b4dSTimur Tabi 490c59e1b4dSTimur Tabi #define CONFIG_LOADADDR 1000000 491c59e1b4dSTimur Tabi 492c59e1b4dSTimur Tabi #define CONFIG_BOOTDELAY 10 /* -1 disables auto-boot */ 493c59e1b4dSTimur Tabi 494c59e1b4dSTimur Tabi #define CONFIG_BAUDRATE 115200 495c59e1b4dSTimur Tabi 496c59e1b4dSTimur Tabi #define CONFIG_EXTRA_ENV_SETTINGS \ 497c59e1b4dSTimur Tabi "netdev=eth0\0" \ 498c59e1b4dSTimur Tabi "uboot=" MK_STR(CONFIG_UBOOTPATH) "\0" \ 499*84e34b65STimur Tabi "ubootaddr=" MK_STR(CONFIG_SYS_TEXT_BASE) "\0" \ 500*84e34b65STimur Tabi "tftpflash=tftpboot $loadaddr $uboot && " \ 501*84e34b65STimur Tabi "protect off $ubootaddr +$filesize && " \ 502*84e34b65STimur Tabi "erase $ubootaddr +$filesize && " \ 503*84e34b65STimur Tabi "cp.b $loadaddr $ubootaddr $filesize && " \ 504*84e34b65STimur Tabi "protect on $ubootaddr +$filesize && " \ 505*84e34b65STimur Tabi "cmp.b $loadaddr $ubootaddr $filesize\0" \ 506c59e1b4dSTimur Tabi "consoledev=ttyS0\0" \ 507c59e1b4dSTimur Tabi "ramdiskaddr=2000000\0" \ 508*84e34b65STimur Tabi "ramdiskfile=rootfs.ext2.gz.uboot\0" \ 509c59e1b4dSTimur Tabi "fdtaddr=c00000\0" \ 510c59e1b4dSTimur Tabi "fdtfile=p1022ds.dtb\0" \ 511c59e1b4dSTimur Tabi "bdev=sda3\0" \ 512ba8e76bdSTimur Tabi "hwconfig=esdhc;audclk:12\0" 513c59e1b4dSTimur Tabi 514c59e1b4dSTimur Tabi #define CONFIG_HDBOOT \ 515c59e1b4dSTimur Tabi "setenv bootargs root=/dev/$bdev rw " \ 516*84e34b65STimur Tabi "console=$consoledev,$baudrate $othbootargs $videobootargs;" \ 517c59e1b4dSTimur Tabi "tftp $loadaddr $bootfile;" \ 518c59e1b4dSTimur Tabi "tftp $fdtaddr $fdtfile;" \ 519c59e1b4dSTimur Tabi "bootm $loadaddr - $fdtaddr" 520c59e1b4dSTimur Tabi 521c59e1b4dSTimur Tabi #define CONFIG_NFSBOOTCOMMAND \ 522c59e1b4dSTimur Tabi "setenv bootargs root=/dev/nfs rw " \ 523c59e1b4dSTimur Tabi "nfsroot=$serverip:$rootpath " \ 524c59e1b4dSTimur Tabi "ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname:$netdev:off " \ 525*84e34b65STimur Tabi "console=$consoledev,$baudrate $othbootargs $videobootargs;" \ 526c59e1b4dSTimur Tabi "tftp $loadaddr $bootfile;" \ 527c59e1b4dSTimur Tabi "tftp $fdtaddr $fdtfile;" \ 528c59e1b4dSTimur Tabi "bootm $loadaddr - $fdtaddr" 529c59e1b4dSTimur Tabi 530c59e1b4dSTimur Tabi #define CONFIG_RAMBOOTCOMMAND \ 531c59e1b4dSTimur Tabi "setenv bootargs root=/dev/ram rw " \ 532*84e34b65STimur Tabi "console=$consoledev,$baudrate $othbootargs $videobootargs;" \ 533c59e1b4dSTimur Tabi "tftp $ramdiskaddr $ramdiskfile;" \ 534c59e1b4dSTimur Tabi "tftp $loadaddr $bootfile;" \ 535c59e1b4dSTimur Tabi "tftp $fdtaddr $fdtfile;" \ 536c59e1b4dSTimur Tabi "bootm $loadaddr $ramdiskaddr $fdtaddr" 537c59e1b4dSTimur Tabi 538c59e1b4dSTimur Tabi #define CONFIG_BOOTCOMMAND CONFIG_RAMBOOTCOMMAND 539c59e1b4dSTimur Tabi 540c59e1b4dSTimur Tabi #endif 541