1c59e1b4dSTimur Tabi /* 2c59e1b4dSTimur Tabi * Copyright 2010 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 17c59e1b4dSTimur Tabi /* High Level Configuration Options */ 18c59e1b4dSTimur Tabi #define CONFIG_BOOKE /* BOOKE */ 19c59e1b4dSTimur Tabi #define CONFIG_E500 /* BOOKE e500 family */ 20c59e1b4dSTimur Tabi #define CONFIG_MPC85xx /* MPC8540/60/55/41/48 */ 21c59e1b4dSTimur Tabi #define CONFIG_P1022 22c59e1b4dSTimur Tabi #define CONFIG_P1022DS 23c59e1b4dSTimur Tabi #define CONFIG_MP /* support multiple processors */ 24c59e1b4dSTimur Tabi 25c59e1b4dSTimur Tabi #define CONFIG_FSL_ELBC /* Has Enhanced localbus controller */ 26c59e1b4dSTimur Tabi #define CONFIG_PCI /* Enable PCI/PCIE */ 27c59e1b4dSTimur Tabi #define CONFIG_PCIE1 /* PCIE controler 1 (slot 1) */ 28c59e1b4dSTimur Tabi #define CONFIG_PCIE2 /* PCIE controler 2 (slot 2) */ 29c59e1b4dSTimur Tabi #define CONFIG_PCIE3 /* PCIE controler 3 (ULI bridge) */ 30c59e1b4dSTimur Tabi #define CONFIG_FSL_PCI_INIT /* Use common FSL init code */ 31c59e1b4dSTimur Tabi #define CONFIG_FSL_PCIE_RESET /* need PCIe reset errata */ 32c59e1b4dSTimur Tabi #define CONFIG_SYS_PCI_64BIT /* enable 64-bit PCI resources */ 33c59e1b4dSTimur Tabi 34c59e1b4dSTimur Tabi #define CONFIG_PHYS_64BIT 35c59e1b4dSTimur Tabi #define CONFIG_ENABLE_36BIT_PHYS 36c59e1b4dSTimur Tabi #define CONFIG_ADDR_MAP 37c59e1b4dSTimur Tabi #define CONFIG_SYS_NUM_ADDR_MAP 16 /* number of TLB1 entries */ 38c59e1b4dSTimur Tabi 39c59e1b4dSTimur Tabi #define CONFIG_FSL_LAW /* Use common FSL init code */ 40c59e1b4dSTimur Tabi 41c59e1b4dSTimur Tabi #define CONFIG_SYS_CLK_FREQ get_board_sys_clk() 42c59e1b4dSTimur Tabi #define CONFIG_DDR_CLK_FREQ get_board_ddr_clk() 43c59e1b4dSTimur Tabi #define CONFIG_ICS307_REFCLK_HZ 33333000 /* ICS307 clock chip ref freq */ 44c59e1b4dSTimur Tabi 45c59e1b4dSTimur Tabi /* 46c59e1b4dSTimur Tabi * These can be toggled for performance analysis, otherwise use default. 47c59e1b4dSTimur Tabi */ 48c59e1b4dSTimur Tabi #define CONFIG_L2_CACHE 49c59e1b4dSTimur Tabi #define CONFIG_BTB 50c59e1b4dSTimur Tabi 51c59e1b4dSTimur Tabi #define CONFIG_SYS_MEMTEST_START 0x00000000 52c59e1b4dSTimur Tabi #define CONFIG_SYS_MEMTEST_END 0x7fffffff 53c59e1b4dSTimur Tabi 54c59e1b4dSTimur Tabi /* 55c59e1b4dSTimur Tabi * Base addresses -- Note these are effective addresses where the 56c59e1b4dSTimur Tabi * actual resources get mapped (not physical addresses) 57c59e1b4dSTimur Tabi */ 58c59e1b4dSTimur Tabi #define CONFIG_SYS_CCSRBAR_DEFAULT 0xff700000 /* CCSRBAR Default */ 59c59e1b4dSTimur Tabi #define CONFIG_SYS_CCSRBAR 0xffe00000 /* relocated CCSRBAR */ 60c59e1b4dSTimur Tabi #define CONFIG_SYS_CCSRBAR_PHYS 0xfffe00000ull 61c59e1b4dSTimur Tabi #define CONFIG_SYS_IMMR CONFIG_SYS_CCSRBAR 62c59e1b4dSTimur Tabi 63c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE1_ADDR (CONFIG_SYS_CCSRBAR + 0x9000) /* pci0 */ 64c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE2_ADDR (CONFIG_SYS_CCSRBAR + 0xa000) /* pci1 */ 65c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE3_ADDR (CONFIG_SYS_CCSRBAR + 0xb000) /* pci2 */ 66c59e1b4dSTimur Tabi 67c59e1b4dSTimur Tabi /* DDR Setup */ 68c59e1b4dSTimur Tabi #define CONFIG_DDR_SPD 69c59e1b4dSTimur Tabi #define CONFIG_VERY_BIG_RAM 70c59e1b4dSTimur Tabi #define CONFIG_FSL_DDR3 71c59e1b4dSTimur Tabi 72c59e1b4dSTimur Tabi #ifdef CONFIG_DDR_ECC 73c59e1b4dSTimur Tabi #define CONFIG_ECC_INIT_VIA_DDRCONTROLLER 74c59e1b4dSTimur Tabi #define CONFIG_MEM_INIT_VALUE 0xdeadbeef 75c59e1b4dSTimur Tabi #endif 76c59e1b4dSTimur Tabi 77c59e1b4dSTimur Tabi #define CONFIG_SYS_DDR_SDRAM_BASE 0x00000000 78c59e1b4dSTimur Tabi #define CONFIG_SYS_SDRAM_BASE CONFIG_SYS_DDR_SDRAM_BASE 79c59e1b4dSTimur Tabi 80c59e1b4dSTimur Tabi #define CONFIG_NUM_DDR_CONTROLLERS 1 81c59e1b4dSTimur Tabi #define CONFIG_DIMM_SLOTS_PER_CTLR 1 82c59e1b4dSTimur Tabi #define CONFIG_CHIP_SELECTS_PER_CTRL (2 * CONFIG_DIMM_SLOTS_PER_CTLR) 83c59e1b4dSTimur Tabi 84c59e1b4dSTimur Tabi /* I2C addresses of SPD EEPROMs */ 85c59e1b4dSTimur Tabi #define CONFIG_SYS_SPD_BUS_NUM 1 86c59e1b4dSTimur Tabi #define SPD_EEPROM_ADDRESS1 0x51 /* CTLR 0 DIMM 0 */ 87c59e1b4dSTimur Tabi 88c59e1b4dSTimur Tabi /* 89c59e1b4dSTimur Tabi * Memory map 90c59e1b4dSTimur Tabi * 91c59e1b4dSTimur Tabi * 0x0000_0000 0x7fff_ffff DDR 2G Cacheable 92c59e1b4dSTimur Tabi * 0x8000_0000 0xdfff_ffff PCI Express Mem 1.5G non-cacheable 93c59e1b4dSTimur Tabi * 0xffc0_0000 0xffc2_ffff PCI IO range 192K non-cacheable 94c59e1b4dSTimur Tabi * 95c59e1b4dSTimur Tabi * Localbus cacheable (TBD) 96c59e1b4dSTimur Tabi * 0xXXXX_XXXX 0xXXXX_XXXX SRAM YZ M Cacheable 97c59e1b4dSTimur Tabi * 98c59e1b4dSTimur Tabi * Localbus non-cacheable 99c59e1b4dSTimur Tabi * 0xe000_0000 0xe80f_ffff Promjet/free 128M non-cacheable 100c59e1b4dSTimur Tabi * 0xe800_0000 0xefff_ffff FLASH 128M non-cacheable 101c59e1b4dSTimur Tabi * 0xffdf_0000 0xffdf_7fff PIXIS 32K non-cacheable TLB0 102c59e1b4dSTimur Tabi * 0xffd0_0000 0xffd0_3fff L1 for stack 16K Cacheable TLB0 103c59e1b4dSTimur Tabi * 0xffe0_0000 0xffef_ffff CCSR 1M non-cacheable 104c59e1b4dSTimur Tabi */ 105c59e1b4dSTimur Tabi 106c59e1b4dSTimur Tabi /* 107c59e1b4dSTimur Tabi * Local Bus Definitions 108c59e1b4dSTimur Tabi */ 109c59e1b4dSTimur Tabi #define CONFIG_SYS_FLASH_BASE 0xe0000000 /* start of FLASH 128M */ 110c59e1b4dSTimur Tabi #define CONFIG_SYS_FLASH_BASE_PHYS 0xfe0000000ull 111c59e1b4dSTimur Tabi 112c59e1b4dSTimur Tabi #define CONFIG_FLASH_BR_PRELIM \ 113c59e1b4dSTimur Tabi (BR_PHYS_ADDR((CONFIG_SYS_FLASH_BASE_PHYS + 0x8000000)) | BR_PS_16 | BR_V) 114c59e1b4dSTimur Tabi #define CONFIG_FLASH_OR_PRELIM (OR_AM_128MB | 0xff7) 115c59e1b4dSTimur Tabi 116c59e1b4dSTimur Tabi #define CONFIG_SYS_BR0_PRELIM CONFIG_FLASH_BR_PRELIM /* NOR Base Address */ 117c59e1b4dSTimur Tabi #define CONFIG_SYS_OR0_PRELIM CONFIG_FLASH_OR_PRELIM /* NOR Options */ 118c59e1b4dSTimur Tabi 119c59e1b4dSTimur Tabi #define CONFIG_SYS_BR1_PRELIM \ 120c59e1b4dSTimur Tabi (BR_PHYS_ADDR(CONFIG_SYS_FLASH_BASE_PHYS) | BR_PS_16 | BR_V) 121c59e1b4dSTimur Tabi #define CONFIG_SYS_OR1_PRELIM CONFIG_FLASH_OR_PRELIM 122c59e1b4dSTimur Tabi 123c59e1b4dSTimur Tabi #define CONFIG_SYS_FLASH_BANKS_LIST \ 124c59e1b4dSTimur Tabi {CONFIG_SYS_FLASH_BASE_PHYS + 0x8000000, CONFIG_SYS_FLASH_BASE_PHYS} 125c59e1b4dSTimur Tabi #define CONFIG_SYS_FLASH_QUIET_TEST 126c59e1b4dSTimur Tabi #define CONFIG_FLASH_SHOW_PROGRESS 45 /* count down from 45/5: 9..1 */ 127c59e1b4dSTimur Tabi 128c59e1b4dSTimur Tabi #define CONFIG_SYS_MAX_FLASH_BANKS 2 129c59e1b4dSTimur Tabi #define CONFIG_SYS_MAX_FLASH_SECT 1024 130c59e1b4dSTimur Tabi 131c59e1b4dSTimur Tabi #define CONFIG_SYS_MONITOR_BASE TEXT_BASE /* start of monitor */ 132c59e1b4dSTimur Tabi 133c59e1b4dSTimur Tabi #define CONFIG_FLASH_CFI_DRIVER 134c59e1b4dSTimur Tabi #define CONFIG_SYS_FLASH_CFI 135c59e1b4dSTimur Tabi #define CONFIG_SYS_FLASH_EMPTY_INFO 136c59e1b4dSTimur Tabi 137c59e1b4dSTimur Tabi #define CONFIG_BOARD_EARLY_INIT_F 138c59e1b4dSTimur Tabi #define CONFIG_BOARD_EARLY_INIT_R 139c59e1b4dSTimur Tabi #define CONFIG_MISC_INIT_R 140c59e1b4dSTimur Tabi 141c59e1b4dSTimur Tabi #define CONFIG_FSL_NGPIXIS 142c59e1b4dSTimur Tabi #define PIXIS_BASE 0xffdf0000 /* PIXIS registers */ 143c59e1b4dSTimur Tabi #define PIXIS_BASE_PHYS 0xfffdf0000ull 144c59e1b4dSTimur Tabi 145c59e1b4dSTimur Tabi #define CONFIG_SYS_BR2_PRELIM (BR_PHYS_ADDR(PIXIS_BASE_PHYS) | BR_PS_8 | BR_V) 146c59e1b4dSTimur Tabi #define CONFIG_SYS_OR2_PRELIM (OR_AM_32KB | 0x6ff7) 147c59e1b4dSTimur Tabi 148c59e1b4dSTimur Tabi #define PIXIS_LBMAP_SWITCH 7 149c59e1b4dSTimur Tabi #define PIXIS_LBMAP_MASK 0xE0 150c59e1b4dSTimur Tabi #define PIXIS_LBMAP_ALTBANK 0x20 151c59e1b4dSTimur Tabi 152c59e1b4dSTimur Tabi #define CONFIG_SYS_INIT_RAM_LOCK 153c59e1b4dSTimur Tabi #define CONFIG_SYS_INIT_RAM_ADDR 0xffd00000 /* Initial L1 address */ 154c59e1b4dSTimur Tabi #define CONFIG_SYS_INIT_RAM_END 0x00004000 /* End of used area in RAM */ 155c59e1b4dSTimur Tabi 156c59e1b4dSTimur Tabi #define CONFIG_SYS_GBL_DATA_SIZE 128 /* num bytes initial data */ 157c59e1b4dSTimur Tabi #define CONFIG_SYS_GBL_DATA_OFFSET \ 158c59e1b4dSTimur Tabi (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE) 159c59e1b4dSTimur Tabi #define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET 160c59e1b4dSTimur Tabi 161c59e1b4dSTimur Tabi #define CONFIG_SYS_MONITOR_LEN (512 * 1024) 162c59e1b4dSTimur Tabi #define CONFIG_SYS_MALLOC_LEN (6 * 1024 * 1024) 163c59e1b4dSTimur Tabi 164c59e1b4dSTimur Tabi /* 165c59e1b4dSTimur Tabi * Serial Port 166c59e1b4dSTimur Tabi */ 167c59e1b4dSTimur Tabi #define CONFIG_CONS_INDEX 1 168c59e1b4dSTimur Tabi #define CONFIG_SYS_NS16550 169c59e1b4dSTimur Tabi #define CONFIG_SYS_NS16550_SERIAL 170c59e1b4dSTimur Tabi #define CONFIG_SYS_NS16550_REG_SIZE 1 171c59e1b4dSTimur Tabi #define CONFIG_SYS_NS16550_CLK get_bus_freq(0) 172c59e1b4dSTimur Tabi 173c59e1b4dSTimur Tabi #define CONFIG_SYS_BAUDRATE_TABLE \ 174c59e1b4dSTimur Tabi {300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200} 175c59e1b4dSTimur Tabi 176c59e1b4dSTimur Tabi #define CONFIG_SYS_NS16550_COM1 (CONFIG_SYS_CCSRBAR+0x4500) 177c59e1b4dSTimur Tabi #define CONFIG_SYS_NS16550_COM2 (CONFIG_SYS_CCSRBAR+0x4600) 178c59e1b4dSTimur Tabi 179c59e1b4dSTimur Tabi /* Use the HUSH parser */ 180c59e1b4dSTimur Tabi #define CONFIG_SYS_HUSH_PARSER 181c59e1b4dSTimur Tabi #define CONFIG_SYS_PROMPT_HUSH_PS2 "> " 182c59e1b4dSTimur Tabi 183c59e1b4dSTimur Tabi #define CONFIG_FSL_DIU_FB 184c59e1b4dSTimur Tabi #define CONFIG_SYS_DIU_ADDR (CONFIG_SYS_CCSRBAR + 0x10000) 185c59e1b4dSTimur Tabi 186c59e1b4dSTimur Tabi /* Video */ 187c59e1b4dSTimur Tabi /* #define CONFIG_VIDEO */ 188c59e1b4dSTimur Tabi #ifdef CONFIG_VIDEO 189c59e1b4dSTimur Tabi #define CONFIG_CFB_CONSOLE 190c59e1b4dSTimur Tabi #define CONFIG_VGA_AS_SINGLE_DEVICE 191c59e1b4dSTimur Tabi #endif 192c59e1b4dSTimur Tabi 193c59e1b4dSTimur Tabi /* 194c59e1b4dSTimur Tabi * Pass open firmware flat tree 195c59e1b4dSTimur Tabi */ 196c59e1b4dSTimur Tabi #define CONFIG_OF_LIBFDT 197c59e1b4dSTimur Tabi #define CONFIG_OF_BOARD_SETUP 198c59e1b4dSTimur Tabi #define CONFIG_OF_STDOUT_VIA_ALIAS 199c59e1b4dSTimur Tabi 200c59e1b4dSTimur Tabi /* new uImage format support */ 201c59e1b4dSTimur Tabi #define CONFIG_FIT 202c59e1b4dSTimur Tabi #define CONFIG_FIT_VERBOSE 203c59e1b4dSTimur Tabi 204c59e1b4dSTimur Tabi /* I2C */ 205c59e1b4dSTimur Tabi #define CONFIG_FSL_I2C 206c59e1b4dSTimur Tabi #define CONFIG_HARD_I2C 207c59e1b4dSTimur Tabi #define CONFIG_I2C_MULTI_BUS 208c59e1b4dSTimur Tabi #define CONFIG_SYS_I2C_SPEED 400000 209c59e1b4dSTimur Tabi #define CONFIG_SYS_I2C_EEPROM_ADDR 0x57 210c59e1b4dSTimur Tabi #define CONFIG_SYS_I2C_SLAVE 0x7F 211c59e1b4dSTimur Tabi #define CONFIG_SYS_I2C_NOPROBES {{0, 0x29}} 212c59e1b4dSTimur Tabi #define CONFIG_SYS_I2C_OFFSET 0x3000 213c59e1b4dSTimur Tabi #define CONFIG_SYS_I2C2_OFFSET 0x3100 214c59e1b4dSTimur Tabi 215c59e1b4dSTimur Tabi /* 216c59e1b4dSTimur Tabi * I2C2 EEPROM 217c59e1b4dSTimur Tabi */ 218c59e1b4dSTimur Tabi #define CONFIG_ID_EEPROM 219c59e1b4dSTimur Tabi #define CONFIG_SYS_I2C_EEPROM_NXID 220c59e1b4dSTimur Tabi #define CONFIG_SYS_I2C_EEPROM_ADDR 0x57 221c59e1b4dSTimur Tabi #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1 222c59e1b4dSTimur Tabi #define CONFIG_SYS_EEPROM_BUS_NUM 1 223c59e1b4dSTimur Tabi 224c59e1b4dSTimur Tabi /* 225c59e1b4dSTimur Tabi * General PCI 226c59e1b4dSTimur Tabi * Memory space is mapped 1-1, but I/O space must start from 0. 227c59e1b4dSTimur Tabi */ 228c59e1b4dSTimur Tabi 229c59e1b4dSTimur Tabi /* controller 1, Slot 2, tgtid 1, Base address a000 */ 230c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE1_MEM_VIRT 0xc0000000 231c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE1_MEM_BUS 0xe0000000 232c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE1_MEM_PHYS 0xc40000000ull 233c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE1_MEM_SIZE 0x20000000 /* 512M */ 234c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE1_IO_VIRT 0xffc20000 235c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE1_IO_BUS 0x00000000 236c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE1_IO_PHYS 0xfffc20000ull 237c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE1_IO_SIZE 0x00010000 /* 64k */ 238c59e1b4dSTimur Tabi 239c59e1b4dSTimur Tabi /* controller 2, direct to uli, tgtid 2, Base address 9000 */ 240c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE2_MEM_VIRT 0xa0000000 241c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE2_MEM_BUS 0xe0000000 242c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE2_MEM_PHYS 0xc20000000ull 243c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE2_MEM_SIZE 0x20000000 /* 512M */ 244c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE2_IO_VIRT 0xffc10000 245c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE2_IO_BUS 0x00000000 246c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE2_IO_PHYS 0xfffc10000ull 247c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE2_IO_SIZE 0x00010000 /* 64k */ 248c59e1b4dSTimur Tabi 249c59e1b4dSTimur Tabi /* controller 3, Slot 1, tgtid 3, Base address b000 */ 250c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE3_MEM_VIRT 0x80000000 251c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE3_MEM_BUS 0xe0000000 252c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE3_MEM_PHYS 0xc00000000ull 253c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE3_MEM_SIZE 0x20000000 /* 512M */ 254c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE3_IO_VIRT 0xffc00000 255c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE3_IO_BUS 0x00000000 256c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE3_IO_PHYS 0xfffc00000ull 257c59e1b4dSTimur Tabi #define CONFIG_SYS_PCIE3_IO_SIZE 0x00010000 /* 64k */ 258c59e1b4dSTimur Tabi 259c59e1b4dSTimur Tabi #ifdef CONFIG_PCI 260c59e1b4dSTimur Tabi #define CONFIG_NET_MULTI 261c59e1b4dSTimur Tabi #define CONFIG_PCI_PNP /* do pci plug-and-play */ 262c59e1b4dSTimur Tabi #define CONFIG_PCI_SCAN_SHOW /* show pci devices on startup */ 263c59e1b4dSTimur Tabi #endif 264c59e1b4dSTimur Tabi 265c59e1b4dSTimur Tabi /* SATA */ 266c59e1b4dSTimur Tabi #define CONFIG_LIBATA 267c59e1b4dSTimur Tabi #define CONFIG_FSL_SATA 268c59e1b4dSTimur Tabi 269c59e1b4dSTimur Tabi #define CONFIG_SYS_SATA_MAX_DEVICE 2 270c59e1b4dSTimur Tabi #define CONFIG_SATA1 271c59e1b4dSTimur Tabi #define CONFIG_SYS_SATA1 CONFIG_SYS_MPC85xx_SATA1_ADDR 272c59e1b4dSTimur Tabi #define CONFIG_SYS_SATA1_FLAGS FLAGS_DMA 273c59e1b4dSTimur Tabi #define CONFIG_SATA2 274c59e1b4dSTimur Tabi #define CONFIG_SYS_SATA2 CONFIG_SYS_MPC85xx_SATA2_ADDR 275c59e1b4dSTimur Tabi #define CONFIG_SYS_SATA2_FLAGS FLAGS_DMA 276c59e1b4dSTimur Tabi 277c59e1b4dSTimur Tabi #ifdef CONFIG_FSL_SATA 278c59e1b4dSTimur Tabi #define CONFIG_LBA48 279c59e1b4dSTimur Tabi #define CONFIG_CMD_SATA 280c59e1b4dSTimur Tabi #define CONFIG_DOS_PARTITION 281c59e1b4dSTimur Tabi #define CONFIG_CMD_EXT2 282c59e1b4dSTimur Tabi #endif 283c59e1b4dSTimur Tabi 284c59e1b4dSTimur Tabi #define CONFIG_MMC 285c59e1b4dSTimur Tabi #ifdef CONFIG_MMC 286c59e1b4dSTimur Tabi #define CONFIG_CMD_MMC 287c59e1b4dSTimur Tabi #define CONFIG_FSL_ESDHC 288c59e1b4dSTimur Tabi #define CONFIG_GENERIC_MMC 289c59e1b4dSTimur Tabi #define CONFIG_SYS_FSL_ESDHC_ADDR CONFIG_SYS_MPC85xx_ESDHC_ADDR 290c59e1b4dSTimur Tabi #endif 291c59e1b4dSTimur Tabi 292c59e1b4dSTimur Tabi #if defined(CONFIG_MMC) || defined(CONFIG_USB_EHCI) 293c59e1b4dSTimur Tabi #define CONFIG_CMD_EXT2 294c59e1b4dSTimur Tabi #define CONFIG_CMD_FAT 295c59e1b4dSTimur Tabi #define CONFIG_DOS_PARTITION 296c59e1b4dSTimur Tabi #endif 297c59e1b4dSTimur Tabi 298c59e1b4dSTimur Tabi #define CONFIG_TSEC_ENET 299c59e1b4dSTimur Tabi #ifdef CONFIG_TSEC_ENET 300c59e1b4dSTimur Tabi 301c59e1b4dSTimur Tabi #define CONFIG_TSECV2 302c59e1b4dSTimur Tabi #define CONFIG_NET_MULTI 303c59e1b4dSTimur Tabi 304c59e1b4dSTimur Tabi #define CONFIG_MII /* MII PHY management */ 305c59e1b4dSTimur Tabi #define CONFIG_TSEC1 1 306c59e1b4dSTimur Tabi #define CONFIG_TSEC1_NAME "eTSEC1" 307c59e1b4dSTimur Tabi #define CONFIG_TSEC2 1 308c59e1b4dSTimur Tabi #define CONFIG_TSEC2_NAME "eTSEC2" 309c59e1b4dSTimur Tabi 310c59e1b4dSTimur Tabi #define TSEC1_PHY_ADDR 1 311c59e1b4dSTimur Tabi #define TSEC2_PHY_ADDR 2 312c59e1b4dSTimur Tabi 313c59e1b4dSTimur Tabi #define TSEC1_FLAGS (TSEC_GIGABIT | TSEC_REDUCED) 314c59e1b4dSTimur Tabi #define TSEC2_FLAGS (TSEC_GIGABIT | TSEC_REDUCED) 315c59e1b4dSTimur Tabi 316c59e1b4dSTimur Tabi #define TSEC1_PHYIDX 0 317c59e1b4dSTimur Tabi #define TSEC2_PHYIDX 0 318c59e1b4dSTimur Tabi 319c59e1b4dSTimur Tabi #define CONFIG_ETHPRIME "eTSEC1" 320c59e1b4dSTimur Tabi 321c59e1b4dSTimur Tabi #define CONFIG_PHY_GIGE /* Include GbE speed/duplex detection */ 322c59e1b4dSTimur Tabi #endif 323c59e1b4dSTimur Tabi 324c59e1b4dSTimur Tabi /* 325c59e1b4dSTimur Tabi * Environment 326c59e1b4dSTimur Tabi */ 327c59e1b4dSTimur Tabi #define CONFIG_ENV_IS_IN_FLASH 328c59e1b4dSTimur Tabi #define CONFIG_ENV_OVERWRITE 329c59e1b4dSTimur Tabi #define CONFIG_ENV_ADDR (CONFIG_SYS_MONITOR_BASE - CONFIG_ENV_SECT_SIZE) 330c59e1b4dSTimur Tabi #define CONFIG_ENV_SIZE 0x2000 331c59e1b4dSTimur Tabi #define CONFIG_ENV_SECT_SIZE 0x20000 332c59e1b4dSTimur Tabi 333c59e1b4dSTimur Tabi #define CONFIG_LOADS_ECHO 334c59e1b4dSTimur Tabi #define CONFIG_SYS_LOADS_BAUD_CHANGE 335c59e1b4dSTimur Tabi 336c59e1b4dSTimur Tabi /* 337c59e1b4dSTimur Tabi * Command line configuration. 338c59e1b4dSTimur Tabi */ 339c59e1b4dSTimur Tabi #include <config_cmd_default.h> 340c59e1b4dSTimur Tabi 341*79ee3448SKumar Gala #define CONFIG_CMD_ELF 342*79ee3448SKumar Gala #define CONFIG_CMD_ERRATA 343c59e1b4dSTimur Tabi #define CONFIG_CMD_IRQ 344c59e1b4dSTimur Tabi #define CONFIG_CMD_I2C 345c59e1b4dSTimur Tabi #define CONFIG_CMD_MII 346*79ee3448SKumar Gala #define CONFIG_CMD_PING 347c59e1b4dSTimur Tabi #define CONFIG_CMD_SETEXPR 348c59e1b4dSTimur Tabi 349c59e1b4dSTimur Tabi #ifdef CONFIG_PCI 350c59e1b4dSTimur Tabi #define CONFIG_CMD_PCI 351c59e1b4dSTimur Tabi #define CONFIG_CMD_NET 352c59e1b4dSTimur Tabi #endif 353c59e1b4dSTimur Tabi 354c59e1b4dSTimur Tabi /* 355c59e1b4dSTimur Tabi * USB 356c59e1b4dSTimur Tabi */ 357c59e1b4dSTimur Tabi #define CONFIG_USB_EHCI 358c59e1b4dSTimur Tabi 359c59e1b4dSTimur Tabi #ifdef CONFIG_USB_EHCI 360c59e1b4dSTimur Tabi #define CONFIG_CMD_USB 361c59e1b4dSTimur Tabi #define CONFIG_EHCI_HCD_INIT_AFTER_RESET 362c59e1b4dSTimur Tabi #define CONFIG_USB_EHCI_FSL 363c59e1b4dSTimur Tabi #define CONFIG_USB_STORAGE 364c59e1b4dSTimur Tabi #define CONFIG_CMD_FAT 365c59e1b4dSTimur Tabi #endif 366c59e1b4dSTimur Tabi 367c59e1b4dSTimur Tabi /* 368c59e1b4dSTimur Tabi * Miscellaneous configurable options 369c59e1b4dSTimur Tabi */ 370c59e1b4dSTimur Tabi #define CONFIG_SYS_LONGHELP /* undef to save memory */ 371c59e1b4dSTimur Tabi #define CONFIG_CMDLINE_EDITING /* Command-line editing */ 372c59e1b4dSTimur Tabi #define CONFIG_SYS_LOAD_ADDR 0x2000000 /* default load address */ 373c59e1b4dSTimur Tabi #define CONFIG_SYS_PROMPT "=> " /* Monitor Command Prompt */ 374c59e1b4dSTimur Tabi #ifdef CONFIG_CMD_KGDB 375c59e1b4dSTimur Tabi #define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buffer Size */ 376c59e1b4dSTimur Tabi #else 377c59e1b4dSTimur Tabi #define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */ 378c59e1b4dSTimur Tabi #endif 379c59e1b4dSTimur Tabi /* Print Buffer Size */ 380c59e1b4dSTimur Tabi #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16) 381c59e1b4dSTimur Tabi #define CONFIG_SYS_MAXARGS 16 382c59e1b4dSTimur Tabi #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE 383c59e1b4dSTimur Tabi #define CONFIG_SYS_HZ 1000 384c59e1b4dSTimur Tabi 385c59e1b4dSTimur Tabi /* 386c59e1b4dSTimur Tabi * For booting Linux, the board info and command line data 387c59e1b4dSTimur Tabi * have to be in the first 16 MB of memory, since this is 388c59e1b4dSTimur Tabi * the maximum mapped by the Linux kernel during initialization. 389c59e1b4dSTimur Tabi */ 390c59e1b4dSTimur Tabi #define CONFIG_SYS_BOOTMAPSZ (16 << 20) /* Initial Memory map for Linux*/ 391c59e1b4dSTimur Tabi 392c59e1b4dSTimur Tabi /* 393c59e1b4dSTimur Tabi * Internal Definitions 394c59e1b4dSTimur Tabi * 395c59e1b4dSTimur Tabi * Boot Flags 396c59e1b4dSTimur Tabi */ 397c59e1b4dSTimur Tabi #define BOOTFLAG_COLD 0x01 /* Normal Power-On: Boot from FLASH */ 398c59e1b4dSTimur Tabi #define BOOTFLAG_WARM 0x02 /* Software reboot */ 399c59e1b4dSTimur Tabi 400c59e1b4dSTimur Tabi #ifdef CONFIG_CMD_KGDB 401c59e1b4dSTimur Tabi #define CONFIG_KGDB_BAUDRATE 230400 /* speed to run kgdb serial port */ 402c59e1b4dSTimur Tabi #define CONFIG_KGDB_SER_INDEX 2 /* which serial port to use */ 403c59e1b4dSTimur Tabi #endif 404c59e1b4dSTimur Tabi 405c59e1b4dSTimur Tabi /* 406c59e1b4dSTimur Tabi * Environment Configuration 407c59e1b4dSTimur Tabi */ 408c59e1b4dSTimur Tabi 409c59e1b4dSTimur Tabi #define CONFIG_HOSTNAME p1022ds 410c59e1b4dSTimur Tabi #define CONFIG_ROOTPATH /opt/nfsroot 411c59e1b4dSTimur Tabi #define CONFIG_BOOTFILE uImage 412c59e1b4dSTimur Tabi #define CONFIG_UBOOTPATH u-boot.bin /* U-Boot image on TFTP server */ 413c59e1b4dSTimur Tabi 414c59e1b4dSTimur Tabi #define CONFIG_LOADADDR 1000000 415c59e1b4dSTimur Tabi 416c59e1b4dSTimur Tabi #define CONFIG_BOOTDELAY 10 /* -1 disables auto-boot */ 417c59e1b4dSTimur Tabi #define CONFIG_BOOTARGS 418c59e1b4dSTimur Tabi 419c59e1b4dSTimur Tabi #define CONFIG_BAUDRATE 115200 420c59e1b4dSTimur Tabi 421c59e1b4dSTimur Tabi #define CONFIG_EXTRA_ENV_SETTINGS \ 422c59e1b4dSTimur Tabi "perf_mode=stable\0" \ 423c59e1b4dSTimur Tabi "memctl_intlv_ctl=2\0" \ 424c59e1b4dSTimur Tabi "netdev=eth0\0" \ 425c59e1b4dSTimur Tabi "uboot=" MK_STR(CONFIG_UBOOTPATH) "\0" \ 426c59e1b4dSTimur Tabi "tftpflash=tftpboot $loadaddr $uboot; " \ 427c59e1b4dSTimur Tabi "protect off " MK_STR(TEXT_BASE) " +$filesize; " \ 428c59e1b4dSTimur Tabi "erase " MK_STR(TEXT_BASE) " +$filesize; " \ 429c59e1b4dSTimur Tabi "cp.b $loadaddr " MK_STR(TEXT_BASE) " $filesize; " \ 430c59e1b4dSTimur Tabi "protect on " MK_STR(TEXT_BASE) " +$filesize; " \ 431c59e1b4dSTimur Tabi "cmp.b $loadaddr " MK_STR(TEXT_BASE) " $filesize\0" \ 432c59e1b4dSTimur Tabi "consoledev=ttyS0\0" \ 433c59e1b4dSTimur Tabi "ramdiskaddr=2000000\0" \ 434c59e1b4dSTimur Tabi "ramdiskfile=uramdisk\0" \ 435c59e1b4dSTimur Tabi "fdtaddr=c00000\0" \ 436c59e1b4dSTimur Tabi "fdtfile=p1022ds.dtb\0" \ 437c59e1b4dSTimur Tabi "bdev=sda3\0" \ 438c59e1b4dSTimur Tabi "diuregs=md e002c000 1d\0" \ 439c59e1b4dSTimur Tabi "dium=mw e002c01c\0" \ 440c59e1b4dSTimur Tabi "diuerr=md e002c014 1\0" \ 441c59e1b4dSTimur Tabi "othbootargs=diufb=15M video=fslfb:1280x1024-32@60,monitor=0 tty0\0" \ 442c59e1b4dSTimur Tabi "monitor=0-DVI\0" 443c59e1b4dSTimur Tabi 444c59e1b4dSTimur Tabi #define CONFIG_HDBOOT \ 445c59e1b4dSTimur Tabi "setenv bootargs root=/dev/$bdev rw " \ 446c59e1b4dSTimur Tabi "console=$consoledev,$baudrate $othbootargs;" \ 447c59e1b4dSTimur Tabi "tftp $loadaddr $bootfile;" \ 448c59e1b4dSTimur Tabi "tftp $fdtaddr $fdtfile;" \ 449c59e1b4dSTimur Tabi "bootm $loadaddr - $fdtaddr" 450c59e1b4dSTimur Tabi 451c59e1b4dSTimur Tabi #define CONFIG_NFSBOOTCOMMAND \ 452c59e1b4dSTimur Tabi "setenv bootargs root=/dev/nfs rw " \ 453c59e1b4dSTimur Tabi "nfsroot=$serverip:$rootpath " \ 454c59e1b4dSTimur Tabi "ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname:$netdev:off " \ 455c59e1b4dSTimur Tabi "console=$consoledev,$baudrate $othbootargs;" \ 456c59e1b4dSTimur Tabi "tftp $loadaddr $bootfile;" \ 457c59e1b4dSTimur Tabi "tftp $fdtaddr $fdtfile;" \ 458c59e1b4dSTimur Tabi "bootm $loadaddr - $fdtaddr" 459c59e1b4dSTimur Tabi 460c59e1b4dSTimur Tabi #define CONFIG_RAMBOOTCOMMAND \ 461c59e1b4dSTimur Tabi "setenv bootargs root=/dev/ram rw " \ 462c59e1b4dSTimur Tabi "console=$consoledev,$baudrate $othbootargs;" \ 463c59e1b4dSTimur Tabi "tftp $ramdiskaddr $ramdiskfile;" \ 464c59e1b4dSTimur Tabi "tftp $loadaddr $bootfile;" \ 465c59e1b4dSTimur Tabi "tftp $fdtaddr $fdtfile;" \ 466c59e1b4dSTimur Tabi "bootm $loadaddr $ramdiskaddr $fdtaddr" 467c59e1b4dSTimur Tabi 468c59e1b4dSTimur Tabi #define CONFIG_BOOTCOMMAND CONFIG_RAMBOOTCOMMAND 469c59e1b4dSTimur Tabi 470c59e1b4dSTimur Tabi #endif 471