xref: /openbmc/u-boot/include/configs/T208xRDB.h (revision ef531c73570794b7676b62de4224bd294919b83b)
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
42e4536f8eSMasahiro Yamada #define CONFIG_SYS_FSL_PBL_PBI board/freescale/t208xrdb/t2080_pbi.cfg
43e4536f8eSMasahiro Yamada #define CONFIG_SYS_FSL_PBL_RCW board/freescale/t208xrdb/t2080_rcw.cfg
444d666683SShengzhou Liu 
454d666683SShengzhou Liu #define CONFIG_SPL
464d666683SShengzhou Liu #define CONFIG_SPL_MPC8XXX_INIT_DDR_SUPPORT
474d666683SShengzhou Liu #define CONFIG_SPL_ENV_SUPPORT
484d666683SShengzhou Liu #define CONFIG_SPL_SERIAL_SUPPORT
494d666683SShengzhou Liu #define CONFIG_SPL_FLUSH_IMAGE
504d666683SShengzhou Liu #define CONFIG_SPL_TARGET		"u-boot-with-spl.bin"
514d666683SShengzhou Liu #define CONFIG_SPL_LIBGENERIC_SUPPORT
524d666683SShengzhou Liu #define CONFIG_SPL_LIBCOMMON_SUPPORT
534d666683SShengzhou Liu #define CONFIG_SPL_I2C_SUPPORT
544d666683SShengzhou Liu #define CONFIG_SPL_DRIVERS_MISC_SUPPORT
554d666683SShengzhou Liu #define CONFIG_FSL_LAW			/* Use common FSL init code */
564d666683SShengzhou Liu #define CONFIG_SYS_TEXT_BASE		0x00201000
574d666683SShengzhou Liu #define CONFIG_SPL_TEXT_BASE		0xFFFD8000
584d666683SShengzhou Liu #define CONFIG_SPL_PAD_TO		0x40000
594d666683SShengzhou Liu #define CONFIG_SPL_MAX_SIZE		0x28000
604d666683SShengzhou Liu #define RESET_VECTOR_OFFSET		0x27FFC
614d666683SShengzhou Liu #define BOOT_PAGE_OFFSET		0x27000
624d666683SShengzhou Liu #ifdef CONFIG_SPL_BUILD
634d666683SShengzhou Liu #define CONFIG_SPL_SKIP_RELOCATE
644d666683SShengzhou Liu #define CONFIG_SPL_COMMON_INIT_DDR
654d666683SShengzhou Liu #define CONFIG_SYS_CCSR_DO_NOT_RELOCATE
664d666683SShengzhou Liu #define CONFIG_SYS_NO_FLASH
678d67c368SShengzhou Liu #endif
688d67c368SShengzhou Liu 
694d666683SShengzhou Liu #ifdef CONFIG_NAND
704d666683SShengzhou Liu #define CONFIG_SPL_NAND_SUPPORT
714d666683SShengzhou Liu #define CONFIG_SYS_NAND_U_BOOT_SIZE	(768 << 10)
724d666683SShengzhou Liu #define CONFIG_SYS_NAND_U_BOOT_DST	0x00200000
734d666683SShengzhou Liu #define CONFIG_SYS_NAND_U_BOOT_START	0x00200000
744d666683SShengzhou Liu #define CONFIG_SYS_NAND_U_BOOT_OFFS	(256 << 10)
754d666683SShengzhou Liu #define CONFIG_SYS_LDSCRIPT  "arch/powerpc/cpu/mpc85xx/u-boot-nand.lds"
764d666683SShengzhou Liu #define CONFIG_SPL_NAND_BOOT
774d666683SShengzhou Liu #endif
784d666683SShengzhou Liu 
794d666683SShengzhou Liu #ifdef CONFIG_SPIFLASH
804d666683SShengzhou Liu #define        CONFIG_RESET_VECTOR_ADDRESS             0x200FFC
814d666683SShengzhou Liu #define CONFIG_SPL_SPI_SUPPORT
824d666683SShengzhou Liu #define CONFIG_SPL_SPI_FLASH_SUPPORT
834d666683SShengzhou Liu #define CONFIG_SPL_SPI_FLASH_MINIMAL
844d666683SShengzhou Liu #define CONFIG_SYS_SPI_FLASH_U_BOOT_SIZE       (768 << 10)
854d666683SShengzhou Liu #define CONFIG_SYS_SPI_FLASH_U_BOOT_DST                (0x00200000)
864d666683SShengzhou Liu #define CONFIG_SYS_SPI_FLASH_U_BOOT_START      (0x00200000)
874d666683SShengzhou Liu #define CONFIG_SYS_SPI_FLASH_U_BOOT_OFFS       (256 << 10)
884d666683SShengzhou Liu #define CONFIG_SYS_LDSCRIPT    "arch/powerpc/cpu/mpc85xx/u-boot.lds"
894d666683SShengzhou Liu #ifndef CONFIG_SPL_BUILD
904d666683SShengzhou Liu #define CONFIG_SYS_MPC85XX_NO_RESETVEC
914d666683SShengzhou Liu #endif
924d666683SShengzhou Liu #define CONFIG_SPL_SPI_BOOT
934d666683SShengzhou Liu #endif
944d666683SShengzhou Liu 
954d666683SShengzhou Liu #ifdef CONFIG_SDCARD
964d666683SShengzhou Liu #define        CONFIG_RESET_VECTOR_ADDRESS             0x200FFC
974d666683SShengzhou Liu #define CONFIG_SPL_MMC_SUPPORT
984d666683SShengzhou Liu #define CONFIG_SPL_MMC_MINIMAL
994d666683SShengzhou Liu #define CONFIG_SYS_MMC_U_BOOT_SIZE     (768 << 10)
1004d666683SShengzhou Liu #define CONFIG_SYS_MMC_U_BOOT_DST      (0x00200000)
1014d666683SShengzhou Liu #define CONFIG_SYS_MMC_U_BOOT_START    (0x00200000)
1024d666683SShengzhou Liu #define CONFIG_SYS_MMC_U_BOOT_OFFS     (260 << 10)
1034d666683SShengzhou Liu #define CONFIG_SYS_LDSCRIPT    "arch/powerpc/cpu/mpc85xx/u-boot.lds"
1044d666683SShengzhou Liu #ifndef CONFIG_SPL_BUILD
1054d666683SShengzhou Liu #define CONFIG_SYS_MPC85XX_NO_RESETVEC
1064d666683SShengzhou Liu #endif
1074d666683SShengzhou Liu #define CONFIG_SPL_MMC_BOOT
1084d666683SShengzhou Liu #endif
1094d666683SShengzhou Liu 
1104d666683SShengzhou Liu #endif /* CONFIG_RAMBOOT_PBL */
1114d666683SShengzhou Liu 
1128d67c368SShengzhou Liu #define CONFIG_SRIO_PCIE_BOOT_MASTER
1138d67c368SShengzhou Liu #ifdef CONFIG_SRIO_PCIE_BOOT_SLAVE
1148d67c368SShengzhou Liu /* Set 1M boot space */
1158d67c368SShengzhou Liu #define CONFIG_SYS_SRIO_PCIE_BOOT_SLAVE_ADDR (CONFIG_SYS_TEXT_BASE & 0xfff00000)
1168d67c368SShengzhou Liu #define CONFIG_SYS_SRIO_PCIE_BOOT_SLAVE_ADDR_PHYS \
1178d67c368SShengzhou Liu 		(0x300000000ull | CONFIG_SYS_SRIO_PCIE_BOOT_SLAVE_ADDR)
1188d67c368SShengzhou Liu #define CONFIG_RESET_VECTOR_ADDRESS 0xfffffffc
1198d67c368SShengzhou Liu #define CONFIG_SYS_NO_FLASH
1208d67c368SShengzhou Liu #endif
1218d67c368SShengzhou Liu 
1228d67c368SShengzhou Liu #ifndef CONFIG_SYS_TEXT_BASE
1238d67c368SShengzhou Liu #define CONFIG_SYS_TEXT_BASE	0xeff40000
1248d67c368SShengzhou Liu #endif
1258d67c368SShengzhou Liu 
1268d67c368SShengzhou Liu #ifndef CONFIG_RESET_VECTOR_ADDRESS
1278d67c368SShengzhou Liu #define CONFIG_RESET_VECTOR_ADDRESS	0xeffffffc
1288d67c368SShengzhou Liu #endif
1298d67c368SShengzhou Liu 
1308d67c368SShengzhou Liu /*
1318d67c368SShengzhou Liu  * These can be toggled for performance analysis, otherwise use default.
1328d67c368SShengzhou Liu  */
1338d67c368SShengzhou Liu #define CONFIG_SYS_CACHE_STASHING
1348d67c368SShengzhou Liu #define CONFIG_BTB		/* toggle branch predition */
1358d67c368SShengzhou Liu #define CONFIG_DDR_ECC
1368d67c368SShengzhou Liu #ifdef CONFIG_DDR_ECC
1378d67c368SShengzhou Liu #define CONFIG_ECC_INIT_VIA_DDRCONTROLLER
1388d67c368SShengzhou Liu #define CONFIG_MEM_INIT_VALUE		0xdeadbeef
1398d67c368SShengzhou Liu #endif
1408d67c368SShengzhou Liu 
1414d666683SShengzhou Liu #ifndef CONFIG_SYS_NO_FLASH
1428d67c368SShengzhou Liu #define CONFIG_FLASH_CFI_DRIVER
1438d67c368SShengzhou Liu #define CONFIG_SYS_FLASH_CFI
1448d67c368SShengzhou Liu #define CONFIG_SYS_FLASH_USE_BUFFER_WRITE
1458d67c368SShengzhou Liu #endif
1468d67c368SShengzhou Liu 
1478d67c368SShengzhou Liu #if defined(CONFIG_SPIFLASH)
1488d67c368SShengzhou Liu #define CONFIG_SYS_EXTRA_ENV_RELOC
1498d67c368SShengzhou Liu #define CONFIG_ENV_IS_IN_SPI_FLASH
1508d67c368SShengzhou Liu #define CONFIG_ENV_SPI_BUS	0
1518d67c368SShengzhou Liu #define CONFIG_ENV_SPI_CS	0
1528d67c368SShengzhou Liu #define CONFIG_ENV_SPI_MAX_HZ	10000000
1538d67c368SShengzhou Liu #define CONFIG_ENV_SPI_MODE	0
1548d67c368SShengzhou Liu #define CONFIG_ENV_SIZE		0x2000	   /* 8KB */
1558d67c368SShengzhou Liu #define CONFIG_ENV_OFFSET	0x100000   /* 1MB */
1568d67c368SShengzhou Liu #define CONFIG_ENV_SECT_SIZE	0x10000
1578d67c368SShengzhou Liu #elif defined(CONFIG_SDCARD)
1588d67c368SShengzhou Liu #define CONFIG_SYS_EXTRA_ENV_RELOC
1598d67c368SShengzhou Liu #define CONFIG_ENV_IS_IN_MMC
1608d67c368SShengzhou Liu #define CONFIG_SYS_MMC_ENV_DEV	0
1618d67c368SShengzhou Liu #define CONFIG_ENV_SIZE		0x2000
1624d666683SShengzhou Liu #define CONFIG_ENV_OFFSET	(512 * 0x800)
1638d67c368SShengzhou Liu #elif defined(CONFIG_NAND)
1648d67c368SShengzhou Liu #define CONFIG_SYS_EXTRA_ENV_RELOC
1658d67c368SShengzhou Liu #define CONFIG_ENV_IS_IN_NAND
1664d666683SShengzhou Liu #define CONFIG_ENV_SIZE		0x2000
1678d67c368SShengzhou Liu #define CONFIG_ENV_OFFSET	(2 * CONFIG_SYS_NAND_BLOCK_SIZE)
1688d67c368SShengzhou Liu #elif defined(CONFIG_SRIO_PCIE_BOOT_SLAVE)
1698d67c368SShengzhou Liu #define CONFIG_ENV_IS_IN_REMOTE
1708d67c368SShengzhou Liu #define CONFIG_ENV_ADDR		0xffe20000
1718d67c368SShengzhou Liu #define CONFIG_ENV_SIZE		0x2000
1728d67c368SShengzhou Liu #elif defined(CONFIG_ENV_IS_NOWHERE)
1738d67c368SShengzhou Liu #define CONFIG_ENV_SIZE		0x2000
1748d67c368SShengzhou Liu #else
1758d67c368SShengzhou Liu #define CONFIG_ENV_IS_IN_FLASH
1768d67c368SShengzhou Liu #define CONFIG_ENV_ADDR		(CONFIG_SYS_MONITOR_BASE - CONFIG_ENV_SECT_SIZE)
1778d67c368SShengzhou Liu #define CONFIG_ENV_SIZE		0x2000
1788d67c368SShengzhou Liu #define CONFIG_ENV_SECT_SIZE	0x20000 /* 128K (one sector) */
1798d67c368SShengzhou Liu #endif
1808d67c368SShengzhou Liu 
1818d67c368SShengzhou Liu #ifndef __ASSEMBLY__
1828d67c368SShengzhou Liu unsigned long get_board_sys_clk(void);
1838d67c368SShengzhou Liu unsigned long get_board_ddr_clk(void);
1848d67c368SShengzhou Liu #endif
1858d67c368SShengzhou Liu 
1868d67c368SShengzhou Liu #define CONFIG_SYS_CLK_FREQ	66660000
1878d67c368SShengzhou Liu #define CONFIG_DDR_CLK_FREQ	133330000
1888d67c368SShengzhou Liu 
1898d67c368SShengzhou Liu /*
1908d67c368SShengzhou Liu  * Config the L3 Cache as L3 SRAM
1918d67c368SShengzhou Liu  */
1924d666683SShengzhou Liu #define CONFIG_SYS_INIT_L3_ADDR		0xFFFC0000
1934d666683SShengzhou Liu #define CONFIG_SYS_L3_SIZE		(512 << 10)
1944d666683SShengzhou Liu #define CONFIG_SPL_GD_ADDR		(CONFIG_SYS_INIT_L3_ADDR + 32 * 1024)
1954d666683SShengzhou Liu #ifdef CONFIG_RAMBOOT_PBL
1964d666683SShengzhou Liu #define CONFIG_ENV_ADDR			(CONFIG_SPL_GD_ADDR + 4 * 1024)
1974d666683SShengzhou Liu #endif
1984d666683SShengzhou Liu #define CONFIG_SPL_RELOC_MALLOC_ADDR	(CONFIG_SPL_GD_ADDR + 12 * 1024)
1994d666683SShengzhou Liu #define CONFIG_SPL_RELOC_MALLOC_SIZE	(50 << 10)
2004d666683SShengzhou Liu #define CONFIG_SPL_RELOC_STACK		(CONFIG_SPL_GD_ADDR + 64 * 1024)
2014d666683SShengzhou Liu #define CONFIG_SPL_RELOC_STACK_SIZE	(22 << 10)
2028d67c368SShengzhou Liu 
2038d67c368SShengzhou Liu #define CONFIG_SYS_DCSRBAR	0xf0000000
2048d67c368SShengzhou Liu #define CONFIG_SYS_DCSRBAR_PHYS	0xf00000000ull
2058d67c368SShengzhou Liu 
2068d67c368SShengzhou Liu /* EEPROM */
2078d67c368SShengzhou Liu #define CONFIG_ID_EEPROM
2088d67c368SShengzhou Liu #define CONFIG_SYS_I2C_EEPROM_NXID
2098d67c368SShengzhou Liu #define CONFIG_SYS_EEPROM_BUS_NUM	0
2108d67c368SShengzhou Liu #define CONFIG_SYS_I2C_EEPROM_ADDR	0x50
211*ef531c73SShengzhou Liu #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN	2
2128d67c368SShengzhou Liu 
2138d67c368SShengzhou Liu /*
2148d67c368SShengzhou Liu  * DDR Setup
2158d67c368SShengzhou Liu  */
2168d67c368SShengzhou Liu #define CONFIG_VERY_BIG_RAM
2178d67c368SShengzhou Liu #define CONFIG_SYS_DDR_SDRAM_BASE	0x00000000
2188d67c368SShengzhou Liu #define CONFIG_SYS_SDRAM_BASE		CONFIG_SYS_DDR_SDRAM_BASE
2198d67c368SShengzhou Liu #define CONFIG_DIMM_SLOTS_PER_CTLR	1
2208d67c368SShengzhou Liu #define CONFIG_CHIP_SELECTS_PER_CTRL	(4 * CONFIG_DIMM_SLOTS_PER_CTLR)
2218d67c368SShengzhou Liu #define CONFIG_DDR_SPD
2228d67c368SShengzhou Liu #define CONFIG_SYS_FSL_DDR3
2238d67c368SShengzhou Liu #undef CONFIG_FSL_DDR_INTERACTIVE
2248d67c368SShengzhou Liu #define CONFIG_SYS_SPD_BUS_NUM	0
2258d67c368SShengzhou Liu #define CONFIG_SYS_SDRAM_SIZE	2048	/* for fixed parameter use */
2268d67c368SShengzhou Liu #define SPD_EEPROM_ADDRESS1	0x51
2278d67c368SShengzhou Liu #define SPD_EEPROM_ADDRESS2	0x52
2288d67c368SShengzhou Liu #define SPD_EEPROM_ADDRESS	SPD_EEPROM_ADDRESS1
2298d67c368SShengzhou Liu #define CTRL_INTLV_PREFERED	cacheline
2308d67c368SShengzhou Liu 
2318d67c368SShengzhou Liu /*
2328d67c368SShengzhou Liu  * IFC Definitions
2338d67c368SShengzhou Liu  */
2348d67c368SShengzhou Liu #define CONFIG_SYS_FLASH_BASE		0xe8000000
2358d67c368SShengzhou Liu #define CONFIG_SYS_FLASH_BASE_PHYS	(0xf00000000ull | CONFIG_SYS_FLASH_BASE)
2368d67c368SShengzhou Liu #define CONFIG_SYS_NOR0_CSPR_EXT	(0xf)
2378d67c368SShengzhou Liu #define CONFIG_SYS_NOR0_CSPR	(CSPR_PHYS_ADDR(CONFIG_SYS_FLASH_BASE_PHYS) | \
2388d67c368SShengzhou Liu 				CSPR_PORT_SIZE_16 | \
2398d67c368SShengzhou Liu 				CSPR_MSEL_NOR | \
2408d67c368SShengzhou Liu 				CSPR_V)
2418d67c368SShengzhou Liu #define CONFIG_SYS_NOR_AMASK	IFC_AMASK(128*1024*1024)
2428d67c368SShengzhou Liu 
2438d67c368SShengzhou Liu /* NOR Flash Timing Params */
2448d67c368SShengzhou Liu #define CONFIG_SYS_NOR_CSOR	CSOR_NAND_TRHZ_80
2458d67c368SShengzhou Liu 
2468d67c368SShengzhou Liu #define CONFIG_SYS_NOR_FTIM0	(FTIM0_NOR_TACSE(0x4) | \
2478d67c368SShengzhou Liu 				FTIM0_NOR_TEADC(0x5) | \
2488d67c368SShengzhou Liu 				FTIM0_NOR_TEAHC(0x5))
2498d67c368SShengzhou Liu #define CONFIG_SYS_NOR_FTIM1	(FTIM1_NOR_TACO(0x35) | \
2508d67c368SShengzhou Liu 				FTIM1_NOR_TRAD_NOR(0x1A) |\
2518d67c368SShengzhou Liu 				FTIM1_NOR_TSEQRAD_NOR(0x13))
2528d67c368SShengzhou Liu #define CONFIG_SYS_NOR_FTIM2	(FTIM2_NOR_TCS(0x4) | \
2538d67c368SShengzhou Liu 				FTIM2_NOR_TCH(0x4) | \
2548d67c368SShengzhou Liu 				FTIM2_NOR_TWPH(0x0E) | \
2558d67c368SShengzhou Liu 				FTIM2_NOR_TWP(0x1c))
2568d67c368SShengzhou Liu #define CONFIG_SYS_NOR_FTIM3	0x0
2578d67c368SShengzhou Liu 
2588d67c368SShengzhou Liu #define CONFIG_SYS_FLASH_QUIET_TEST
2598d67c368SShengzhou Liu #define CONFIG_FLASH_SHOW_PROGRESS	45 /* count down from 45/5: 9..1 */
2608d67c368SShengzhou Liu 
2618d67c368SShengzhou Liu #define CONFIG_SYS_MAX_FLASH_BANKS	1	/* number of banks */
2628d67c368SShengzhou Liu #define CONFIG_SYS_MAX_FLASH_SECT	1024	/* sectors per device */
2638d67c368SShengzhou Liu #define CONFIG_SYS_FLASH_ERASE_TOUT	60000	/* Flash Erase Timeout (ms) */
2648d67c368SShengzhou Liu #define CONFIG_SYS_FLASH_WRITE_TOUT	500	/* Flash Write Timeout (ms) */
2658d67c368SShengzhou Liu #define CONFIG_SYS_FLASH_EMPTY_INFO
2668d67c368SShengzhou Liu #define CONFIG_SYS_FLASH_BANKS_LIST	{CONFIG_SYS_FLASH_BASE_PHYS }
2678d67c368SShengzhou Liu 
2688d67c368SShengzhou Liu /* CPLD on IFC */
2698d67c368SShengzhou Liu #define CONFIG_SYS_CPLD_BASE	0xffdf0000
2708d67c368SShengzhou Liu #define CONFIG_SYS_CPLD_BASE_PHYS	(0xf00000000ull | CONFIG_SYS_CPLD_BASE)
2718d67c368SShengzhou Liu #define CONFIG_SYS_CSPR2_EXT	(0xf)
2728d67c368SShengzhou Liu #define CONFIG_SYS_CSPR2	(CSPR_PHYS_ADDR(CONFIG_SYS_CPLD_BASE) \
2738d67c368SShengzhou Liu 				| CSPR_PORT_SIZE_8 \
2748d67c368SShengzhou Liu 				| CSPR_MSEL_GPCM \
2758d67c368SShengzhou Liu 				| CSPR_V)
2768d67c368SShengzhou Liu #define CONFIG_SYS_AMASK2	IFC_AMASK(64*1024)
2778d67c368SShengzhou Liu #define CONFIG_SYS_CSOR2	0x0
2788d67c368SShengzhou Liu 
2798d67c368SShengzhou Liu /* CPLD Timing parameters for IFC CS2 */
2808d67c368SShengzhou Liu #define CONFIG_SYS_CS2_FTIM0		(FTIM0_GPCM_TACSE(0x0e) | \
2818d67c368SShengzhou Liu 					FTIM0_GPCM_TEADC(0x0e) | \
2828d67c368SShengzhou Liu 					FTIM0_GPCM_TEAHC(0x0e))
2838d67c368SShengzhou Liu #define CONFIG_SYS_CS2_FTIM1		(FTIM1_GPCM_TACO(0x0e) | \
2848d67c368SShengzhou Liu 					FTIM1_GPCM_TRAD(0x1f))
2858d67c368SShengzhou Liu #define CONFIG_SYS_CS2_FTIM2		(FTIM2_GPCM_TCS(0x0e) | \
2868d67c368SShengzhou Liu 					FTIM2_GPCM_TCH(0x0) | \
2878d67c368SShengzhou Liu 					FTIM2_GPCM_TWP(0x1f))
2888d67c368SShengzhou Liu #define CONFIG_SYS_CS2_FTIM3		0x0
2898d67c368SShengzhou Liu 
2908d67c368SShengzhou Liu /* NAND Flash on IFC */
2918d67c368SShengzhou Liu #define CONFIG_NAND_FSL_IFC
2928d67c368SShengzhou Liu #define CONFIG_SYS_NAND_BASE		0xff800000
2938d67c368SShengzhou Liu #define CONFIG_SYS_NAND_BASE_PHYS	(0xf00000000ull | CONFIG_SYS_NAND_BASE)
2948d67c368SShengzhou Liu 
2958d67c368SShengzhou Liu #define CONFIG_SYS_NAND_CSPR_EXT	(0xf)
2968d67c368SShengzhou Liu #define CONFIG_SYS_NAND_CSPR	(CSPR_PHYS_ADDR(CONFIG_SYS_NAND_BASE_PHYS) \
2978d67c368SShengzhou Liu 				| CSPR_PORT_SIZE_8 /* Port Size = 8 bit */ \
2988d67c368SShengzhou Liu 				| CSPR_MSEL_NAND	 /* MSEL = NAND */ \
2998d67c368SShengzhou Liu 				| CSPR_V)
3008d67c368SShengzhou Liu #define CONFIG_SYS_NAND_AMASK	IFC_AMASK(64*1024)
3018d67c368SShengzhou Liu 
3028d67c368SShengzhou Liu #define CONFIG_SYS_NAND_CSOR	(CSOR_NAND_ECC_ENC_EN	/* ECC on encode */ \
3038d67c368SShengzhou Liu 				| CSOR_NAND_ECC_DEC_EN	/* ECC on decode */ \
3048d67c368SShengzhou Liu 				| CSOR_NAND_ECC_MODE_4	/* 4-bit ECC */	    \
3058d67c368SShengzhou Liu 				| CSOR_NAND_RAL_3	/* RAL = 2Byes */   \
3068d67c368SShengzhou Liu 				| CSOR_NAND_PGS_2K	/* Page Size = 2K */\
3078d67c368SShengzhou Liu 				| CSOR_NAND_SPRZ_64	/* Spare size = 64 */\
3088d67c368SShengzhou Liu 				| CSOR_NAND_PB(64))	/*Pages Per Block = 64*/
3098d67c368SShengzhou Liu 
3108d67c368SShengzhou Liu #define CONFIG_SYS_NAND_ONFI_DETECTION
3118d67c368SShengzhou Liu 
3128d67c368SShengzhou Liu /* ONFI NAND Flash mode0 Timing Params */
3138d67c368SShengzhou Liu #define CONFIG_SYS_NAND_FTIM0		(FTIM0_NAND_TCCST(0x07) | \
3148d67c368SShengzhou Liu 					FTIM0_NAND_TWP(0x18)    | \
3158d67c368SShengzhou Liu 					FTIM0_NAND_TWCHT(0x07)  | \
3168d67c368SShengzhou Liu 					FTIM0_NAND_TWH(0x0a))
3178d67c368SShengzhou Liu #define CONFIG_SYS_NAND_FTIM1		(FTIM1_NAND_TADLE(0x32) | \
3188d67c368SShengzhou Liu 					FTIM1_NAND_TWBE(0x39)   | \
3198d67c368SShengzhou Liu 					FTIM1_NAND_TRR(0x0e)    | \
3208d67c368SShengzhou Liu 					FTIM1_NAND_TRP(0x18))
3218d67c368SShengzhou Liu #define CONFIG_SYS_NAND_FTIM2		(FTIM2_NAND_TRAD(0x0f)  | \
3228d67c368SShengzhou Liu 					FTIM2_NAND_TREH(0x0a)   | \
3238d67c368SShengzhou Liu 					FTIM2_NAND_TWHRE(0x1e))
3248d67c368SShengzhou Liu #define CONFIG_SYS_NAND_FTIM3		0x0
3258d67c368SShengzhou Liu 
3268d67c368SShengzhou Liu #define CONFIG_SYS_NAND_DDR_LAW		11
3278d67c368SShengzhou Liu #define CONFIG_SYS_NAND_BASE_LIST	{ CONFIG_SYS_NAND_BASE }
3288d67c368SShengzhou Liu #define CONFIG_SYS_MAX_NAND_DEVICE	1
3298d67c368SShengzhou Liu #define CONFIG_MTD_NAND_VERIFY_WRITE
3308d67c368SShengzhou Liu #define CONFIG_CMD_NAND
3318d67c368SShengzhou Liu #define CONFIG_SYS_NAND_BLOCK_SIZE	(512 * 1024)
3328d67c368SShengzhou Liu 
3338d67c368SShengzhou Liu #if defined(CONFIG_NAND)
3348d67c368SShengzhou Liu #define CONFIG_SYS_CSPR0_EXT		CONFIG_SYS_NAND_CSPR_EXT
3358d67c368SShengzhou Liu #define CONFIG_SYS_CSPR0		CONFIG_SYS_NAND_CSPR
3368d67c368SShengzhou Liu #define CONFIG_SYS_AMASK0		CONFIG_SYS_NAND_AMASK
3378d67c368SShengzhou Liu #define CONFIG_SYS_CSOR0		CONFIG_SYS_NAND_CSOR
3388d67c368SShengzhou Liu #define CONFIG_SYS_CS0_FTIM0		CONFIG_SYS_NAND_FTIM0
3398d67c368SShengzhou Liu #define CONFIG_SYS_CS0_FTIM1		CONFIG_SYS_NAND_FTIM1
3408d67c368SShengzhou Liu #define CONFIG_SYS_CS0_FTIM2		CONFIG_SYS_NAND_FTIM2
3418d67c368SShengzhou Liu #define CONFIG_SYS_CS0_FTIM3		CONFIG_SYS_NAND_FTIM3
3428d67c368SShengzhou Liu #define CONFIG_SYS_CSPR1_EXT		CONFIG_SYS_NOR0_CSPR_EXT
3438d67c368SShengzhou Liu #define CONFIG_SYS_CSPR1		CONFIG_SYS_NOR0_CSPR
3448d67c368SShengzhou Liu #define CONFIG_SYS_AMASK1		CONFIG_SYS_NOR_AMASK
3458d67c368SShengzhou Liu #define CONFIG_SYS_CSOR1		CONFIG_SYS_NOR_CSOR
3468d67c368SShengzhou Liu #define CONFIG_SYS_CS1_FTIM0		CONFIG_SYS_NOR_FTIM0
3478d67c368SShengzhou Liu #define CONFIG_SYS_CS1_FTIM1		CONFIG_SYS_NOR_FTIM1
3488d67c368SShengzhou Liu #define CONFIG_SYS_CS1_FTIM2		CONFIG_SYS_NOR_FTIM2
3498d67c368SShengzhou Liu #define CONFIG_SYS_CS1_FTIM3		CONFIG_SYS_NOR_FTIM3
3508d67c368SShengzhou Liu #else
3518d67c368SShengzhou Liu #define CONFIG_SYS_CSPR0_EXT		CONFIG_SYS_NOR0_CSPR_EXT
3528d67c368SShengzhou Liu #define CONFIG_SYS_CSPR0		CONFIG_SYS_NOR0_CSPR
3538d67c368SShengzhou Liu #define CONFIG_SYS_AMASK0		CONFIG_SYS_NOR_AMASK
3548d67c368SShengzhou Liu #define CONFIG_SYS_CSOR0		CONFIG_SYS_NOR_CSOR
3558d67c368SShengzhou Liu #define CONFIG_SYS_CS0_FTIM0		CONFIG_SYS_NOR_FTIM0
3568d67c368SShengzhou Liu #define CONFIG_SYS_CS0_FTIM1		CONFIG_SYS_NOR_FTIM1
3578d67c368SShengzhou Liu #define CONFIG_SYS_CS0_FTIM2		CONFIG_SYS_NOR_FTIM2
3588d67c368SShengzhou Liu #define CONFIG_SYS_CS0_FTIM3		CONFIG_SYS_NOR_FTIM3
3598d67c368SShengzhou Liu #define CONFIG_SYS_CSPR1_EXT		CONFIG_SYS_NAND_CSPR_EXT
3608d67c368SShengzhou Liu #define CONFIG_SYS_CSPR1		CONFIG_SYS_NAND_CSPR
3618d67c368SShengzhou Liu #define CONFIG_SYS_AMASK1		CONFIG_SYS_NAND_AMASK
3628d67c368SShengzhou Liu #define CONFIG_SYS_CSOR1		CONFIG_SYS_NAND_CSOR
3638d67c368SShengzhou Liu #define CONFIG_SYS_CS1_FTIM0		CONFIG_SYS_NAND_FTIM0
3648d67c368SShengzhou Liu #define CONFIG_SYS_CS1_FTIM1		CONFIG_SYS_NAND_FTIM1
3658d67c368SShengzhou Liu #define CONFIG_SYS_CS1_FTIM2		CONFIG_SYS_NAND_FTIM2
3668d67c368SShengzhou Liu #define CONFIG_SYS_CS1_FTIM3		CONFIG_SYS_NAND_FTIM3
3678d67c368SShengzhou Liu #endif
3688d67c368SShengzhou Liu 
3698d67c368SShengzhou Liu #if defined(CONFIG_RAMBOOT_PBL)
3708d67c368SShengzhou Liu #define CONFIG_SYS_RAMBOOT
3718d67c368SShengzhou Liu #endif
3728d67c368SShengzhou Liu 
3734d666683SShengzhou Liu #ifdef CONFIG_SPL_BUILD
3744d666683SShengzhou Liu #define CONFIG_SYS_MONITOR_BASE  CONFIG_SPL_TEXT_BASE
3754d666683SShengzhou Liu #else
3764d666683SShengzhou Liu #define CONFIG_SYS_MONITOR_BASE  CONFIG_SYS_TEXT_BASE /* start of monitor */
3774d666683SShengzhou Liu #endif
3784d666683SShengzhou Liu 
3798d67c368SShengzhou Liu #define CONFIG_BOARD_EARLY_INIT_R	/* call board_early_init_r function */
3808d67c368SShengzhou Liu #define CONFIG_MISC_INIT_R
3818d67c368SShengzhou Liu #define CONFIG_HWCONFIG
3828d67c368SShengzhou Liu 
3838d67c368SShengzhou Liu /* define to use L1 as initial stack */
3848d67c368SShengzhou Liu #define CONFIG_L1_INIT_RAM
3858d67c368SShengzhou Liu #define CONFIG_SYS_INIT_RAM_LOCK
3868d67c368SShengzhou Liu #define CONFIG_SYS_INIT_RAM_ADDR	0xfdd00000 /* Initial L1 address */
3878d67c368SShengzhou Liu #define CONFIG_SYS_INIT_RAM_ADDR_PHYS_HIGH	0xf
3888d67c368SShengzhou Liu #define CONFIG_SYS_INIT_RAM_ADDR_PHYS_LOW	0xfe0ec000
3898d67c368SShengzhou Liu /* The assembler doesn't like typecast */
3908d67c368SShengzhou Liu #define CONFIG_SYS_INIT_RAM_ADDR_PHYS \
3918d67c368SShengzhou Liu 			((CONFIG_SYS_INIT_RAM_ADDR_PHYS_HIGH * 1ull << 32) | \
3928d67c368SShengzhou Liu 			CONFIG_SYS_INIT_RAM_ADDR_PHYS_LOW)
3938d67c368SShengzhou Liu #define CONFIG_SYS_INIT_RAM_SIZE	0x00004000
3948d67c368SShengzhou Liu #define CONFIG_SYS_GBL_DATA_OFFSET	(CONFIG_SYS_INIT_RAM_SIZE - \
3958d67c368SShengzhou Liu 						GENERATED_GBL_DATA_SIZE)
3968d67c368SShengzhou Liu #define CONFIG_SYS_INIT_SP_OFFSET	CONFIG_SYS_GBL_DATA_OFFSET
3979307cbabSPrabhakar Kushwaha #define CONFIG_SYS_MONITOR_LEN		(768 * 1024)
3988d67c368SShengzhou Liu #define CONFIG_SYS_MALLOC_LEN		(4 * 1024 * 1024)
3998d67c368SShengzhou Liu 
4008d67c368SShengzhou Liu /*
4018d67c368SShengzhou Liu  * Serial Port
4028d67c368SShengzhou Liu  */
4038d67c368SShengzhou Liu #define CONFIG_CONS_INDEX		1
4048d67c368SShengzhou Liu #define CONFIG_SYS_NS16550
4058d67c368SShengzhou Liu #define CONFIG_SYS_NS16550_SERIAL
4068d67c368SShengzhou Liu #define CONFIG_SYS_NS16550_REG_SIZE	1
4078d67c368SShengzhou Liu #define CONFIG_SYS_NS16550_CLK		(get_bus_freq(0)/2)
4088d67c368SShengzhou Liu #define CONFIG_SYS_BAUDRATE_TABLE	\
4098d67c368SShengzhou Liu 	{300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200}
4108d67c368SShengzhou Liu #define CONFIG_SYS_NS16550_COM1 (CONFIG_SYS_CCSRBAR+0x11C500)
4118d67c368SShengzhou Liu #define CONFIG_SYS_NS16550_COM2 (CONFIG_SYS_CCSRBAR+0x11C600)
4128d67c368SShengzhou Liu #define CONFIG_SYS_NS16550_COM3 (CONFIG_SYS_CCSRBAR+0x11D500)
4138d67c368SShengzhou Liu #define CONFIG_SYS_NS16550_COM4 (CONFIG_SYS_CCSRBAR+0x11D600)
4148d67c368SShengzhou Liu 
4158d67c368SShengzhou Liu /* Use the HUSH parser */
4168d67c368SShengzhou Liu #define CONFIG_SYS_HUSH_PARSER
4178d67c368SShengzhou Liu #define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
4188d67c368SShengzhou Liu 
4198d67c368SShengzhou Liu /* pass open firmware flat tree */
4208d67c368SShengzhou Liu #define CONFIG_OF_LIBFDT
4218d67c368SShengzhou Liu #define CONFIG_OF_BOARD_SETUP
4228d67c368SShengzhou Liu #define CONFIG_OF_STDOUT_VIA_ALIAS
4238d67c368SShengzhou Liu 
4248d67c368SShengzhou Liu /* new uImage format support */
4258d67c368SShengzhou Liu #define CONFIG_FIT
4268d67c368SShengzhou Liu #define CONFIG_FIT_VERBOSE	/* enable fit_format_{error,warning}() */
4278d67c368SShengzhou Liu 
4288d67c368SShengzhou Liu /*
4298d67c368SShengzhou Liu  * I2C
4308d67c368SShengzhou Liu  */
4318d67c368SShengzhou Liu #define CONFIG_SYS_I2C
4328d67c368SShengzhou Liu #define CONFIG_SYS_I2C_FSL
4338d67c368SShengzhou Liu #define CONFIG_SYS_FSL_I2C_SLAVE   0x7F
4348d67c368SShengzhou Liu #define CONFIG_SYS_FSL_I2C2_SLAVE  0x7F
4358d67c368SShengzhou Liu #define CONFIG_SYS_FSL_I2C3_SLAVE  0x7F
4368d67c368SShengzhou Liu #define CONFIG_SYS_FSL_I2C4_SLAVE  0x7F
4378d67c368SShengzhou Liu #define CONFIG_SYS_FSL_I2C_OFFSET  0x118000
4388d67c368SShengzhou Liu #define CONFIG_SYS_FSL_I2C2_OFFSET 0x118100
4398d67c368SShengzhou Liu #define CONFIG_SYS_FSL_I2C3_OFFSET 0x119000
4408d67c368SShengzhou Liu #define CONFIG_SYS_FSL_I2C4_OFFSET 0x119100
4418d67c368SShengzhou Liu #define CONFIG_SYS_FSL_I2C_SPEED   100000
4428d67c368SShengzhou Liu #define CONFIG_SYS_FSL_I2C2_SPEED  100000
4438d67c368SShengzhou Liu #define CONFIG_SYS_FSL_I2C3_SPEED  100000
4448d67c368SShengzhou Liu #define CONFIG_SYS_FSL_I2C4_SPEED  100000
4458d67c368SShengzhou Liu #define I2C_MUX_PCA_ADDR_PRI	0x77 /* I2C bus multiplexer,primary */
4468d67c368SShengzhou Liu #define I2C_MUX_PCA_ADDR_SEC1	0x75 /* I2C bus multiplexer,secondary 1 */
4478d67c368SShengzhou Liu #define I2C_MUX_PCA_ADDR_SEC2	0x76 /* I2C bus multiplexer,secondary 2 */
4488d67c368SShengzhou Liu #define I2C_MUX_CH_DEFAULT	0x8
4498d67c368SShengzhou Liu 
4508d67c368SShengzhou Liu 
4518d67c368SShengzhou Liu /*
4528d67c368SShengzhou Liu  * RapidIO
4538d67c368SShengzhou Liu  */
4548d67c368SShengzhou Liu #define CONFIG_SYS_SRIO1_MEM_VIRT	0xa0000000
4558d67c368SShengzhou Liu #define CONFIG_SYS_SRIO1_MEM_PHYS	0xc20000000ull
4568d67c368SShengzhou Liu #define CONFIG_SYS_SRIO1_MEM_SIZE	0x10000000 /* 256M */
4578d67c368SShengzhou Liu #define CONFIG_SYS_SRIO2_MEM_VIRT	0xb0000000
4588d67c368SShengzhou Liu #define CONFIG_SYS_SRIO2_MEM_PHYS	0xc30000000ull
4598d67c368SShengzhou Liu #define CONFIG_SYS_SRIO2_MEM_SIZE	0x10000000 /* 256M */
4608d67c368SShengzhou Liu /*
4618d67c368SShengzhou Liu  * for slave u-boot IMAGE instored in master memory space,
4628d67c368SShengzhou Liu  * PHYS must be aligned based on the SIZE
4638d67c368SShengzhou Liu  */
4648d67c368SShengzhou Liu #define CONFIG_SRIO_PCIE_BOOT_IMAGE_MEM_PHYS 0xfef080000ull
4658d67c368SShengzhou Liu #define CONFIG_SRIO_PCIE_BOOT_IMAGE_MEM_BUS1 0xfff80000ull
4668d67c368SShengzhou Liu #define CONFIG_SRIO_PCIE_BOOT_IMAGE_SIZE     0x80000 /* 512K */
4678d67c368SShengzhou Liu #define CONFIG_SRIO_PCIE_BOOT_IMAGE_MEM_BUS2 0x3fff80000ull
4688d67c368SShengzhou Liu /*
4698d67c368SShengzhou Liu  * for slave UCODE and ENV instored in master memory space,
4708d67c368SShengzhou Liu  * PHYS must be aligned based on the SIZE
4718d67c368SShengzhou Liu  */
4728d67c368SShengzhou Liu #define CONFIG_SRIO_PCIE_BOOT_UCODE_ENV_MEM_PHYS 0xfef040000ull
4738d67c368SShengzhou Liu #define CONFIG_SRIO_PCIE_BOOT_UCODE_ENV_MEM_BUS 0x3ffe00000ull
4748d67c368SShengzhou Liu #define CONFIG_SRIO_PCIE_BOOT_UCODE_ENV_SIZE    0x40000	/* 256K */
4758d67c368SShengzhou Liu 
4768d67c368SShengzhou Liu /* slave core release by master*/
4778d67c368SShengzhou Liu #define CONFIG_SRIO_PCIE_BOOT_BRR_OFFSET 0xe00e4
4788d67c368SShengzhou Liu #define CONFIG_SRIO_PCIE_BOOT_RELEASE_MASK 0x00000001 /* release core 0 */
4798d67c368SShengzhou Liu 
4808d67c368SShengzhou Liu /*
4818d67c368SShengzhou Liu  * SRIO_PCIE_BOOT - SLAVE
4828d67c368SShengzhou Liu  */
4838d67c368SShengzhou Liu #ifdef CONFIG_SRIO_PCIE_BOOT_SLAVE
4848d67c368SShengzhou Liu #define CONFIG_SYS_SRIO_PCIE_BOOT_UCODE_ENV_ADDR 0xFFE00000
4858d67c368SShengzhou Liu #define CONFIG_SYS_SRIO_PCIE_BOOT_UCODE_ENV_ADDR_PHYS \
4868d67c368SShengzhou Liu 		(0x300000000ull | CONFIG_SYS_SRIO_PCIE_BOOT_UCODE_ENV_ADDR)
4878d67c368SShengzhou Liu #endif
4888d67c368SShengzhou Liu 
4898d67c368SShengzhou Liu /*
4908d67c368SShengzhou Liu  * eSPI - Enhanced SPI
4918d67c368SShengzhou Liu  */
4928d67c368SShengzhou Liu #ifdef CONFIG_SPI_FLASH
4938d67c368SShengzhou Liu #define CONFIG_FSL_ESPI
4948d67c368SShengzhou Liu #define CONFIG_SPI_FLASH_STMICRO
4958d67c368SShengzhou Liu #define CONFIG_SPI_FLASH_BAR
4968d67c368SShengzhou Liu #define CONFIG_CMD_SF
4978d67c368SShengzhou Liu #define CONFIG_SF_DEFAULT_SPEED	 10000000
4988d67c368SShengzhou Liu #define CONFIG_SF_DEFAULT_MODE	  0
4998d67c368SShengzhou Liu #endif
5008d67c368SShengzhou Liu 
5018d67c368SShengzhou Liu /*
5028d67c368SShengzhou Liu  * General PCI
5038d67c368SShengzhou Liu  * Memory space is mapped 1-1, but I/O space must start from 0.
5048d67c368SShengzhou Liu  */
5058d67c368SShengzhou Liu #define CONFIG_PCI		/* Enable PCI/PCIE */
5068d67c368SShengzhou Liu #define CONFIG_PCIE1		/* PCIE controler 1 */
5078d67c368SShengzhou Liu #define CONFIG_PCIE2		/* PCIE controler 2 */
5088d67c368SShengzhou Liu #define CONFIG_PCIE3		/* PCIE controler 3 */
5098d67c368SShengzhou Liu #define CONFIG_PCIE4		/* PCIE controler 4 */
5108d67c368SShengzhou Liu #define CONFIG_FSL_PCI_INIT	/* Use common FSL init code */
5118d67c368SShengzhou Liu #define CONFIG_SYS_PCI_64BIT	/* enable 64-bit PCI resources */
5128d67c368SShengzhou Liu /* controller 1, direct to uli, tgtid 3, Base address 20000 */
5138d67c368SShengzhou Liu #define CONFIG_SYS_PCIE1_MEM_VIRT	0x80000000
5148d67c368SShengzhou Liu #define CONFIG_SYS_PCIE1_MEM_BUS	0xe0000000
5158d67c368SShengzhou Liu #define CONFIG_SYS_PCIE1_MEM_PHYS	0xc00000000ull
5168d67c368SShengzhou Liu #define CONFIG_SYS_PCIE1_MEM_SIZE	0x20000000      /* 512M */
5178d67c368SShengzhou Liu #define CONFIG_SYS_PCIE1_IO_VIRT	0xf8000000
5188d67c368SShengzhou Liu #define CONFIG_SYS_PCIE1_IO_BUS		0x00000000
5198d67c368SShengzhou Liu #define CONFIG_SYS_PCIE1_IO_PHYS	0xff8000000ull
5208d67c368SShengzhou Liu #define CONFIG_SYS_PCIE1_IO_SIZE	0x00010000	/* 64k */
5218d67c368SShengzhou Liu 
5228d67c368SShengzhou Liu /* controller 2, Slot 2, tgtid 2, Base address 201000 */
5238d67c368SShengzhou Liu #define CONFIG_SYS_PCIE2_MEM_VIRT	0xa0000000
5248d67c368SShengzhou Liu #define CONFIG_SYS_PCIE2_MEM_BUS	0xe0000000
5258d67c368SShengzhou Liu #define CONFIG_SYS_PCIE2_MEM_PHYS	0xc20000000ull
5268d67c368SShengzhou Liu #define CONFIG_SYS_PCIE2_MEM_SIZE	0x10000000 /* 256M */
5278d67c368SShengzhou Liu #define CONFIG_SYS_PCIE2_IO_VIRT	0xf8010000
5288d67c368SShengzhou Liu #define CONFIG_SYS_PCIE2_IO_BUS		0x00000000
5298d67c368SShengzhou Liu #define CONFIG_SYS_PCIE2_IO_PHYS	0xff8010000ull
5308d67c368SShengzhou Liu #define CONFIG_SYS_PCIE2_IO_SIZE	0x00010000	/* 64k */
5318d67c368SShengzhou Liu 
5328d67c368SShengzhou Liu /* controller 3, Slot 1, tgtid 1, Base address 202000 */
5338d67c368SShengzhou Liu #define CONFIG_SYS_PCIE3_MEM_VIRT	0xb0000000
5348d67c368SShengzhou Liu #define CONFIG_SYS_PCIE3_MEM_BUS	0xe0000000
5358d67c368SShengzhou Liu #define CONFIG_SYS_PCIE3_MEM_PHYS	0xc30000000ull
5368d67c368SShengzhou Liu #define CONFIG_SYS_PCIE3_MEM_SIZE	0x10000000	/* 256M */
5378d67c368SShengzhou Liu #define CONFIG_SYS_PCIE3_IO_VIRT	0xf8020000
5388d67c368SShengzhou Liu #define CONFIG_SYS_PCIE3_IO_BUS		0x00000000
5398d67c368SShengzhou Liu #define CONFIG_SYS_PCIE3_IO_PHYS	0xff8020000ull
5408d67c368SShengzhou Liu #define CONFIG_SYS_PCIE3_IO_SIZE	0x00010000	/* 64k */
5418d67c368SShengzhou Liu 
5428d67c368SShengzhou Liu /* controller 4, Base address 203000 */
5438d67c368SShengzhou Liu #define CONFIG_SYS_PCIE4_MEM_VIRT       0xc0000000
5448d67c368SShengzhou Liu #define CONFIG_SYS_PCIE4_MEM_BUS	0xe0000000
5458d67c368SShengzhou Liu #define CONFIG_SYS_PCIE4_MEM_PHYS	0xc40000000ull
5468d67c368SShengzhou Liu #define CONFIG_SYS_PCIE4_MEM_SIZE	0x10000000	/* 256M */
5478d67c368SShengzhou Liu #define CONFIG_SYS_PCIE4_IO_BUS		0x00000000
5488d67c368SShengzhou Liu #define CONFIG_SYS_PCIE4_IO_PHYS	0xff8030000ull
5498d67c368SShengzhou Liu #define CONFIG_SYS_PCIE4_IO_SIZE	0x00010000	/* 64k */
5508d67c368SShengzhou Liu 
5518d67c368SShengzhou Liu #ifdef CONFIG_PCI
5528d67c368SShengzhou Liu #define CONFIG_PCI_INDIRECT_BRIDGE
5538d67c368SShengzhou Liu #define CONFIG_FSL_PCIE_RESET           /* need PCIe reset errata LSZ ADD */
5548d67c368SShengzhou Liu #define CONFIG_NET_MULTI
5558d67c368SShengzhou Liu #define CONFIG_E1000
5568d67c368SShengzhou Liu #define CONFIG_PCI_PNP		/* do pci plug-and-play */
5578d67c368SShengzhou Liu #define CONFIG_PCI_SCAN_SHOW	/* show pci devices on startup */
5588d67c368SShengzhou Liu #define CONFIG_DOS_PARTITION
5598d67c368SShengzhou Liu #endif
5608d67c368SShengzhou Liu 
5618d67c368SShengzhou Liu /* Qman/Bman */
5628d67c368SShengzhou Liu #ifndef CONFIG_NOBQFMAN
5638d67c368SShengzhou Liu #define CONFIG_SYS_DPAA_QBMAN		/* Support Q/Bman */
5648d67c368SShengzhou Liu #define CONFIG_SYS_BMAN_NUM_PORTALS	18
5658d67c368SShengzhou Liu #define CONFIG_SYS_BMAN_MEM_BASE	0xf4000000
5668d67c368SShengzhou Liu #define CONFIG_SYS_BMAN_MEM_PHYS	0xff4000000ull
5678d67c368SShengzhou Liu #define CONFIG_SYS_BMAN_MEM_SIZE	0x02000000
5688d67c368SShengzhou Liu #define CONFIG_SYS_QMAN_NUM_PORTALS	18
5698d67c368SShengzhou Liu #define CONFIG_SYS_QMAN_MEM_BASE	0xf6000000
5708d67c368SShengzhou Liu #define CONFIG_SYS_QMAN_MEM_PHYS	0xff6000000ull
5718d67c368SShengzhou Liu #define CONFIG_SYS_QMAN_MEM_SIZE	0x02000000
5728d67c368SShengzhou Liu 
5738d67c368SShengzhou Liu #define CONFIG_SYS_DPAA_FMAN
5748d67c368SShengzhou Liu #define CONFIG_SYS_DPAA_PME
5758d67c368SShengzhou Liu #define CONFIG_SYS_PMAN
5768d67c368SShengzhou Liu #define CONFIG_SYS_DPAA_DCE
5778d67c368SShengzhou Liu #define CONFIG_SYS_DPAA_RMAN		/* RMan */
5788d67c368SShengzhou Liu #define CONFIG_SYS_INTERLAKEN
5798d67c368SShengzhou Liu 
5808d67c368SShengzhou Liu /* Default address of microcode for the Linux Fman driver */
5818d67c368SShengzhou Liu #if defined(CONFIG_SPIFLASH)
5828d67c368SShengzhou Liu /*
5838d67c368SShengzhou Liu  * env is stored at 0x100000, sector size is 0x10000, ucode is stored after
5848d67c368SShengzhou Liu  * env, so we got 0x110000.
5858d67c368SShengzhou Liu  */
5868d67c368SShengzhou Liu #define CONFIG_SYS_QE_FW_IN_SPIFLASH
587*ef531c73SShengzhou Liu #define CONFIG_SYS_CORTINA_FW_IN_SPIFLASH
588dcf1d774SZhao Qiang #define CONFIG_SYS_FMAN_FW_ADDR		0x110000
5898d67c368SShengzhou Liu #define CONFIG_CORTINA_FW_ADDR		0x120000
5908d67c368SShengzhou Liu 
5918d67c368SShengzhou Liu #elif defined(CONFIG_SDCARD)
5928d67c368SShengzhou Liu /*
5938d67c368SShengzhou Liu  * PBL SD boot image should stored at 0x1000(8 blocks), the size of the image is
5944d666683SShengzhou Liu  * about 1MB (2048 blocks), Env is stored after the image, and the env size is
5954d666683SShengzhou Liu  * 0x2000 (16 blocks), 8 + 2048 + 16 = 2072, enlarge it to 2080.
5968d67c368SShengzhou Liu  */
5978d67c368SShengzhou Liu #define CONFIG_SYS_QE_FMAN_FW_IN_MMC
598*ef531c73SShengzhou Liu #define CONFIG_SYS_CORTINA_FW_IN_MMC
5994d666683SShengzhou Liu #define CONFIG_SYS_FMAN_FW_ADDR		(512 * 0x820)
6004d666683SShengzhou Liu #define CONFIG_CORTINA_FW_ADDR		(512 * 0x8a0)
6018d67c368SShengzhou Liu 
6028d67c368SShengzhou Liu #elif defined(CONFIG_NAND)
6038d67c368SShengzhou Liu #define CONFIG_SYS_QE_FMAN_FW_IN_NAND
604*ef531c73SShengzhou Liu #define CONFIG_SYS_CORTINA_FW_IN_NAND
6054d666683SShengzhou Liu #define CONFIG_SYS_FMAN_FW_ADDR		(3 * CONFIG_SYS_NAND_BLOCK_SIZE)
6064d666683SShengzhou Liu #define CONFIG_CORTINA_FW_ADDR		(4 * CONFIG_SYS_NAND_BLOCK_SIZE)
6078d67c368SShengzhou Liu #elif defined(CONFIG_SRIO_PCIE_BOOT_SLAVE)
6088d67c368SShengzhou Liu /*
6098d67c368SShengzhou Liu  * Slave has no ucode locally, it can fetch this from remote. When implementing
6108d67c368SShengzhou Liu  * in two corenet boards, slave's ucode could be stored in master's memory
6118d67c368SShengzhou Liu  * space, the address can be mapped from slave TLB->slave LAW->
6128d67c368SShengzhou Liu  * slave SRIO or PCIE outbound window->master inbound window->
6138d67c368SShengzhou Liu  * master LAW->the ucode address in master's memory space.
6148d67c368SShengzhou Liu  */
6158d67c368SShengzhou Liu #define CONFIG_SYS_QE_FMAN_FW_IN_REMOTE
616*ef531c73SShengzhou Liu #define CONFIG_SYS_CORTINA_FW_IN_REMOTE
617dcf1d774SZhao Qiang #define CONFIG_SYS_FMAN_FW_ADDR		0xFFE00000
6188d67c368SShengzhou Liu #define CONFIG_CORTINA_FW_ADDR		0xFFE10000
6198d67c368SShengzhou Liu #else
6208d67c368SShengzhou Liu #define CONFIG_SYS_QE_FMAN_FW_IN_NOR
621*ef531c73SShengzhou Liu #define CONFIG_SYS_CORTINA_FW_IN_NOR
622dcf1d774SZhao Qiang #define CONFIG_SYS_FMAN_FW_ADDR		0xEFF00000
6238d67c368SShengzhou Liu #define CONFIG_CORTINA_FW_ADDR		0xEFE00000
6248d67c368SShengzhou Liu #endif
6258d67c368SShengzhou Liu #define CONFIG_SYS_QE_FMAN_FW_LENGTH	0x10000
6268d67c368SShengzhou Liu #define CONFIG_SYS_FDT_PAD		(0x3000 + CONFIG_SYS_QE_FMAN_FW_LENGTH)
6278d67c368SShengzhou Liu #endif /* CONFIG_NOBQFMAN */
6288d67c368SShengzhou Liu 
6298d67c368SShengzhou Liu #ifdef CONFIG_SYS_DPAA_FMAN
6308d67c368SShengzhou Liu #define CONFIG_FMAN_ENET
6318d67c368SShengzhou Liu #define CONFIG_PHYLIB_10G
6328d67c368SShengzhou Liu #define CONFIG_PHY_CORTINA
6338d67c368SShengzhou Liu #define CONFIG_PHY_AQ1202
6348d67c368SShengzhou Liu #define CONFIG_PHY_REALTEK
6358d67c368SShengzhou Liu #define CONFIG_CORTINA_FW_LENGTH	0x40000
6368d67c368SShengzhou Liu #define RGMII_PHY1_ADDR		0x01  /* RealTek RTL8211E */
6378d67c368SShengzhou Liu #define RGMII_PHY2_ADDR		0x02
6388d67c368SShengzhou Liu #define CORTINA_PHY_ADDR1	0x0c  /* Cortina CS4315 */
6398d67c368SShengzhou Liu #define CORTINA_PHY_ADDR2	0x0d
6408d67c368SShengzhou Liu #define FM1_10GEC3_PHY_ADDR	0x00  /* Aquantia AQ1202 10G Base-T */
6418d67c368SShengzhou Liu #define FM1_10GEC4_PHY_ADDR	0x01
6428d67c368SShengzhou Liu #endif
6438d67c368SShengzhou Liu 
6448d67c368SShengzhou Liu 
6458d67c368SShengzhou Liu #ifdef CONFIG_FMAN_ENET
6468d67c368SShengzhou Liu #define CONFIG_MII		/* MII PHY management */
6478d67c368SShengzhou Liu #define CONFIG_ETHPRIME		"FM1@DTSEC3"
6488d67c368SShengzhou Liu #define CONFIG_PHY_GIGE		/* Include GbE speed/duplex detection */
6498d67c368SShengzhou Liu #endif
6508d67c368SShengzhou Liu 
6518d67c368SShengzhou Liu /*
6528d67c368SShengzhou Liu  * SATA
6538d67c368SShengzhou Liu  */
6548d67c368SShengzhou Liu #ifdef CONFIG_FSL_SATA_V2
6558d67c368SShengzhou Liu #define CONFIG_LIBATA
6568d67c368SShengzhou Liu #define CONFIG_FSL_SATA
6578d67c368SShengzhou Liu #define CONFIG_SYS_SATA_MAX_DEVICE	2
6588d67c368SShengzhou Liu #define CONFIG_SATA1
6598d67c368SShengzhou Liu #define CONFIG_SYS_SATA1		CONFIG_SYS_MPC85xx_SATA1_ADDR
6608d67c368SShengzhou Liu #define CONFIG_SYS_SATA1_FLAGS		FLAGS_DMA
6618d67c368SShengzhou Liu #define CONFIG_SATA2
6628d67c368SShengzhou Liu #define CONFIG_SYS_SATA2		CONFIG_SYS_MPC85xx_SATA2_ADDR
6638d67c368SShengzhou Liu #define CONFIG_SYS_SATA2_FLAGS		FLAGS_DMA
6648d67c368SShengzhou Liu #define CONFIG_LBA48
6658d67c368SShengzhou Liu #define CONFIG_CMD_SATA
6668d67c368SShengzhou Liu #define CONFIG_DOS_PARTITION
6678d67c368SShengzhou Liu #define CONFIG_CMD_EXT2
6688d67c368SShengzhou Liu #endif
6698d67c368SShengzhou Liu 
6708d67c368SShengzhou Liu /*
6718d67c368SShengzhou Liu  * USB
6728d67c368SShengzhou Liu  */
6738d67c368SShengzhou Liu #ifdef CONFIG_USB_EHCI
6748d67c368SShengzhou Liu #define CONFIG_CMD_USB
6758d67c368SShengzhou Liu #define CONFIG_USB_STORAGE
6768d67c368SShengzhou Liu #define CONFIG_USB_EHCI_FSL
6778d67c368SShengzhou Liu #define CONFIG_EHCI_HCD_INIT_AFTER_RESET
6788d67c368SShengzhou Liu #define CONFIG_CMD_EXT2
6798d67c368SShengzhou Liu #define CONFIG_HAS_FSL_DR_USB
6808d67c368SShengzhou Liu #endif
6818d67c368SShengzhou Liu 
6828d67c368SShengzhou Liu /*
6838d67c368SShengzhou Liu  * SDHC
6848d67c368SShengzhou Liu  */
6858d67c368SShengzhou Liu #ifdef CONFIG_MMC
6868d67c368SShengzhou Liu #define CONFIG_CMD_MMC
6878d67c368SShengzhou Liu #define CONFIG_FSL_ESDHC
6888d67c368SShengzhou Liu #define CONFIG_SYS_FSL_ESDHC_ADDR	CONFIG_SYS_MPC85xx_ESDHC_ADDR
6898d67c368SShengzhou Liu #define CONFIG_SYS_FSL_ESDHC_BROKEN_TIMEOUT
6908d67c368SShengzhou Liu #define CONFIG_SYS_FSL_MMC_HAS_CAPBLT_VS33
6918d67c368SShengzhou Liu #define CONFIG_GENERIC_MMC
6928d67c368SShengzhou Liu #define CONFIG_CMD_EXT2
6938d67c368SShengzhou Liu #define CONFIG_CMD_FAT
6948d67c368SShengzhou Liu #define CONFIG_DOS_PARTITION
6958d67c368SShengzhou Liu #endif
6968d67c368SShengzhou Liu 
6978d67c368SShengzhou Liu /*
6984feac1c6SShengzhou Liu  * Dynamic MTD Partition support with mtdparts
6994feac1c6SShengzhou Liu  */
7004feac1c6SShengzhou Liu #ifndef CONFIG_SYS_NO_FLASH
7014feac1c6SShengzhou Liu #define CONFIG_MTD_DEVICE
7024feac1c6SShengzhou Liu #define CONFIG_MTD_PARTITIONS
7034feac1c6SShengzhou Liu #define CONFIG_CMD_MTDPARTS
7044feac1c6SShengzhou Liu #define CONFIG_FLASH_CFI_MTD
7054feac1c6SShengzhou Liu #define MTDIDS_DEFAULT "nor0=fe8000000.nor,nand0=fff800000.flash," \
7064feac1c6SShengzhou Liu 			"spi0=spife110000.1"
7074feac1c6SShengzhou Liu #define MTDPARTS_DEFAULT "mtdparts=fe8000000.nor:1m(uboot),5m(kernel)," \
7084feac1c6SShengzhou Liu 			"128k(dtb),96m(fs),-(user);fff800000.flash:1m(uboot)," \
7094feac1c6SShengzhou Liu 			"5m(kernel),128k(dtb),96m(fs),-(user);spife110000.1:" \
7104feac1c6SShengzhou Liu 			"1m(uboot),5m(kernel),128k(dtb),-(user)"
7114feac1c6SShengzhou Liu #endif
7124feac1c6SShengzhou Liu 
7134feac1c6SShengzhou Liu /*
7148d67c368SShengzhou Liu  * Environment
7158d67c368SShengzhou Liu  */
7168d67c368SShengzhou Liu 
7178d67c368SShengzhou Liu /*
7188d67c368SShengzhou Liu  * Command line configuration.
7198d67c368SShengzhou Liu  */
7208d67c368SShengzhou Liu #include <config_cmd_default.h>
7218d67c368SShengzhou Liu 
7228d67c368SShengzhou Liu #define CONFIG_CMD_DHCP
7238d67c368SShengzhou Liu #define CONFIG_CMD_ELF
7248d67c368SShengzhou Liu #define CONFIG_CMD_MII
7258d67c368SShengzhou Liu #define CONFIG_CMD_I2C
7268d67c368SShengzhou Liu #define CONFIG_CMD_PING
7278d67c368SShengzhou Liu #define CONFIG_CMD_ECHO
7288d67c368SShengzhou Liu #define CONFIG_CMD_SETEXPR
7298d67c368SShengzhou Liu #define CONFIG_CMD_REGINFO
7308d67c368SShengzhou Liu #define CONFIG_CMD_BDI
7318d67c368SShengzhou Liu 
7328d67c368SShengzhou Liu #ifdef CONFIG_PCI
7338d67c368SShengzhou Liu #define CONFIG_CMD_PCI
7348d67c368SShengzhou Liu #define CONFIG_CMD_NET
7358d67c368SShengzhou Liu #endif
7368d67c368SShengzhou Liu 
7378d67c368SShengzhou Liu /*
7388d67c368SShengzhou Liu  * Miscellaneous configurable options
7398d67c368SShengzhou Liu  */
7408d67c368SShengzhou Liu #define CONFIG_SYS_LONGHELP		/* undef to save memory */
7418d67c368SShengzhou Liu #define CONFIG_CMDLINE_EDITING		/* Command-line editing */
7428d67c368SShengzhou Liu #define CONFIG_AUTO_COMPLETE		/* add autocompletion support */
7438d67c368SShengzhou Liu #define CONFIG_SYS_LOAD_ADDR	0x2000000 /* default load address */
7448d67c368SShengzhou Liu #define CONFIG_SYS_PROMPT	"=> "	  /* Monitor Command Prompt */
7458d67c368SShengzhou Liu #ifdef CONFIG_CMD_KGDB
7468d67c368SShengzhou Liu #define CONFIG_SYS_CBSIZE	1024	  /* Console I/O Buffer Size */
7478d67c368SShengzhou Liu #else
7488d67c368SShengzhou Liu #define CONFIG_SYS_CBSIZE	256	  /* Console I/O Buffer Size */
7498d67c368SShengzhou Liu #endif
7508d67c368SShengzhou Liu #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)
7518d67c368SShengzhou Liu #define CONFIG_SYS_MAXARGS	16	/* max number of command args */
7528d67c368SShengzhou Liu #define CONFIG_SYS_BARGSIZE	CONFIG_SYS_CBSIZE/* Boot Argument Buffer Size */
7538d67c368SShengzhou Liu #define CONFIG_SYS_HZ		1000	/* decrementer freq: 1ms ticks*/
7548d67c368SShengzhou Liu 
7558d67c368SShengzhou Liu /*
7568d67c368SShengzhou Liu  * For booting Linux, the board info and command line data
7578d67c368SShengzhou Liu  * have to be in the first 64 MB of memory, since this is
7588d67c368SShengzhou Liu  * the maximum mapped by the Linux kernel during initialization.
7598d67c368SShengzhou Liu  */
7608d67c368SShengzhou Liu #define CONFIG_SYS_BOOTMAPSZ	(64 << 20)	/* Initial map for Linux*/
7618d67c368SShengzhou Liu #define CONFIG_SYS_BOOTM_LEN	(64 << 20)	/* Increase max gunzip size */
7628d67c368SShengzhou Liu 
7638d67c368SShengzhou Liu #ifdef CONFIG_CMD_KGDB
7648d67c368SShengzhou Liu #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */
7658d67c368SShengzhou Liu #define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */
7668d67c368SShengzhou Liu #endif
7678d67c368SShengzhou Liu 
7688d67c368SShengzhou Liu /*
7698d67c368SShengzhou Liu  * Environment Configuration
7708d67c368SShengzhou Liu  */
7718d67c368SShengzhou Liu #define CONFIG_ROOTPATH	 "/opt/nfsroot"
7728d67c368SShengzhou Liu #define CONFIG_BOOTFILE	 "uImage"
7738d67c368SShengzhou Liu #define CONFIG_UBOOTPATH "u-boot.bin"	/* U-Boot image on TFTP server */
7748d67c368SShengzhou Liu 
7758d67c368SShengzhou Liu /* default location for tftp and bootm */
7768d67c368SShengzhou Liu #define CONFIG_LOADADDR		1000000
7778d67c368SShengzhou Liu #define CONFIG_BAUDRATE		115200
7788d67c368SShengzhou Liu #define CONFIG_BOOTDELAY	10	/* -1 disables auto-boot */
7798d67c368SShengzhou Liu #define __USB_PHY_TYPE		utmi
7808d67c368SShengzhou Liu 
7818d67c368SShengzhou Liu #define	CONFIG_EXTRA_ENV_SETTINGS				\
7828d67c368SShengzhou Liu 	"hwconfig=fsl_ddr:"					\
7838d67c368SShengzhou Liu 	"ctlr_intlv=" __stringify(CTRL_INTLV_PREFERED) ","	\
7848d67c368SShengzhou Liu 	"bank_intlv=auto;"					\
7858d67c368SShengzhou Liu 	"usb1:dr_mode=host,phy_type=" __stringify(__USB_PHY_TYPE) "\0"\
7868d67c368SShengzhou Liu 	"netdev=eth0\0"						\
7878d67c368SShengzhou Liu 	"uboot=" __stringify(CONFIG_UBOOTPATH) "\0"		\
7888d67c368SShengzhou Liu 	"ubootaddr=" __stringify(CONFIG_SYS_TEXT_BASE) "\0"	\
7898d67c368SShengzhou Liu 	"tftpflash=tftpboot $loadaddr $uboot && "		\
7908d67c368SShengzhou Liu 	"protect off $ubootaddr +$filesize && "			\
7918d67c368SShengzhou Liu 	"erase $ubootaddr +$filesize && "			\
7928d67c368SShengzhou Liu 	"cp.b $loadaddr $ubootaddr $filesize && "		\
7938d67c368SShengzhou Liu 	"protect on $ubootaddr +$filesize && "			\
7948d67c368SShengzhou Liu 	"cmp.b $loadaddr $ubootaddr $filesize\0"		\
7958d67c368SShengzhou Liu 	"consoledev=ttyS0\0"					\
7968d67c368SShengzhou Liu 	"ramdiskaddr=2000000\0"					\
7978d67c368SShengzhou Liu 	"ramdiskfile=t2080rdb/ramdisk.uboot\0"			\
7988d67c368SShengzhou Liu 	"fdtaddr=c00000\0"					\
7998d67c368SShengzhou Liu 	"fdtfile=t2080rdb/t2080rdb.dtb\0"			\
8008d67c368SShengzhou Liu 	"bdev=sda3\0"						\
8018d67c368SShengzhou Liu 	"c=ffe\0"
8028d67c368SShengzhou Liu 
8038d67c368SShengzhou Liu /*
8048d67c368SShengzhou Liu  * For emulation this causes u-boot to jump to the start of the
8058d67c368SShengzhou Liu  * proof point app code automatically
8068d67c368SShengzhou Liu  */
8078d67c368SShengzhou Liu #define CONFIG_PROOF_POINTS				\
8088d67c368SShengzhou Liu 	"setenv bootargs root=/dev/$bdev rw "		\
8098d67c368SShengzhou Liu 	"console=$consoledev,$baudrate $othbootargs;"	\
8108d67c368SShengzhou Liu 	"cpu 1 release 0x29000000 - - -;"		\
8118d67c368SShengzhou Liu 	"cpu 2 release 0x29000000 - - -;"		\
8128d67c368SShengzhou Liu 	"cpu 3 release 0x29000000 - - -;"		\
8138d67c368SShengzhou Liu 	"cpu 4 release 0x29000000 - - -;"		\
8148d67c368SShengzhou Liu 	"cpu 5 release 0x29000000 - - -;"		\
8158d67c368SShengzhou Liu 	"cpu 6 release 0x29000000 - - -;"		\
8168d67c368SShengzhou Liu 	"cpu 7 release 0x29000000 - - -;"		\
8178d67c368SShengzhou Liu 	"go 0x29000000"
8188d67c368SShengzhou Liu 
8198d67c368SShengzhou Liu #define CONFIG_HVBOOT				\
8208d67c368SShengzhou Liu 	"setenv bootargs config-addr=0x60000000; "	\
8218d67c368SShengzhou Liu 	"bootm 0x01000000 - 0x00f00000"
8228d67c368SShengzhou Liu 
8238d67c368SShengzhou Liu #define CONFIG_ALU				\
8248d67c368SShengzhou Liu 	"setenv bootargs root=/dev/$bdev rw "		\
8258d67c368SShengzhou Liu 	"console=$consoledev,$baudrate $othbootargs;"	\
8268d67c368SShengzhou Liu 	"cpu 1 release 0x01000000 - - -;"		\
8278d67c368SShengzhou Liu 	"cpu 2 release 0x01000000 - - -;"		\
8288d67c368SShengzhou Liu 	"cpu 3 release 0x01000000 - - -;"		\
8298d67c368SShengzhou Liu 	"cpu 4 release 0x01000000 - - -;"		\
8308d67c368SShengzhou Liu 	"cpu 5 release 0x01000000 - - -;"		\
8318d67c368SShengzhou Liu 	"cpu 6 release 0x01000000 - - -;"		\
8328d67c368SShengzhou Liu 	"cpu 7 release 0x01000000 - - -;"		\
8338d67c368SShengzhou Liu 	"go 0x01000000"
8348d67c368SShengzhou Liu 
8358d67c368SShengzhou Liu #define CONFIG_LINUX				\
8368d67c368SShengzhou Liu 	"setenv bootargs root=/dev/ram rw "		\
8378d67c368SShengzhou Liu 	"console=$consoledev,$baudrate $othbootargs;"	\
8388d67c368SShengzhou Liu 	"setenv ramdiskaddr 0x02000000;"		\
8398d67c368SShengzhou Liu 	"setenv fdtaddr 0x00c00000;"			\
8408d67c368SShengzhou Liu 	"setenv loadaddr 0x1000000;"			\
8418d67c368SShengzhou Liu 	"bootm $loadaddr $ramdiskaddr $fdtaddr"
8428d67c368SShengzhou Liu 
8438d67c368SShengzhou Liu #define CONFIG_HDBOOT					\
8448d67c368SShengzhou Liu 	"setenv bootargs root=/dev/$bdev rw "		\
8458d67c368SShengzhou Liu 	"console=$consoledev,$baudrate $othbootargs;"	\
8468d67c368SShengzhou Liu 	"tftp $loadaddr $bootfile;"			\
8478d67c368SShengzhou Liu 	"tftp $fdtaddr $fdtfile;"			\
8488d67c368SShengzhou Liu 	"bootm $loadaddr - $fdtaddr"
8498d67c368SShengzhou Liu 
8508d67c368SShengzhou Liu #define CONFIG_NFSBOOTCOMMAND			\
8518d67c368SShengzhou Liu 	"setenv bootargs root=/dev/nfs rw "	\
8528d67c368SShengzhou Liu 	"nfsroot=$serverip:$rootpath "		\
8538d67c368SShengzhou Liu 	"ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname:$netdev:off " \
8548d67c368SShengzhou Liu 	"console=$consoledev,$baudrate $othbootargs;"	\
8558d67c368SShengzhou Liu 	"tftp $loadaddr $bootfile;"		\
8568d67c368SShengzhou Liu 	"tftp $fdtaddr $fdtfile;"		\
8578d67c368SShengzhou Liu 	"bootm $loadaddr - $fdtaddr"
8588d67c368SShengzhou Liu 
8598d67c368SShengzhou Liu #define CONFIG_RAMBOOTCOMMAND				\
8608d67c368SShengzhou Liu 	"setenv bootargs root=/dev/ram rw "		\
8618d67c368SShengzhou Liu 	"console=$consoledev,$baudrate $othbootargs;"	\
8628d67c368SShengzhou Liu 	"tftp $ramdiskaddr $ramdiskfile;"		\
8638d67c368SShengzhou Liu 	"tftp $loadaddr $bootfile;"			\
8648d67c368SShengzhou Liu 	"tftp $fdtaddr $fdtfile;"			\
8658d67c368SShengzhou Liu 	"bootm $loadaddr $ramdiskaddr $fdtaddr"
8668d67c368SShengzhou Liu 
8678d67c368SShengzhou Liu #define CONFIG_BOOTCOMMAND		CONFIG_LINUX
8688d67c368SShengzhou Liu 
8698d67c368SShengzhou Liu #ifdef CONFIG_SECURE_BOOT
8708d67c368SShengzhou Liu #include <asm/fsl_secure_boot.h>
8718d67c368SShengzhou Liu #undef CONFIG_CMD_USB
8728d67c368SShengzhou Liu #endif
8738d67c368SShengzhou Liu 
8748d67c368SShengzhou Liu #endif	/* __T2080RDB_H */
875