18d67c368SShengzhou Liu /* 28d67c368SShengzhou Liu * Copyright 2014 Freescale Semiconductor, Inc. 38d67c368SShengzhou Liu * 48d67c368SShengzhou Liu * SPDX-License-Identifier: GPL-2.0+ 58d67c368SShengzhou Liu */ 68d67c368SShengzhou Liu 78d67c368SShengzhou Liu /* 88d67c368SShengzhou Liu * T2080 RDB/PCIe board configuration file 98d67c368SShengzhou Liu */ 108d67c368SShengzhou Liu 118d67c368SShengzhou Liu #ifndef __T2080RDB_H 128d67c368SShengzhou Liu #define __T2080RDB_H 138d67c368SShengzhou Liu 148d67c368SShengzhou Liu #define CONFIG_T2080RDB 158d67c368SShengzhou Liu #define CONFIG_ICS307_REFCLK_HZ 25000000 /* ICS307 ref clk freq */ 168d67c368SShengzhou Liu #define CONFIG_MMC 178d67c368SShengzhou Liu #define CONFIG_SPI_FLASH 188d67c368SShengzhou Liu #define CONFIG_USB_EHCI 198d67c368SShengzhou Liu #define CONFIG_FSL_SATA_V2 208d67c368SShengzhou Liu 218d67c368SShengzhou Liu /* High Level Configuration Options */ 228d67c368SShengzhou Liu #define CONFIG_PHYS_64BIT 238d67c368SShengzhou Liu #define CONFIG_BOOKE 248d67c368SShengzhou Liu #define CONFIG_E500 /* BOOKE e500 family */ 258d67c368SShengzhou Liu #define CONFIG_E500MC /* BOOKE e500mc family */ 268d67c368SShengzhou Liu #define CONFIG_SYS_BOOK3E_HV /* Category E.HV supported */ 278d67c368SShengzhou Liu #define CONFIG_MP /* support multiple processors */ 288d67c368SShengzhou Liu #define CONFIG_ENABLE_36BIT_PHYS 298d67c368SShengzhou Liu 308d67c368SShengzhou Liu #ifdef CONFIG_PHYS_64BIT 318d67c368SShengzhou Liu #define CONFIG_ADDR_MAP 1 328d67c368SShengzhou Liu #define CONFIG_SYS_NUM_ADDR_MAP 64 /* number of TLB1 entries */ 338d67c368SShengzhou Liu #endif 348d67c368SShengzhou Liu 358d67c368SShengzhou Liu #define CONFIG_SYS_FSL_CPC /* Corenet Platform Cache */ 368d67c368SShengzhou Liu #define CONFIG_SYS_NUM_CPC CONFIG_NUM_DDR_CONTROLLERS 378d67c368SShengzhou Liu #define CONFIG_FSL_IFC /* Enable IFC Support */ 388d67c368SShengzhou Liu #define CONFIG_FSL_LAW /* Use common FSL init code */ 398d67c368SShengzhou Liu #define CONFIG_ENV_OVERWRITE 408d67c368SShengzhou Liu 418d67c368SShengzhou Liu #ifdef CONFIG_RAMBOOT_PBL 428d67c368SShengzhou Liu #define CONFIG_RAMBOOT_TEXT_BASE CONFIG_SYS_TEXT_BASE 438d67c368SShengzhou Liu #define CONFIG_RESET_VECTOR_ADDRESS 0xfffffffc 44*e4536f8eSMasahiro Yamada #define CONFIG_SYS_FSL_PBL_PBI board/freescale/t208xrdb/t2080_pbi.cfg 45*e4536f8eSMasahiro Yamada #define CONFIG_SYS_FSL_PBL_RCW board/freescale/t208xrdb/t2080_rcw.cfg 468d67c368SShengzhou Liu #endif 478d67c368SShengzhou Liu 488d67c368SShengzhou Liu #define CONFIG_SRIO_PCIE_BOOT_MASTER 498d67c368SShengzhou Liu #ifdef CONFIG_SRIO_PCIE_BOOT_SLAVE 508d67c368SShengzhou Liu /* Set 1M boot space */ 518d67c368SShengzhou Liu #define CONFIG_SYS_SRIO_PCIE_BOOT_SLAVE_ADDR (CONFIG_SYS_TEXT_BASE & 0xfff00000) 528d67c368SShengzhou Liu #define CONFIG_SYS_SRIO_PCIE_BOOT_SLAVE_ADDR_PHYS \ 538d67c368SShengzhou Liu (0x300000000ull | CONFIG_SYS_SRIO_PCIE_BOOT_SLAVE_ADDR) 548d67c368SShengzhou Liu #define CONFIG_RESET_VECTOR_ADDRESS 0xfffffffc 558d67c368SShengzhou Liu #define CONFIG_SYS_NO_FLASH 568d67c368SShengzhou Liu #endif 578d67c368SShengzhou Liu 588d67c368SShengzhou Liu #ifndef CONFIG_SYS_TEXT_BASE 598d67c368SShengzhou Liu #define CONFIG_SYS_TEXT_BASE 0xeff40000 608d67c368SShengzhou Liu #endif 618d67c368SShengzhou Liu 628d67c368SShengzhou Liu #ifndef CONFIG_RESET_VECTOR_ADDRESS 638d67c368SShengzhou Liu #define CONFIG_RESET_VECTOR_ADDRESS 0xeffffffc 648d67c368SShengzhou Liu #endif 658d67c368SShengzhou Liu 668d67c368SShengzhou Liu /* 678d67c368SShengzhou Liu * These can be toggled for performance analysis, otherwise use default. 688d67c368SShengzhou Liu */ 698d67c368SShengzhou Liu #define CONFIG_SYS_CACHE_STASHING 708d67c368SShengzhou Liu #define CONFIG_BTB /* toggle branch predition */ 718d67c368SShengzhou Liu #define CONFIG_DDR_ECC 728d67c368SShengzhou Liu #ifdef CONFIG_DDR_ECC 738d67c368SShengzhou Liu #define CONFIG_ECC_INIT_VIA_DDRCONTROLLER 748d67c368SShengzhou Liu #define CONFIG_MEM_INIT_VALUE 0xdeadbeef 758d67c368SShengzhou Liu #endif 768d67c368SShengzhou Liu 778d67c368SShengzhou Liu #ifdef CONFIG_SYS_NO_FLASH 788d67c368SShengzhou Liu #if !defined(CONFIG_SRIO_PCIE_BOOT_SLAVE) && !defined(CONFIG_RAMBOOT_PBL) 798d67c368SShengzhou Liu #define CONFIG_ENV_IS_NOWHERE 808d67c368SShengzhou Liu #endif 818d67c368SShengzhou Liu #else 828d67c368SShengzhou Liu #define CONFIG_FLASH_CFI_DRIVER 838d67c368SShengzhou Liu #define CONFIG_SYS_FLASH_CFI 848d67c368SShengzhou Liu #define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 858d67c368SShengzhou Liu #endif 868d67c368SShengzhou Liu 878d67c368SShengzhou Liu #if defined(CONFIG_SPIFLASH) 888d67c368SShengzhou Liu #define CONFIG_SYS_EXTRA_ENV_RELOC 898d67c368SShengzhou Liu #define CONFIG_ENV_IS_IN_SPI_FLASH 908d67c368SShengzhou Liu #define CONFIG_ENV_SPI_BUS 0 918d67c368SShengzhou Liu #define CONFIG_ENV_SPI_CS 0 928d67c368SShengzhou Liu #define CONFIG_ENV_SPI_MAX_HZ 10000000 938d67c368SShengzhou Liu #define CONFIG_ENV_SPI_MODE 0 948d67c368SShengzhou Liu #define CONFIG_ENV_SIZE 0x2000 /* 8KB */ 958d67c368SShengzhou Liu #define CONFIG_ENV_OFFSET 0x100000 /* 1MB */ 968d67c368SShengzhou Liu #define CONFIG_ENV_SECT_SIZE 0x10000 978d67c368SShengzhou Liu #elif defined(CONFIG_SDCARD) 988d67c368SShengzhou Liu #define CONFIG_SYS_EXTRA_ENV_RELOC 998d67c368SShengzhou Liu #define CONFIG_ENV_IS_IN_MMC 1008d67c368SShengzhou Liu #define CONFIG_SYS_MMC_ENV_DEV 0 1018d67c368SShengzhou Liu #define CONFIG_ENV_SIZE 0x2000 1028d67c368SShengzhou Liu #define CONFIG_ENV_OFFSET (512 * 1658) 1038d67c368SShengzhou Liu #elif defined(CONFIG_NAND) 1048d67c368SShengzhou Liu #define CONFIG_SYS_EXTRA_ENV_RELOC 1058d67c368SShengzhou Liu #define CONFIG_ENV_IS_IN_NAND 1068d67c368SShengzhou Liu #define CONFIG_ENV_SIZE CONFIG_SYS_NAND_BLOCK_SIZE 1078d67c368SShengzhou Liu #define CONFIG_ENV_OFFSET (2 * CONFIG_SYS_NAND_BLOCK_SIZE) 1088d67c368SShengzhou Liu #elif defined(CONFIG_SRIO_PCIE_BOOT_SLAVE) 1098d67c368SShengzhou Liu #define CONFIG_ENV_IS_IN_REMOTE 1108d67c368SShengzhou Liu #define CONFIG_ENV_ADDR 0xffe20000 1118d67c368SShengzhou Liu #define CONFIG_ENV_SIZE 0x2000 1128d67c368SShengzhou Liu #elif defined(CONFIG_ENV_IS_NOWHERE) 1138d67c368SShengzhou Liu #define CONFIG_ENV_SIZE 0x2000 1148d67c368SShengzhou Liu #else 1158d67c368SShengzhou Liu #define CONFIG_ENV_IS_IN_FLASH 1168d67c368SShengzhou Liu #define CONFIG_ENV_ADDR (CONFIG_SYS_MONITOR_BASE - CONFIG_ENV_SECT_SIZE) 1178d67c368SShengzhou Liu #define CONFIG_ENV_SIZE 0x2000 1188d67c368SShengzhou Liu #define CONFIG_ENV_SECT_SIZE 0x20000 /* 128K (one sector) */ 1198d67c368SShengzhou Liu #endif 1208d67c368SShengzhou Liu 1218d67c368SShengzhou Liu #ifndef __ASSEMBLY__ 1228d67c368SShengzhou Liu unsigned long get_board_sys_clk(void); 1238d67c368SShengzhou Liu unsigned long get_board_ddr_clk(void); 1248d67c368SShengzhou Liu #endif 1258d67c368SShengzhou Liu 1268d67c368SShengzhou Liu #define CONFIG_SYS_CLK_FREQ 66660000 1278d67c368SShengzhou Liu #define CONFIG_DDR_CLK_FREQ 133330000 1288d67c368SShengzhou Liu 1298d67c368SShengzhou Liu /* 1308d67c368SShengzhou Liu * Config the L3 Cache as L3 SRAM 1318d67c368SShengzhou Liu */ 1328d67c368SShengzhou Liu #define CONFIG_SYS_INIT_L3_ADDR CONFIG_RAMBOOT_TEXT_BASE 1338d67c368SShengzhou Liu 1348d67c368SShengzhou Liu #define CONFIG_SYS_DCSRBAR 0xf0000000 1358d67c368SShengzhou Liu #define CONFIG_SYS_DCSRBAR_PHYS 0xf00000000ull 1368d67c368SShengzhou Liu 1378d67c368SShengzhou Liu /* EEPROM */ 1388d67c368SShengzhou Liu #define CONFIG_ID_EEPROM 1398d67c368SShengzhou Liu #define CONFIG_SYS_I2C_EEPROM_NXID 1408d67c368SShengzhou Liu #define CONFIG_SYS_EEPROM_BUS_NUM 0 1418d67c368SShengzhou Liu #define CONFIG_SYS_I2C_EEPROM_ADDR 0x50 1428d67c368SShengzhou Liu #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1 1438d67c368SShengzhou Liu 1448d67c368SShengzhou Liu /* 1458d67c368SShengzhou Liu * DDR Setup 1468d67c368SShengzhou Liu */ 1478d67c368SShengzhou Liu #define CONFIG_VERY_BIG_RAM 1488d67c368SShengzhou Liu #define CONFIG_SYS_DDR_SDRAM_BASE 0x00000000 1498d67c368SShengzhou Liu #define CONFIG_SYS_SDRAM_BASE CONFIG_SYS_DDR_SDRAM_BASE 1508d67c368SShengzhou Liu #define CONFIG_DIMM_SLOTS_PER_CTLR 1 1518d67c368SShengzhou Liu #define CONFIG_CHIP_SELECTS_PER_CTRL (4 * CONFIG_DIMM_SLOTS_PER_CTLR) 1528d67c368SShengzhou Liu #define CONFIG_DDR_SPD 1538d67c368SShengzhou Liu #define CONFIG_SYS_FSL_DDR3 1548d67c368SShengzhou Liu #undef CONFIG_FSL_DDR_INTERACTIVE 1558d67c368SShengzhou Liu #define CONFIG_SYS_SPD_BUS_NUM 0 1568d67c368SShengzhou Liu #define CONFIG_SYS_SDRAM_SIZE 2048 /* for fixed parameter use */ 1578d67c368SShengzhou Liu #define SPD_EEPROM_ADDRESS1 0x51 1588d67c368SShengzhou Liu #define SPD_EEPROM_ADDRESS2 0x52 1598d67c368SShengzhou Liu #define SPD_EEPROM_ADDRESS SPD_EEPROM_ADDRESS1 1608d67c368SShengzhou Liu #define CTRL_INTLV_PREFERED cacheline 1618d67c368SShengzhou Liu 1628d67c368SShengzhou Liu /* 1638d67c368SShengzhou Liu * IFC Definitions 1648d67c368SShengzhou Liu */ 1658d67c368SShengzhou Liu #define CONFIG_SYS_FLASH_BASE 0xe8000000 1668d67c368SShengzhou Liu #define CONFIG_SYS_FLASH_BASE_PHYS (0xf00000000ull | CONFIG_SYS_FLASH_BASE) 1678d67c368SShengzhou Liu #define CONFIG_SYS_NOR0_CSPR_EXT (0xf) 1688d67c368SShengzhou Liu #define CONFIG_SYS_NOR0_CSPR (CSPR_PHYS_ADDR(CONFIG_SYS_FLASH_BASE_PHYS) | \ 1698d67c368SShengzhou Liu CSPR_PORT_SIZE_16 | \ 1708d67c368SShengzhou Liu CSPR_MSEL_NOR | \ 1718d67c368SShengzhou Liu CSPR_V) 1728d67c368SShengzhou Liu #define CONFIG_SYS_NOR_AMASK IFC_AMASK(128*1024*1024) 1738d67c368SShengzhou Liu 1748d67c368SShengzhou Liu /* NOR Flash Timing Params */ 1758d67c368SShengzhou Liu #define CONFIG_SYS_NOR_CSOR CSOR_NAND_TRHZ_80 1768d67c368SShengzhou Liu 1778d67c368SShengzhou Liu #define CONFIG_SYS_NOR_FTIM0 (FTIM0_NOR_TACSE(0x4) | \ 1788d67c368SShengzhou Liu FTIM0_NOR_TEADC(0x5) | \ 1798d67c368SShengzhou Liu FTIM0_NOR_TEAHC(0x5)) 1808d67c368SShengzhou Liu #define CONFIG_SYS_NOR_FTIM1 (FTIM1_NOR_TACO(0x35) | \ 1818d67c368SShengzhou Liu FTIM1_NOR_TRAD_NOR(0x1A) |\ 1828d67c368SShengzhou Liu FTIM1_NOR_TSEQRAD_NOR(0x13)) 1838d67c368SShengzhou Liu #define CONFIG_SYS_NOR_FTIM2 (FTIM2_NOR_TCS(0x4) | \ 1848d67c368SShengzhou Liu FTIM2_NOR_TCH(0x4) | \ 1858d67c368SShengzhou Liu FTIM2_NOR_TWPH(0x0E) | \ 1868d67c368SShengzhou Liu FTIM2_NOR_TWP(0x1c)) 1878d67c368SShengzhou Liu #define CONFIG_SYS_NOR_FTIM3 0x0 1888d67c368SShengzhou Liu 1898d67c368SShengzhou Liu #define CONFIG_SYS_FLASH_QUIET_TEST 1908d67c368SShengzhou Liu #define CONFIG_FLASH_SHOW_PROGRESS 45 /* count down from 45/5: 9..1 */ 1918d67c368SShengzhou Liu 1928d67c368SShengzhou Liu #define CONFIG_SYS_MAX_FLASH_BANKS 1 /* number of banks */ 1938d67c368SShengzhou Liu #define CONFIG_SYS_MAX_FLASH_SECT 1024 /* sectors per device */ 1948d67c368SShengzhou Liu #define CONFIG_SYS_FLASH_ERASE_TOUT 60000 /* Flash Erase Timeout (ms) */ 1958d67c368SShengzhou Liu #define CONFIG_SYS_FLASH_WRITE_TOUT 500 /* Flash Write Timeout (ms) */ 1968d67c368SShengzhou Liu #define CONFIG_SYS_FLASH_EMPTY_INFO 1978d67c368SShengzhou Liu #define CONFIG_SYS_FLASH_BANKS_LIST {CONFIG_SYS_FLASH_BASE_PHYS } 1988d67c368SShengzhou Liu 1998d67c368SShengzhou Liu /* CPLD on IFC */ 2008d67c368SShengzhou Liu #define CONFIG_SYS_CPLD_BASE 0xffdf0000 2018d67c368SShengzhou Liu #define CONFIG_SYS_CPLD_BASE_PHYS (0xf00000000ull | CONFIG_SYS_CPLD_BASE) 2028d67c368SShengzhou Liu #define CONFIG_SYS_CSPR2_EXT (0xf) 2038d67c368SShengzhou Liu #define CONFIG_SYS_CSPR2 (CSPR_PHYS_ADDR(CONFIG_SYS_CPLD_BASE) \ 2048d67c368SShengzhou Liu | CSPR_PORT_SIZE_8 \ 2058d67c368SShengzhou Liu | CSPR_MSEL_GPCM \ 2068d67c368SShengzhou Liu | CSPR_V) 2078d67c368SShengzhou Liu #define CONFIG_SYS_AMASK2 IFC_AMASK(64*1024) 2088d67c368SShengzhou Liu #define CONFIG_SYS_CSOR2 0x0 2098d67c368SShengzhou Liu 2108d67c368SShengzhou Liu /* CPLD Timing parameters for IFC CS2 */ 2118d67c368SShengzhou Liu #define CONFIG_SYS_CS2_FTIM0 (FTIM0_GPCM_TACSE(0x0e) | \ 2128d67c368SShengzhou Liu FTIM0_GPCM_TEADC(0x0e) | \ 2138d67c368SShengzhou Liu FTIM0_GPCM_TEAHC(0x0e)) 2148d67c368SShengzhou Liu #define CONFIG_SYS_CS2_FTIM1 (FTIM1_GPCM_TACO(0x0e) | \ 2158d67c368SShengzhou Liu FTIM1_GPCM_TRAD(0x1f)) 2168d67c368SShengzhou Liu #define CONFIG_SYS_CS2_FTIM2 (FTIM2_GPCM_TCS(0x0e) | \ 2178d67c368SShengzhou Liu FTIM2_GPCM_TCH(0x0) | \ 2188d67c368SShengzhou Liu FTIM2_GPCM_TWP(0x1f)) 2198d67c368SShengzhou Liu #define CONFIG_SYS_CS2_FTIM3 0x0 2208d67c368SShengzhou Liu 2218d67c368SShengzhou Liu /* NAND Flash on IFC */ 2228d67c368SShengzhou Liu #define CONFIG_NAND_FSL_IFC 2238d67c368SShengzhou Liu #define CONFIG_SYS_NAND_BASE 0xff800000 2248d67c368SShengzhou Liu #define CONFIG_SYS_NAND_BASE_PHYS (0xf00000000ull | CONFIG_SYS_NAND_BASE) 2258d67c368SShengzhou Liu 2268d67c368SShengzhou Liu #define CONFIG_SYS_NAND_CSPR_EXT (0xf) 2278d67c368SShengzhou Liu #define CONFIG_SYS_NAND_CSPR (CSPR_PHYS_ADDR(CONFIG_SYS_NAND_BASE_PHYS) \ 2288d67c368SShengzhou Liu | CSPR_PORT_SIZE_8 /* Port Size = 8 bit */ \ 2298d67c368SShengzhou Liu | CSPR_MSEL_NAND /* MSEL = NAND */ \ 2308d67c368SShengzhou Liu | CSPR_V) 2318d67c368SShengzhou Liu #define CONFIG_SYS_NAND_AMASK IFC_AMASK(64*1024) 2328d67c368SShengzhou Liu 2338d67c368SShengzhou Liu #define CONFIG_SYS_NAND_CSOR (CSOR_NAND_ECC_ENC_EN /* ECC on encode */ \ 2348d67c368SShengzhou Liu | CSOR_NAND_ECC_DEC_EN /* ECC on decode */ \ 2358d67c368SShengzhou Liu | CSOR_NAND_ECC_MODE_4 /* 4-bit ECC */ \ 2368d67c368SShengzhou Liu | CSOR_NAND_RAL_3 /* RAL = 2Byes */ \ 2378d67c368SShengzhou Liu | CSOR_NAND_PGS_2K /* Page Size = 2K */\ 2388d67c368SShengzhou Liu | CSOR_NAND_SPRZ_64 /* Spare size = 64 */\ 2398d67c368SShengzhou Liu | CSOR_NAND_PB(64)) /*Pages Per Block = 64*/ 2408d67c368SShengzhou Liu 2418d67c368SShengzhou Liu #define CONFIG_SYS_NAND_ONFI_DETECTION 2428d67c368SShengzhou Liu 2438d67c368SShengzhou Liu /* ONFI NAND Flash mode0 Timing Params */ 2448d67c368SShengzhou Liu #define CONFIG_SYS_NAND_FTIM0 (FTIM0_NAND_TCCST(0x07) | \ 2458d67c368SShengzhou Liu FTIM0_NAND_TWP(0x18) | \ 2468d67c368SShengzhou Liu FTIM0_NAND_TWCHT(0x07) | \ 2478d67c368SShengzhou Liu FTIM0_NAND_TWH(0x0a)) 2488d67c368SShengzhou Liu #define CONFIG_SYS_NAND_FTIM1 (FTIM1_NAND_TADLE(0x32) | \ 2498d67c368SShengzhou Liu FTIM1_NAND_TWBE(0x39) | \ 2508d67c368SShengzhou Liu FTIM1_NAND_TRR(0x0e) | \ 2518d67c368SShengzhou Liu FTIM1_NAND_TRP(0x18)) 2528d67c368SShengzhou Liu #define CONFIG_SYS_NAND_FTIM2 (FTIM2_NAND_TRAD(0x0f) | \ 2538d67c368SShengzhou Liu FTIM2_NAND_TREH(0x0a) | \ 2548d67c368SShengzhou Liu FTIM2_NAND_TWHRE(0x1e)) 2558d67c368SShengzhou Liu #define CONFIG_SYS_NAND_FTIM3 0x0 2568d67c368SShengzhou Liu 2578d67c368SShengzhou Liu #define CONFIG_SYS_NAND_DDR_LAW 11 2588d67c368SShengzhou Liu #define CONFIG_SYS_NAND_BASE_LIST { CONFIG_SYS_NAND_BASE } 2598d67c368SShengzhou Liu #define CONFIG_SYS_MAX_NAND_DEVICE 1 2608d67c368SShengzhou Liu #define CONFIG_MTD_NAND_VERIFY_WRITE 2618d67c368SShengzhou Liu #define CONFIG_CMD_NAND 2628d67c368SShengzhou Liu #define CONFIG_SYS_NAND_BLOCK_SIZE (512 * 1024) 2638d67c368SShengzhou Liu 2648d67c368SShengzhou Liu #if defined(CONFIG_NAND) 2658d67c368SShengzhou Liu #define CONFIG_SYS_CSPR0_EXT CONFIG_SYS_NAND_CSPR_EXT 2668d67c368SShengzhou Liu #define CONFIG_SYS_CSPR0 CONFIG_SYS_NAND_CSPR 2678d67c368SShengzhou Liu #define CONFIG_SYS_AMASK0 CONFIG_SYS_NAND_AMASK 2688d67c368SShengzhou Liu #define CONFIG_SYS_CSOR0 CONFIG_SYS_NAND_CSOR 2698d67c368SShengzhou Liu #define CONFIG_SYS_CS0_FTIM0 CONFIG_SYS_NAND_FTIM0 2708d67c368SShengzhou Liu #define CONFIG_SYS_CS0_FTIM1 CONFIG_SYS_NAND_FTIM1 2718d67c368SShengzhou Liu #define CONFIG_SYS_CS0_FTIM2 CONFIG_SYS_NAND_FTIM2 2728d67c368SShengzhou Liu #define CONFIG_SYS_CS0_FTIM3 CONFIG_SYS_NAND_FTIM3 2738d67c368SShengzhou Liu #define CONFIG_SYS_CSPR1_EXT CONFIG_SYS_NOR0_CSPR_EXT 2748d67c368SShengzhou Liu #define CONFIG_SYS_CSPR1 CONFIG_SYS_NOR0_CSPR 2758d67c368SShengzhou Liu #define CONFIG_SYS_AMASK1 CONFIG_SYS_NOR_AMASK 2768d67c368SShengzhou Liu #define CONFIG_SYS_CSOR1 CONFIG_SYS_NOR_CSOR 2778d67c368SShengzhou Liu #define CONFIG_SYS_CS1_FTIM0 CONFIG_SYS_NOR_FTIM0 2788d67c368SShengzhou Liu #define CONFIG_SYS_CS1_FTIM1 CONFIG_SYS_NOR_FTIM1 2798d67c368SShengzhou Liu #define CONFIG_SYS_CS1_FTIM2 CONFIG_SYS_NOR_FTIM2 2808d67c368SShengzhou Liu #define CONFIG_SYS_CS1_FTIM3 CONFIG_SYS_NOR_FTIM3 2818d67c368SShengzhou Liu #else 2828d67c368SShengzhou Liu #define CONFIG_SYS_CSPR0_EXT CONFIG_SYS_NOR0_CSPR_EXT 2838d67c368SShengzhou Liu #define CONFIG_SYS_CSPR0 CONFIG_SYS_NOR0_CSPR 2848d67c368SShengzhou Liu #define CONFIG_SYS_AMASK0 CONFIG_SYS_NOR_AMASK 2858d67c368SShengzhou Liu #define CONFIG_SYS_CSOR0 CONFIG_SYS_NOR_CSOR 2868d67c368SShengzhou Liu #define CONFIG_SYS_CS0_FTIM0 CONFIG_SYS_NOR_FTIM0 2878d67c368SShengzhou Liu #define CONFIG_SYS_CS0_FTIM1 CONFIG_SYS_NOR_FTIM1 2888d67c368SShengzhou Liu #define CONFIG_SYS_CS0_FTIM2 CONFIG_SYS_NOR_FTIM2 2898d67c368SShengzhou Liu #define CONFIG_SYS_CS0_FTIM3 CONFIG_SYS_NOR_FTIM3 2908d67c368SShengzhou Liu #define CONFIG_SYS_CSPR1_EXT CONFIG_SYS_NAND_CSPR_EXT 2918d67c368SShengzhou Liu #define CONFIG_SYS_CSPR1 CONFIG_SYS_NAND_CSPR 2928d67c368SShengzhou Liu #define CONFIG_SYS_AMASK1 CONFIG_SYS_NAND_AMASK 2938d67c368SShengzhou Liu #define CONFIG_SYS_CSOR1 CONFIG_SYS_NAND_CSOR 2948d67c368SShengzhou Liu #define CONFIG_SYS_CS1_FTIM0 CONFIG_SYS_NAND_FTIM0 2958d67c368SShengzhou Liu #define CONFIG_SYS_CS1_FTIM1 CONFIG_SYS_NAND_FTIM1 2968d67c368SShengzhou Liu #define CONFIG_SYS_CS1_FTIM2 CONFIG_SYS_NAND_FTIM2 2978d67c368SShengzhou Liu #define CONFIG_SYS_CS1_FTIM3 CONFIG_SYS_NAND_FTIM3 2988d67c368SShengzhou Liu #endif 2998d67c368SShengzhou Liu 3008d67c368SShengzhou Liu #if defined(CONFIG_RAMBOOT_PBL) 3018d67c368SShengzhou Liu #define CONFIG_SYS_RAMBOOT 3028d67c368SShengzhou Liu #endif 3038d67c368SShengzhou Liu 3048d67c368SShengzhou Liu #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE 3058d67c368SShengzhou Liu #define CONFIG_BOARD_EARLY_INIT_R /* call board_early_init_r function */ 3068d67c368SShengzhou Liu #define CONFIG_MISC_INIT_R 3078d67c368SShengzhou Liu #define CONFIG_HWCONFIG 3088d67c368SShengzhou Liu 3098d67c368SShengzhou Liu /* define to use L1 as initial stack */ 3108d67c368SShengzhou Liu #define CONFIG_L1_INIT_RAM 3118d67c368SShengzhou Liu #define CONFIG_SYS_INIT_RAM_LOCK 3128d67c368SShengzhou Liu #define CONFIG_SYS_INIT_RAM_ADDR 0xfdd00000 /* Initial L1 address */ 3138d67c368SShengzhou Liu #define CONFIG_SYS_INIT_RAM_ADDR_PHYS_HIGH 0xf 3148d67c368SShengzhou Liu #define CONFIG_SYS_INIT_RAM_ADDR_PHYS_LOW 0xfe0ec000 3158d67c368SShengzhou Liu /* The assembler doesn't like typecast */ 3168d67c368SShengzhou Liu #define CONFIG_SYS_INIT_RAM_ADDR_PHYS \ 3178d67c368SShengzhou Liu ((CONFIG_SYS_INIT_RAM_ADDR_PHYS_HIGH * 1ull << 32) | \ 3188d67c368SShengzhou Liu CONFIG_SYS_INIT_RAM_ADDR_PHYS_LOW) 3198d67c368SShengzhou Liu #define CONFIG_SYS_INIT_RAM_SIZE 0x00004000 3208d67c368SShengzhou Liu #define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_SIZE - \ 3218d67c368SShengzhou Liu GENERATED_GBL_DATA_SIZE) 3228d67c368SShengzhou Liu #define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET 3238d67c368SShengzhou Liu #define CONFIG_SYS_MONITOR_LEN (512 * 1024) 3248d67c368SShengzhou Liu #define CONFIG_SYS_MALLOC_LEN (4 * 1024 * 1024) 3258d67c368SShengzhou Liu 3268d67c368SShengzhou Liu /* 3278d67c368SShengzhou Liu * Serial Port 3288d67c368SShengzhou Liu */ 3298d67c368SShengzhou Liu #define CONFIG_CONS_INDEX 1 3308d67c368SShengzhou Liu #define CONFIG_SYS_NS16550 3318d67c368SShengzhou Liu #define CONFIG_SYS_NS16550_SERIAL 3328d67c368SShengzhou Liu #define CONFIG_SYS_NS16550_REG_SIZE 1 3338d67c368SShengzhou Liu #define CONFIG_SYS_NS16550_CLK (get_bus_freq(0)/2) 3348d67c368SShengzhou Liu #define CONFIG_SYS_BAUDRATE_TABLE \ 3358d67c368SShengzhou Liu {300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200} 3368d67c368SShengzhou Liu #define CONFIG_SYS_NS16550_COM1 (CONFIG_SYS_CCSRBAR+0x11C500) 3378d67c368SShengzhou Liu #define CONFIG_SYS_NS16550_COM2 (CONFIG_SYS_CCSRBAR+0x11C600) 3388d67c368SShengzhou Liu #define CONFIG_SYS_NS16550_COM3 (CONFIG_SYS_CCSRBAR+0x11D500) 3398d67c368SShengzhou Liu #define CONFIG_SYS_NS16550_COM4 (CONFIG_SYS_CCSRBAR+0x11D600) 3408d67c368SShengzhou Liu 3418d67c368SShengzhou Liu /* Use the HUSH parser */ 3428d67c368SShengzhou Liu #define CONFIG_SYS_HUSH_PARSER 3438d67c368SShengzhou Liu #define CONFIG_SYS_PROMPT_HUSH_PS2 "> " 3448d67c368SShengzhou Liu 3458d67c368SShengzhou Liu /* pass open firmware flat tree */ 3468d67c368SShengzhou Liu #define CONFIG_OF_LIBFDT 3478d67c368SShengzhou Liu #define CONFIG_OF_BOARD_SETUP 3488d67c368SShengzhou Liu #define CONFIG_OF_STDOUT_VIA_ALIAS 3498d67c368SShengzhou Liu 3508d67c368SShengzhou Liu /* new uImage format support */ 3518d67c368SShengzhou Liu #define CONFIG_FIT 3528d67c368SShengzhou Liu #define CONFIG_FIT_VERBOSE /* enable fit_format_{error,warning}() */ 3538d67c368SShengzhou Liu 3548d67c368SShengzhou Liu /* 3558d67c368SShengzhou Liu * I2C 3568d67c368SShengzhou Liu */ 3578d67c368SShengzhou Liu #define CONFIG_SYS_I2C 3588d67c368SShengzhou Liu #define CONFIG_SYS_I2C_FSL 3598d67c368SShengzhou Liu #define CONFIG_SYS_FSL_I2C_SLAVE 0x7F 3608d67c368SShengzhou Liu #define CONFIG_SYS_FSL_I2C2_SLAVE 0x7F 3618d67c368SShengzhou Liu #define CONFIG_SYS_FSL_I2C3_SLAVE 0x7F 3628d67c368SShengzhou Liu #define CONFIG_SYS_FSL_I2C4_SLAVE 0x7F 3638d67c368SShengzhou Liu #define CONFIG_SYS_FSL_I2C_OFFSET 0x118000 3648d67c368SShengzhou Liu #define CONFIG_SYS_FSL_I2C2_OFFSET 0x118100 3658d67c368SShengzhou Liu #define CONFIG_SYS_FSL_I2C3_OFFSET 0x119000 3668d67c368SShengzhou Liu #define CONFIG_SYS_FSL_I2C4_OFFSET 0x119100 3678d67c368SShengzhou Liu #define CONFIG_SYS_FSL_I2C_SPEED 100000 3688d67c368SShengzhou Liu #define CONFIG_SYS_FSL_I2C2_SPEED 100000 3698d67c368SShengzhou Liu #define CONFIG_SYS_FSL_I2C3_SPEED 100000 3708d67c368SShengzhou Liu #define CONFIG_SYS_FSL_I2C4_SPEED 100000 3718d67c368SShengzhou Liu #define I2C_MUX_PCA_ADDR_PRI 0x77 /* I2C bus multiplexer,primary */ 3728d67c368SShengzhou Liu #define I2C_MUX_PCA_ADDR_SEC1 0x75 /* I2C bus multiplexer,secondary 1 */ 3738d67c368SShengzhou Liu #define I2C_MUX_PCA_ADDR_SEC2 0x76 /* I2C bus multiplexer,secondary 2 */ 3748d67c368SShengzhou Liu #define I2C_MUX_CH_DEFAULT 0x8 3758d67c368SShengzhou Liu 3768d67c368SShengzhou Liu 3778d67c368SShengzhou Liu /* 3788d67c368SShengzhou Liu * RapidIO 3798d67c368SShengzhou Liu */ 3808d67c368SShengzhou Liu #define CONFIG_SYS_SRIO1_MEM_VIRT 0xa0000000 3818d67c368SShengzhou Liu #define CONFIG_SYS_SRIO1_MEM_PHYS 0xc20000000ull 3828d67c368SShengzhou Liu #define CONFIG_SYS_SRIO1_MEM_SIZE 0x10000000 /* 256M */ 3838d67c368SShengzhou Liu #define CONFIG_SYS_SRIO2_MEM_VIRT 0xb0000000 3848d67c368SShengzhou Liu #define CONFIG_SYS_SRIO2_MEM_PHYS 0xc30000000ull 3858d67c368SShengzhou Liu #define CONFIG_SYS_SRIO2_MEM_SIZE 0x10000000 /* 256M */ 3868d67c368SShengzhou Liu /* 3878d67c368SShengzhou Liu * for slave u-boot IMAGE instored in master memory space, 3888d67c368SShengzhou Liu * PHYS must be aligned based on the SIZE 3898d67c368SShengzhou Liu */ 3908d67c368SShengzhou Liu #define CONFIG_SRIO_PCIE_BOOT_IMAGE_MEM_PHYS 0xfef080000ull 3918d67c368SShengzhou Liu #define CONFIG_SRIO_PCIE_BOOT_IMAGE_MEM_BUS1 0xfff80000ull 3928d67c368SShengzhou Liu #define CONFIG_SRIO_PCIE_BOOT_IMAGE_SIZE 0x80000 /* 512K */ 3938d67c368SShengzhou Liu #define CONFIG_SRIO_PCIE_BOOT_IMAGE_MEM_BUS2 0x3fff80000ull 3948d67c368SShengzhou Liu /* 3958d67c368SShengzhou Liu * for slave UCODE and ENV instored in master memory space, 3968d67c368SShengzhou Liu * PHYS must be aligned based on the SIZE 3978d67c368SShengzhou Liu */ 3988d67c368SShengzhou Liu #define CONFIG_SRIO_PCIE_BOOT_UCODE_ENV_MEM_PHYS 0xfef040000ull 3998d67c368SShengzhou Liu #define CONFIG_SRIO_PCIE_BOOT_UCODE_ENV_MEM_BUS 0x3ffe00000ull 4008d67c368SShengzhou Liu #define CONFIG_SRIO_PCIE_BOOT_UCODE_ENV_SIZE 0x40000 /* 256K */ 4018d67c368SShengzhou Liu 4028d67c368SShengzhou Liu /* slave core release by master*/ 4038d67c368SShengzhou Liu #define CONFIG_SRIO_PCIE_BOOT_BRR_OFFSET 0xe00e4 4048d67c368SShengzhou Liu #define CONFIG_SRIO_PCIE_BOOT_RELEASE_MASK 0x00000001 /* release core 0 */ 4058d67c368SShengzhou Liu 4068d67c368SShengzhou Liu /* 4078d67c368SShengzhou Liu * SRIO_PCIE_BOOT - SLAVE 4088d67c368SShengzhou Liu */ 4098d67c368SShengzhou Liu #ifdef CONFIG_SRIO_PCIE_BOOT_SLAVE 4108d67c368SShengzhou Liu #define CONFIG_SYS_SRIO_PCIE_BOOT_UCODE_ENV_ADDR 0xFFE00000 4118d67c368SShengzhou Liu #define CONFIG_SYS_SRIO_PCIE_BOOT_UCODE_ENV_ADDR_PHYS \ 4128d67c368SShengzhou Liu (0x300000000ull | CONFIG_SYS_SRIO_PCIE_BOOT_UCODE_ENV_ADDR) 4138d67c368SShengzhou Liu #endif 4148d67c368SShengzhou Liu 4158d67c368SShengzhou Liu /* 4168d67c368SShengzhou Liu * eSPI - Enhanced SPI 4178d67c368SShengzhou Liu */ 4188d67c368SShengzhou Liu #ifdef CONFIG_SPI_FLASH 4198d67c368SShengzhou Liu #define CONFIG_FSL_ESPI 4208d67c368SShengzhou Liu #define CONFIG_SPI_FLASH_STMICRO 4218d67c368SShengzhou Liu #define CONFIG_SPI_FLASH_BAR 4228d67c368SShengzhou Liu #define CONFIG_CMD_SF 4238d67c368SShengzhou Liu #define CONFIG_SF_DEFAULT_SPEED 10000000 4248d67c368SShengzhou Liu #define CONFIG_SF_DEFAULT_MODE 0 4258d67c368SShengzhou Liu #endif 4268d67c368SShengzhou Liu 4278d67c368SShengzhou Liu /* 4288d67c368SShengzhou Liu * General PCI 4298d67c368SShengzhou Liu * Memory space is mapped 1-1, but I/O space must start from 0. 4308d67c368SShengzhou Liu */ 4318d67c368SShengzhou Liu #define CONFIG_PCI /* Enable PCI/PCIE */ 4328d67c368SShengzhou Liu #define CONFIG_PCIE1 /* PCIE controler 1 */ 4338d67c368SShengzhou Liu #define CONFIG_PCIE2 /* PCIE controler 2 */ 4348d67c368SShengzhou Liu #define CONFIG_PCIE3 /* PCIE controler 3 */ 4358d67c368SShengzhou Liu #define CONFIG_PCIE4 /* PCIE controler 4 */ 4368d67c368SShengzhou Liu #define CONFIG_FSL_PCI_INIT /* Use common FSL init code */ 4378d67c368SShengzhou Liu #define CONFIG_SYS_PCI_64BIT /* enable 64-bit PCI resources */ 4388d67c368SShengzhou Liu /* controller 1, direct to uli, tgtid 3, Base address 20000 */ 4398d67c368SShengzhou Liu #define CONFIG_SYS_PCIE1_MEM_VIRT 0x80000000 4408d67c368SShengzhou Liu #define CONFIG_SYS_PCIE1_MEM_BUS 0xe0000000 4418d67c368SShengzhou Liu #define CONFIG_SYS_PCIE1_MEM_PHYS 0xc00000000ull 4428d67c368SShengzhou Liu #define CONFIG_SYS_PCIE1_MEM_SIZE 0x20000000 /* 512M */ 4438d67c368SShengzhou Liu #define CONFIG_SYS_PCIE1_IO_VIRT 0xf8000000 4448d67c368SShengzhou Liu #define CONFIG_SYS_PCIE1_IO_BUS 0x00000000 4458d67c368SShengzhou Liu #define CONFIG_SYS_PCIE1_IO_PHYS 0xff8000000ull 4468d67c368SShengzhou Liu #define CONFIG_SYS_PCIE1_IO_SIZE 0x00010000 /* 64k */ 4478d67c368SShengzhou Liu 4488d67c368SShengzhou Liu /* controller 2, Slot 2, tgtid 2, Base address 201000 */ 4498d67c368SShengzhou Liu #define CONFIG_SYS_PCIE2_MEM_VIRT 0xa0000000 4508d67c368SShengzhou Liu #define CONFIG_SYS_PCIE2_MEM_BUS 0xe0000000 4518d67c368SShengzhou Liu #define CONFIG_SYS_PCIE2_MEM_PHYS 0xc20000000ull 4528d67c368SShengzhou Liu #define CONFIG_SYS_PCIE2_MEM_SIZE 0x10000000 /* 256M */ 4538d67c368SShengzhou Liu #define CONFIG_SYS_PCIE2_IO_VIRT 0xf8010000 4548d67c368SShengzhou Liu #define CONFIG_SYS_PCIE2_IO_BUS 0x00000000 4558d67c368SShengzhou Liu #define CONFIG_SYS_PCIE2_IO_PHYS 0xff8010000ull 4568d67c368SShengzhou Liu #define CONFIG_SYS_PCIE2_IO_SIZE 0x00010000 /* 64k */ 4578d67c368SShengzhou Liu 4588d67c368SShengzhou Liu /* controller 3, Slot 1, tgtid 1, Base address 202000 */ 4598d67c368SShengzhou Liu #define CONFIG_SYS_PCIE3_MEM_VIRT 0xb0000000 4608d67c368SShengzhou Liu #define CONFIG_SYS_PCIE3_MEM_BUS 0xe0000000 4618d67c368SShengzhou Liu #define CONFIG_SYS_PCIE3_MEM_PHYS 0xc30000000ull 4628d67c368SShengzhou Liu #define CONFIG_SYS_PCIE3_MEM_SIZE 0x10000000 /* 256M */ 4638d67c368SShengzhou Liu #define CONFIG_SYS_PCIE3_IO_VIRT 0xf8020000 4648d67c368SShengzhou Liu #define CONFIG_SYS_PCIE3_IO_BUS 0x00000000 4658d67c368SShengzhou Liu #define CONFIG_SYS_PCIE3_IO_PHYS 0xff8020000ull 4668d67c368SShengzhou Liu #define CONFIG_SYS_PCIE3_IO_SIZE 0x00010000 /* 64k */ 4678d67c368SShengzhou Liu 4688d67c368SShengzhou Liu /* controller 4, Base address 203000 */ 4698d67c368SShengzhou Liu #define CONFIG_SYS_PCIE4_MEM_VIRT 0xc0000000 4708d67c368SShengzhou Liu #define CONFIG_SYS_PCIE4_MEM_BUS 0xe0000000 4718d67c368SShengzhou Liu #define CONFIG_SYS_PCIE4_MEM_PHYS 0xc40000000ull 4728d67c368SShengzhou Liu #define CONFIG_SYS_PCIE4_MEM_SIZE 0x10000000 /* 256M */ 4738d67c368SShengzhou Liu #define CONFIG_SYS_PCIE4_IO_BUS 0x00000000 4748d67c368SShengzhou Liu #define CONFIG_SYS_PCIE4_IO_PHYS 0xff8030000ull 4758d67c368SShengzhou Liu #define CONFIG_SYS_PCIE4_IO_SIZE 0x00010000 /* 64k */ 4768d67c368SShengzhou Liu 4778d67c368SShengzhou Liu #ifdef CONFIG_PCI 4788d67c368SShengzhou Liu #define CONFIG_PCI_INDIRECT_BRIDGE 4798d67c368SShengzhou Liu #define CONFIG_FSL_PCIE_RESET /* need PCIe reset errata LSZ ADD */ 4808d67c368SShengzhou Liu #define CONFIG_NET_MULTI 4818d67c368SShengzhou Liu #define CONFIG_E1000 4828d67c368SShengzhou Liu #define CONFIG_PCI_PNP /* do pci plug-and-play */ 4838d67c368SShengzhou Liu #define CONFIG_PCI_SCAN_SHOW /* show pci devices on startup */ 4848d67c368SShengzhou Liu #define CONFIG_DOS_PARTITION 4858d67c368SShengzhou Liu #endif 4868d67c368SShengzhou Liu 4878d67c368SShengzhou Liu /* Qman/Bman */ 4888d67c368SShengzhou Liu #ifndef CONFIG_NOBQFMAN 4898d67c368SShengzhou Liu #define CONFIG_SYS_DPAA_QBMAN /* Support Q/Bman */ 4908d67c368SShengzhou Liu #define CONFIG_SYS_BMAN_NUM_PORTALS 18 4918d67c368SShengzhou Liu #define CONFIG_SYS_BMAN_MEM_BASE 0xf4000000 4928d67c368SShengzhou Liu #define CONFIG_SYS_BMAN_MEM_PHYS 0xff4000000ull 4938d67c368SShengzhou Liu #define CONFIG_SYS_BMAN_MEM_SIZE 0x02000000 4948d67c368SShengzhou Liu #define CONFIG_SYS_QMAN_NUM_PORTALS 18 4958d67c368SShengzhou Liu #define CONFIG_SYS_QMAN_MEM_BASE 0xf6000000 4968d67c368SShengzhou Liu #define CONFIG_SYS_QMAN_MEM_PHYS 0xff6000000ull 4978d67c368SShengzhou Liu #define CONFIG_SYS_QMAN_MEM_SIZE 0x02000000 4988d67c368SShengzhou Liu 4998d67c368SShengzhou Liu #define CONFIG_SYS_DPAA_FMAN 5008d67c368SShengzhou Liu #define CONFIG_SYS_DPAA_PME 5018d67c368SShengzhou Liu #define CONFIG_SYS_PMAN 5028d67c368SShengzhou Liu #define CONFIG_SYS_DPAA_DCE 5038d67c368SShengzhou Liu #define CONFIG_SYS_DPAA_RMAN /* RMan */ 5048d67c368SShengzhou Liu #define CONFIG_SYS_INTERLAKEN 5058d67c368SShengzhou Liu 5068d67c368SShengzhou Liu /* Default address of microcode for the Linux Fman driver */ 5078d67c368SShengzhou Liu #if defined(CONFIG_SPIFLASH) 5088d67c368SShengzhou Liu /* 5098d67c368SShengzhou Liu * env is stored at 0x100000, sector size is 0x10000, ucode is stored after 5108d67c368SShengzhou Liu * env, so we got 0x110000. 5118d67c368SShengzhou Liu */ 5128d67c368SShengzhou Liu #define CONFIG_SYS_QE_FW_IN_SPIFLASH 5138d67c368SShengzhou Liu #define CONFIG_SYS_QE_FMAN_FW_ADDR 0x110000 5148d67c368SShengzhou Liu #define CONFIG_CORTINA_FW_ADDR 0x120000 5158d67c368SShengzhou Liu 5168d67c368SShengzhou Liu #elif defined(CONFIG_SDCARD) 5178d67c368SShengzhou Liu /* 5188d67c368SShengzhou Liu * PBL SD boot image should stored at 0x1000(8 blocks), the size of the image is 5198d67c368SShengzhou Liu * about 825KB (1650 blocks), Env is stored after the image, and the env size is 5208d67c368SShengzhou Liu * 0x2000 (16 blocks), 8 + 1650 + 16 = 1674, enlarge it to 1680. 5218d67c368SShengzhou Liu */ 5228d67c368SShengzhou Liu #define CONFIG_SYS_QE_FMAN_FW_IN_MMC 5238d67c368SShengzhou Liu #define CONFIG_SYS_QE_FMAN_FW_ADDR (512 * 1680) 5248d67c368SShengzhou Liu #define CONFIG_CORTINA_FW_ADDR (512 * 1808) 5258d67c368SShengzhou Liu 5268d67c368SShengzhou Liu #elif defined(CONFIG_NAND) 5278d67c368SShengzhou Liu #define CONFIG_SYS_QE_FMAN_FW_IN_NAND 5288d67c368SShengzhou Liu #define CONFIG_SYS_QE_FMAN_FW_ADDR (6 * CONFIG_SYS_NAND_BLOCK_SIZE) 5298d67c368SShengzhou Liu #define CONFIG_CORTINA_FW_ADDR (7 * CONFIG_SYS_NAND_BLOCK_SIZE) 5308d67c368SShengzhou Liu #elif defined(CONFIG_SRIO_PCIE_BOOT_SLAVE) 5318d67c368SShengzhou Liu /* 5328d67c368SShengzhou Liu * Slave has no ucode locally, it can fetch this from remote. When implementing 5338d67c368SShengzhou Liu * in two corenet boards, slave's ucode could be stored in master's memory 5348d67c368SShengzhou Liu * space, the address can be mapped from slave TLB->slave LAW-> 5358d67c368SShengzhou Liu * slave SRIO or PCIE outbound window->master inbound window-> 5368d67c368SShengzhou Liu * master LAW->the ucode address in master's memory space. 5378d67c368SShengzhou Liu */ 5388d67c368SShengzhou Liu #define CONFIG_SYS_QE_FMAN_FW_IN_REMOTE 5398d67c368SShengzhou Liu #define CONFIG_SYS_QE_FMAN_FW_ADDR 0xFFE00000 5408d67c368SShengzhou Liu #define CONFIG_CORTINA_FW_ADDR 0xFFE10000 5418d67c368SShengzhou Liu #else 5428d67c368SShengzhou Liu #define CONFIG_SYS_QE_FMAN_FW_IN_NOR 5438d67c368SShengzhou Liu #define CONFIG_SYS_QE_FMAN_FW_ADDR 0xEFF00000 5448d67c368SShengzhou Liu #define CONFIG_CORTINA_FW_ADDR 0xEFE00000 5458d67c368SShengzhou Liu #endif 5468d67c368SShengzhou Liu #define CONFIG_SYS_QE_FMAN_FW_LENGTH 0x10000 5478d67c368SShengzhou Liu #define CONFIG_SYS_FDT_PAD (0x3000 + CONFIG_SYS_QE_FMAN_FW_LENGTH) 5488d67c368SShengzhou Liu #endif /* CONFIG_NOBQFMAN */ 5498d67c368SShengzhou Liu 5508d67c368SShengzhou Liu #ifdef CONFIG_SYS_DPAA_FMAN 5518d67c368SShengzhou Liu #define CONFIG_FMAN_ENET 5528d67c368SShengzhou Liu #define CONFIG_PHYLIB_10G 5538d67c368SShengzhou Liu #define CONFIG_PHY_CORTINA 5548d67c368SShengzhou Liu #define CONFIG_PHY_AQ1202 5558d67c368SShengzhou Liu #define CONFIG_PHY_REALTEK 5568d67c368SShengzhou Liu #define CONFIG_CORTINA_FW_LENGTH 0x40000 5578d67c368SShengzhou Liu #define RGMII_PHY1_ADDR 0x01 /* RealTek RTL8211E */ 5588d67c368SShengzhou Liu #define RGMII_PHY2_ADDR 0x02 5598d67c368SShengzhou Liu #define CORTINA_PHY_ADDR1 0x0c /* Cortina CS4315 */ 5608d67c368SShengzhou Liu #define CORTINA_PHY_ADDR2 0x0d 5618d67c368SShengzhou Liu #define FM1_10GEC3_PHY_ADDR 0x00 /* Aquantia AQ1202 10G Base-T */ 5628d67c368SShengzhou Liu #define FM1_10GEC4_PHY_ADDR 0x01 5638d67c368SShengzhou Liu #endif 5648d67c368SShengzhou Liu 5658d67c368SShengzhou Liu 5668d67c368SShengzhou Liu #ifdef CONFIG_FMAN_ENET 5678d67c368SShengzhou Liu #define CONFIG_MII /* MII PHY management */ 5688d67c368SShengzhou Liu #define CONFIG_ETHPRIME "FM1@DTSEC3" 5698d67c368SShengzhou Liu #define CONFIG_PHY_GIGE /* Include GbE speed/duplex detection */ 5708d67c368SShengzhou Liu #endif 5718d67c368SShengzhou Liu 5728d67c368SShengzhou Liu /* 5738d67c368SShengzhou Liu * SATA 5748d67c368SShengzhou Liu */ 5758d67c368SShengzhou Liu #ifdef CONFIG_FSL_SATA_V2 5768d67c368SShengzhou Liu #define CONFIG_LIBATA 5778d67c368SShengzhou Liu #define CONFIG_FSL_SATA 5788d67c368SShengzhou Liu #define CONFIG_SYS_SATA_MAX_DEVICE 2 5798d67c368SShengzhou Liu #define CONFIG_SATA1 5808d67c368SShengzhou Liu #define CONFIG_SYS_SATA1 CONFIG_SYS_MPC85xx_SATA1_ADDR 5818d67c368SShengzhou Liu #define CONFIG_SYS_SATA1_FLAGS FLAGS_DMA 5828d67c368SShengzhou Liu #define CONFIG_SATA2 5838d67c368SShengzhou Liu #define CONFIG_SYS_SATA2 CONFIG_SYS_MPC85xx_SATA2_ADDR 5848d67c368SShengzhou Liu #define CONFIG_SYS_SATA2_FLAGS FLAGS_DMA 5858d67c368SShengzhou Liu #define CONFIG_LBA48 5868d67c368SShengzhou Liu #define CONFIG_CMD_SATA 5878d67c368SShengzhou Liu #define CONFIG_DOS_PARTITION 5888d67c368SShengzhou Liu #define CONFIG_CMD_EXT2 5898d67c368SShengzhou Liu #endif 5908d67c368SShengzhou Liu 5918d67c368SShengzhou Liu /* 5928d67c368SShengzhou Liu * USB 5938d67c368SShengzhou Liu */ 5948d67c368SShengzhou Liu #ifdef CONFIG_USB_EHCI 5958d67c368SShengzhou Liu #define CONFIG_CMD_USB 5968d67c368SShengzhou Liu #define CONFIG_USB_STORAGE 5978d67c368SShengzhou Liu #define CONFIG_USB_EHCI_FSL 5988d67c368SShengzhou Liu #define CONFIG_EHCI_HCD_INIT_AFTER_RESET 5998d67c368SShengzhou Liu #define CONFIG_CMD_EXT2 6008d67c368SShengzhou Liu #define CONFIG_HAS_FSL_DR_USB 6018d67c368SShengzhou Liu #endif 6028d67c368SShengzhou Liu 6038d67c368SShengzhou Liu /* 6048d67c368SShengzhou Liu * SDHC 6058d67c368SShengzhou Liu */ 6068d67c368SShengzhou Liu #ifdef CONFIG_MMC 6078d67c368SShengzhou Liu #define CONFIG_CMD_MMC 6088d67c368SShengzhou Liu #define CONFIG_FSL_ESDHC 6098d67c368SShengzhou Liu #define CONFIG_SYS_FSL_ESDHC_ADDR CONFIG_SYS_MPC85xx_ESDHC_ADDR 6108d67c368SShengzhou Liu #define CONFIG_SYS_FSL_ESDHC_BROKEN_TIMEOUT 6118d67c368SShengzhou Liu #define CONFIG_SYS_FSL_MMC_HAS_CAPBLT_VS33 6128d67c368SShengzhou Liu #define CONFIG_GENERIC_MMC 6138d67c368SShengzhou Liu #define CONFIG_CMD_EXT2 6148d67c368SShengzhou Liu #define CONFIG_CMD_FAT 6158d67c368SShengzhou Liu #define CONFIG_DOS_PARTITION 6168d67c368SShengzhou Liu #endif 6178d67c368SShengzhou Liu 6188d67c368SShengzhou Liu /* 6198d67c368SShengzhou Liu * Environment 6208d67c368SShengzhou Liu */ 6218d67c368SShengzhou Liu 6228d67c368SShengzhou Liu /* 6238d67c368SShengzhou Liu * Command line configuration. 6248d67c368SShengzhou Liu */ 6258d67c368SShengzhou Liu #include <config_cmd_default.h> 6268d67c368SShengzhou Liu 6278d67c368SShengzhou Liu #define CONFIG_CMD_DHCP 6288d67c368SShengzhou Liu #define CONFIG_CMD_ELF 6298d67c368SShengzhou Liu #define CONFIG_CMD_MII 6308d67c368SShengzhou Liu #define CONFIG_CMD_I2C 6318d67c368SShengzhou Liu #define CONFIG_CMD_PING 6328d67c368SShengzhou Liu #define CONFIG_CMD_ECHO 6338d67c368SShengzhou Liu #define CONFIG_CMD_SETEXPR 6348d67c368SShengzhou Liu #define CONFIG_CMD_REGINFO 6358d67c368SShengzhou Liu #define CONFIG_CMD_BDI 6368d67c368SShengzhou Liu 6378d67c368SShengzhou Liu #ifdef CONFIG_PCI 6388d67c368SShengzhou Liu #define CONFIG_CMD_PCI 6398d67c368SShengzhou Liu #define CONFIG_CMD_NET 6408d67c368SShengzhou Liu #endif 6418d67c368SShengzhou Liu 6428d67c368SShengzhou Liu /* 6438d67c368SShengzhou Liu * Miscellaneous configurable options 6448d67c368SShengzhou Liu */ 6458d67c368SShengzhou Liu #define CONFIG_SYS_LONGHELP /* undef to save memory */ 6468d67c368SShengzhou Liu #define CONFIG_CMDLINE_EDITING /* Command-line editing */ 6478d67c368SShengzhou Liu #define CONFIG_AUTO_COMPLETE /* add autocompletion support */ 6488d67c368SShengzhou Liu #define CONFIG_SYS_LOAD_ADDR 0x2000000 /* default load address */ 6498d67c368SShengzhou Liu #define CONFIG_SYS_PROMPT "=> " /* Monitor Command Prompt */ 6508d67c368SShengzhou Liu #ifdef CONFIG_CMD_KGDB 6518d67c368SShengzhou Liu #define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buffer Size */ 6528d67c368SShengzhou Liu #else 6538d67c368SShengzhou Liu #define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */ 6548d67c368SShengzhou Liu #endif 6558d67c368SShengzhou Liu #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) 6568d67c368SShengzhou Liu #define CONFIG_SYS_MAXARGS 16 /* max number of command args */ 6578d67c368SShengzhou Liu #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE/* Boot Argument Buffer Size */ 6588d67c368SShengzhou Liu #define CONFIG_SYS_HZ 1000 /* decrementer freq: 1ms ticks*/ 6598d67c368SShengzhou Liu 6608d67c368SShengzhou Liu /* 6618d67c368SShengzhou Liu * For booting Linux, the board info and command line data 6628d67c368SShengzhou Liu * have to be in the first 64 MB of memory, since this is 6638d67c368SShengzhou Liu * the maximum mapped by the Linux kernel during initialization. 6648d67c368SShengzhou Liu */ 6658d67c368SShengzhou Liu #define CONFIG_SYS_BOOTMAPSZ (64 << 20) /* Initial map for Linux*/ 6668d67c368SShengzhou Liu #define CONFIG_SYS_BOOTM_LEN (64 << 20) /* Increase max gunzip size */ 6678d67c368SShengzhou Liu 6688d67c368SShengzhou Liu #ifdef CONFIG_CMD_KGDB 6698d67c368SShengzhou Liu #define CONFIG_KGDB_BAUDRATE 230400 /* speed to run kgdb serial port */ 6708d67c368SShengzhou Liu #define CONFIG_KGDB_SER_INDEX 2 /* which serial port to use */ 6718d67c368SShengzhou Liu #endif 6728d67c368SShengzhou Liu 6738d67c368SShengzhou Liu /* 6748d67c368SShengzhou Liu * Environment Configuration 6758d67c368SShengzhou Liu */ 6768d67c368SShengzhou Liu #define CONFIG_ROOTPATH "/opt/nfsroot" 6778d67c368SShengzhou Liu #define CONFIG_BOOTFILE "uImage" 6788d67c368SShengzhou Liu #define CONFIG_UBOOTPATH "u-boot.bin" /* U-Boot image on TFTP server */ 6798d67c368SShengzhou Liu 6808d67c368SShengzhou Liu /* default location for tftp and bootm */ 6818d67c368SShengzhou Liu #define CONFIG_LOADADDR 1000000 6828d67c368SShengzhou Liu #define CONFIG_BAUDRATE 115200 6838d67c368SShengzhou Liu #define CONFIG_BOOTDELAY 10 /* -1 disables auto-boot */ 6848d67c368SShengzhou Liu #define __USB_PHY_TYPE utmi 6858d67c368SShengzhou Liu 6868d67c368SShengzhou Liu #define CONFIG_EXTRA_ENV_SETTINGS \ 6878d67c368SShengzhou Liu "hwconfig=fsl_ddr:" \ 6888d67c368SShengzhou Liu "ctlr_intlv=" __stringify(CTRL_INTLV_PREFERED) "," \ 6898d67c368SShengzhou Liu "bank_intlv=auto;" \ 6908d67c368SShengzhou Liu "usb1:dr_mode=host,phy_type=" __stringify(__USB_PHY_TYPE) "\0"\ 6918d67c368SShengzhou Liu "netdev=eth0\0" \ 6928d67c368SShengzhou Liu "uboot=" __stringify(CONFIG_UBOOTPATH) "\0" \ 6938d67c368SShengzhou Liu "ubootaddr=" __stringify(CONFIG_SYS_TEXT_BASE) "\0" \ 6948d67c368SShengzhou Liu "tftpflash=tftpboot $loadaddr $uboot && " \ 6958d67c368SShengzhou Liu "protect off $ubootaddr +$filesize && " \ 6968d67c368SShengzhou Liu "erase $ubootaddr +$filesize && " \ 6978d67c368SShengzhou Liu "cp.b $loadaddr $ubootaddr $filesize && " \ 6988d67c368SShengzhou Liu "protect on $ubootaddr +$filesize && " \ 6998d67c368SShengzhou Liu "cmp.b $loadaddr $ubootaddr $filesize\0" \ 7008d67c368SShengzhou Liu "consoledev=ttyS0\0" \ 7018d67c368SShengzhou Liu "ramdiskaddr=2000000\0" \ 7028d67c368SShengzhou Liu "ramdiskfile=t2080rdb/ramdisk.uboot\0" \ 7038d67c368SShengzhou Liu "fdtaddr=c00000\0" \ 7048d67c368SShengzhou Liu "fdtfile=t2080rdb/t2080rdb.dtb\0" \ 7058d67c368SShengzhou Liu "bdev=sda3\0" \ 7068d67c368SShengzhou Liu "c=ffe\0" 7078d67c368SShengzhou Liu 7088d67c368SShengzhou Liu /* 7098d67c368SShengzhou Liu * For emulation this causes u-boot to jump to the start of the 7108d67c368SShengzhou Liu * proof point app code automatically 7118d67c368SShengzhou Liu */ 7128d67c368SShengzhou Liu #define CONFIG_PROOF_POINTS \ 7138d67c368SShengzhou Liu "setenv bootargs root=/dev/$bdev rw " \ 7148d67c368SShengzhou Liu "console=$consoledev,$baudrate $othbootargs;" \ 7158d67c368SShengzhou Liu "cpu 1 release 0x29000000 - - -;" \ 7168d67c368SShengzhou Liu "cpu 2 release 0x29000000 - - -;" \ 7178d67c368SShengzhou Liu "cpu 3 release 0x29000000 - - -;" \ 7188d67c368SShengzhou Liu "cpu 4 release 0x29000000 - - -;" \ 7198d67c368SShengzhou Liu "cpu 5 release 0x29000000 - - -;" \ 7208d67c368SShengzhou Liu "cpu 6 release 0x29000000 - - -;" \ 7218d67c368SShengzhou Liu "cpu 7 release 0x29000000 - - -;" \ 7228d67c368SShengzhou Liu "go 0x29000000" 7238d67c368SShengzhou Liu 7248d67c368SShengzhou Liu #define CONFIG_HVBOOT \ 7258d67c368SShengzhou Liu "setenv bootargs config-addr=0x60000000; " \ 7268d67c368SShengzhou Liu "bootm 0x01000000 - 0x00f00000" 7278d67c368SShengzhou Liu 7288d67c368SShengzhou Liu #define CONFIG_ALU \ 7298d67c368SShengzhou Liu "setenv bootargs root=/dev/$bdev rw " \ 7308d67c368SShengzhou Liu "console=$consoledev,$baudrate $othbootargs;" \ 7318d67c368SShengzhou Liu "cpu 1 release 0x01000000 - - -;" \ 7328d67c368SShengzhou Liu "cpu 2 release 0x01000000 - - -;" \ 7338d67c368SShengzhou Liu "cpu 3 release 0x01000000 - - -;" \ 7348d67c368SShengzhou Liu "cpu 4 release 0x01000000 - - -;" \ 7358d67c368SShengzhou Liu "cpu 5 release 0x01000000 - - -;" \ 7368d67c368SShengzhou Liu "cpu 6 release 0x01000000 - - -;" \ 7378d67c368SShengzhou Liu "cpu 7 release 0x01000000 - - -;" \ 7388d67c368SShengzhou Liu "go 0x01000000" 7398d67c368SShengzhou Liu 7408d67c368SShengzhou Liu #define CONFIG_LINUX \ 7418d67c368SShengzhou Liu "setenv bootargs root=/dev/ram rw " \ 7428d67c368SShengzhou Liu "console=$consoledev,$baudrate $othbootargs;" \ 7438d67c368SShengzhou Liu "setenv ramdiskaddr 0x02000000;" \ 7448d67c368SShengzhou Liu "setenv fdtaddr 0x00c00000;" \ 7458d67c368SShengzhou Liu "setenv loadaddr 0x1000000;" \ 7468d67c368SShengzhou Liu "bootm $loadaddr $ramdiskaddr $fdtaddr" 7478d67c368SShengzhou Liu 7488d67c368SShengzhou Liu #define CONFIG_HDBOOT \ 7498d67c368SShengzhou Liu "setenv bootargs root=/dev/$bdev rw " \ 7508d67c368SShengzhou Liu "console=$consoledev,$baudrate $othbootargs;" \ 7518d67c368SShengzhou Liu "tftp $loadaddr $bootfile;" \ 7528d67c368SShengzhou Liu "tftp $fdtaddr $fdtfile;" \ 7538d67c368SShengzhou Liu "bootm $loadaddr - $fdtaddr" 7548d67c368SShengzhou Liu 7558d67c368SShengzhou Liu #define CONFIG_NFSBOOTCOMMAND \ 7568d67c368SShengzhou Liu "setenv bootargs root=/dev/nfs rw " \ 7578d67c368SShengzhou Liu "nfsroot=$serverip:$rootpath " \ 7588d67c368SShengzhou Liu "ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname:$netdev:off " \ 7598d67c368SShengzhou Liu "console=$consoledev,$baudrate $othbootargs;" \ 7608d67c368SShengzhou Liu "tftp $loadaddr $bootfile;" \ 7618d67c368SShengzhou Liu "tftp $fdtaddr $fdtfile;" \ 7628d67c368SShengzhou Liu "bootm $loadaddr - $fdtaddr" 7638d67c368SShengzhou Liu 7648d67c368SShengzhou Liu #define CONFIG_RAMBOOTCOMMAND \ 7658d67c368SShengzhou Liu "setenv bootargs root=/dev/ram rw " \ 7668d67c368SShengzhou Liu "console=$consoledev,$baudrate $othbootargs;" \ 7678d67c368SShengzhou Liu "tftp $ramdiskaddr $ramdiskfile;" \ 7688d67c368SShengzhou Liu "tftp $loadaddr $bootfile;" \ 7698d67c368SShengzhou Liu "tftp $fdtaddr $fdtfile;" \ 7708d67c368SShengzhou Liu "bootm $loadaddr $ramdiskaddr $fdtaddr" 7718d67c368SShengzhou Liu 7728d67c368SShengzhou Liu #define CONFIG_BOOTCOMMAND CONFIG_LINUX 7738d67c368SShengzhou Liu 7748d67c368SShengzhou Liu #ifdef CONFIG_SECURE_BOOT 7758d67c368SShengzhou Liu #include <asm/fsl_secure_boot.h> 7768d67c368SShengzhou Liu #undef CONFIG_CMD_USB 7778d67c368SShengzhou Liu #endif 7788d67c368SShengzhou Liu 7798d67c368SShengzhou Liu #endif /* __T2080RDB_H */ 780