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