xref: /rk3399_rockchip-uboot/include/configs/P1010RDB.h (revision c3cc02af6ce6f4ff2fa494aeb4dbf1e037254877)
149249e13SPoonam Aggrwal /*
249249e13SPoonam Aggrwal  * Copyright 2010-2011 Freescale Semiconductor, Inc.
349249e13SPoonam Aggrwal  *
41a459660SWolfgang Denk  * SPDX-License-Identifier:	GPL-2.0+
549249e13SPoonam Aggrwal  */
649249e13SPoonam Aggrwal 
749249e13SPoonam Aggrwal /*
849249e13SPoonam Aggrwal  * P010 RDB board configuration file
949249e13SPoonam Aggrwal  */
1049249e13SPoonam Aggrwal 
1149249e13SPoonam Aggrwal #ifndef __CONFIG_H
1249249e13SPoonam Aggrwal #define __CONFIG_H
1349249e13SPoonam Aggrwal 
1449249e13SPoonam Aggrwal #ifdef CONFIG_36BIT
1549249e13SPoonam Aggrwal #define CONFIG_PHYS_64BIT
1649249e13SPoonam Aggrwal #endif
1749249e13SPoonam Aggrwal 
1849249e13SPoonam Aggrwal #define CONFIG_P1010
1974fa22edSPrabhakar Kushwaha #define CONFIG_E500			/* BOOKE e500 family */
2074fa22edSPrabhakar Kushwaha #include <asm/config_mpc85xx.h>
21d793e5a8SDipen Dudhat #define CONFIG_NAND_FSL_IFC
2249249e13SPoonam Aggrwal 
2349249e13SPoonam Aggrwal #ifdef CONFIG_SDCARD
2449249e13SPoonam Aggrwal #define CONFIG_RAMBOOT_SDCARD
2549249e13SPoonam Aggrwal #define CONFIG_SYS_TEXT_BASE		0x11000000
2649249e13SPoonam Aggrwal #define CONFIG_RESET_VECTOR_ADDRESS	0x1107fffc
2749249e13SPoonam Aggrwal #endif
2849249e13SPoonam Aggrwal 
2949249e13SPoonam Aggrwal #ifdef CONFIG_SPIFLASH
3049249e13SPoonam Aggrwal #define CONFIG_RAMBOOT_SPIFLASH
3149249e13SPoonam Aggrwal #define CONFIG_SYS_TEXT_BASE		0x11000000
3249249e13SPoonam Aggrwal #define CONFIG_RESET_VECTOR_ADDRESS	0x1107fffc
3349249e13SPoonam Aggrwal #endif
3449249e13SPoonam Aggrwal 
350fa934d2SPrabhakar Kushwaha #ifdef CONFIG_NAND
360fa934d2SPrabhakar Kushwaha #define CONFIG_SPL
370fa934d2SPrabhakar Kushwaha #define CONFIG_SPL_INIT_MINIMAL
380fa934d2SPrabhakar Kushwaha #define CONFIG_SPL_SERIAL_SUPPORT
390fa934d2SPrabhakar Kushwaha #define CONFIG_SPL_NAND_SUPPORT
400fa934d2SPrabhakar Kushwaha #define CONFIG_SPL_NAND_MINIMAL
410fa934d2SPrabhakar Kushwaha #define CONFIG_SPL_FLUSH_IMAGE
420fa934d2SPrabhakar Kushwaha #define CONFIG_SPL_TARGET		"u-boot-with-spl.bin"
430fa934d2SPrabhakar Kushwaha 
440fa934d2SPrabhakar Kushwaha #define CONFIG_SYS_TEXT_BASE		0x00201000
450fa934d2SPrabhakar Kushwaha #define CONFIG_SPL_TEXT_BASE		0xFFFFE000
460fa934d2SPrabhakar Kushwaha #define CONFIG_SPL_MAX_SIZE		8192
470fa934d2SPrabhakar Kushwaha #define CONFIG_SPL_RELOC_TEXT_BASE	0x00100000
480fa934d2SPrabhakar Kushwaha #define CONFIG_SPL_RELOC_STACK		0x00100000
490fa934d2SPrabhakar Kushwaha #define CONFIG_SYS_NAND_U_BOOT_SIZE	((512 << 10) - 0x2000)
500fa934d2SPrabhakar Kushwaha #define CONFIG_SYS_NAND_U_BOOT_DST	(0x00200000 - CONFIG_SPL_MAX_SIZE)
510fa934d2SPrabhakar Kushwaha #define CONFIG_SYS_NAND_U_BOOT_START	0x00200000
520fa934d2SPrabhakar Kushwaha #define CONFIG_SYS_NAND_U_BOOT_OFFS	0
530fa934d2SPrabhakar Kushwaha #define CONFIG_SYS_LDSCRIPT	"arch/powerpc/cpu/mpc85xx/u-boot-nand.lds"
54d793e5a8SDipen Dudhat #endif
55d793e5a8SDipen Dudhat 
562f439e80SRuchika Gupta 
572f439e80SRuchika Gupta #ifdef CONFIG_NAND_SECBOOT	/* NAND Boot */
582f439e80SRuchika Gupta #define CONFIG_RAMBOOT_NAND
592f439e80SRuchika Gupta #define CONFIG_SYS_TEXT_BASE		0x11000000
602f439e80SRuchika Gupta #define CONFIG_RESET_VECTOR_ADDRESS	0x1107fffc
612f439e80SRuchika Gupta #endif
622f439e80SRuchika Gupta 
6349249e13SPoonam Aggrwal #ifndef CONFIG_SYS_TEXT_BASE
6449249e13SPoonam Aggrwal #define CONFIG_SYS_TEXT_BASE		0xeff80000
6549249e13SPoonam Aggrwal #endif
6649249e13SPoonam Aggrwal 
6749249e13SPoonam Aggrwal #ifndef CONFIG_RESET_VECTOR_ADDRESS
6849249e13SPoonam Aggrwal #define CONFIG_RESET_VECTOR_ADDRESS	0xeffffffc
6949249e13SPoonam Aggrwal #endif
7049249e13SPoonam Aggrwal 
710fa934d2SPrabhakar Kushwaha #ifdef CONFIG_SPL_BUILD
720fa934d2SPrabhakar Kushwaha #define CONFIG_SYS_MONITOR_BASE	CONFIG_SPL_TEXT_BASE
730fa934d2SPrabhakar Kushwaha #else
7449249e13SPoonam Aggrwal #define CONFIG_SYS_MONITOR_BASE	CONFIG_SYS_TEXT_BASE	/* start of monitor */
7549249e13SPoonam Aggrwal #endif
7649249e13SPoonam Aggrwal 
7749249e13SPoonam Aggrwal /* High Level Configuration Options */
7849249e13SPoonam Aggrwal #define CONFIG_BOOKE			/* BOOKE */
7949249e13SPoonam Aggrwal #define CONFIG_E500			/* BOOKE e500 family */
8049249e13SPoonam Aggrwal #define CONFIG_MPC85xx
8149249e13SPoonam Aggrwal #define CONFIG_FSL_IFC			/* Enable IFC Support */
8249249e13SPoonam Aggrwal #define CONFIG_SYS_HAS_SERDES		/* common SERDES init code */
8349249e13SPoonam Aggrwal 
8449249e13SPoonam Aggrwal #define CONFIG_PCI			/* Enable PCI/PCIE */
8549249e13SPoonam Aggrwal #if defined(CONFIG_PCI)
8649249e13SPoonam Aggrwal #define CONFIG_PCIE1			/* PCIE controler 1 (slot 1) */
8749249e13SPoonam Aggrwal #define CONFIG_PCIE2			/* PCIE controler 2 (slot 2) */
8849249e13SPoonam Aggrwal #define CONFIG_FSL_PCI_INIT		/* Use common FSL init code */
89842033e6SGabor Juhos #define CONFIG_PCI_INDIRECT_BRIDGE	/* indirect PCI bridge support */
9049249e13SPoonam Aggrwal #define CONFIG_FSL_PCIE_RESET		/* need PCIe reset errata */
9149249e13SPoonam Aggrwal #define CONFIG_SYS_PCI_64BIT		/* enable 64-bit PCI resources */
9249249e13SPoonam Aggrwal 
9349249e13SPoonam Aggrwal #define CONFIG_CMD_NET
9449249e13SPoonam Aggrwal #define CONFIG_CMD_PCI
9549249e13SPoonam Aggrwal 
9649249e13SPoonam Aggrwal #define CONFIG_E1000			/*  E1000 pci Ethernet card*/
9749249e13SPoonam Aggrwal 
9849249e13SPoonam Aggrwal /*
9949249e13SPoonam Aggrwal  * PCI Windows
10049249e13SPoonam Aggrwal  * Memory space is mapped 1-1, but I/O space must start from 0.
10149249e13SPoonam Aggrwal  */
10249249e13SPoonam Aggrwal /* controller 1, Slot 1, tgtid 1, Base address a000 */
10349249e13SPoonam Aggrwal #define CONFIG_SYS_PCIE1_NAME		"mini PCIe Slot"
10449249e13SPoonam Aggrwal #define CONFIG_SYS_PCIE1_MEM_VIRT	0x80000000
10549249e13SPoonam Aggrwal #ifdef CONFIG_PHYS_64BIT
10649249e13SPoonam Aggrwal #define CONFIG_SYS_PCIE1_MEM_BUS	0x80000000
10749249e13SPoonam Aggrwal #define CONFIG_SYS_PCIE1_MEM_PHYS	0xc00000000ull
10849249e13SPoonam Aggrwal #else
10949249e13SPoonam Aggrwal #define CONFIG_SYS_PCIE1_MEM_BUS	0x80000000
11049249e13SPoonam Aggrwal #define CONFIG_SYS_PCIE1_MEM_PHYS	0x80000000
11149249e13SPoonam Aggrwal #endif
11249249e13SPoonam Aggrwal #define CONFIG_SYS_PCIE1_MEM_SIZE	0x20000000	/* 512M */
11349249e13SPoonam Aggrwal #define CONFIG_SYS_PCIE1_IO_VIRT	0xffc00000
11449249e13SPoonam Aggrwal #define CONFIG_SYS_PCIE1_IO_BUS		0x00000000
11549249e13SPoonam Aggrwal #define CONFIG_SYS_PCIE1_IO_SIZE	0x00010000	/* 64k */
11649249e13SPoonam Aggrwal #ifdef CONFIG_PHYS_64BIT
11749249e13SPoonam Aggrwal #define CONFIG_SYS_PCIE1_IO_PHYS	0xfffc00000ull
11849249e13SPoonam Aggrwal #else
11949249e13SPoonam Aggrwal #define CONFIG_SYS_PCIE1_IO_PHYS	0xffc00000
12049249e13SPoonam Aggrwal #endif
12149249e13SPoonam Aggrwal 
12249249e13SPoonam Aggrwal /* controller 2, Slot 2, tgtid 2, Base address 9000 */
123e512c50bSShengzhou Liu #if defined(CONFIG_P1010RDB_PA)
12449249e13SPoonam Aggrwal #define CONFIG_SYS_PCIE2_NAME		"PCIe Slot"
125e512c50bSShengzhou Liu #elif defined(CONFIG_P1010RDB_PB)
126e512c50bSShengzhou Liu #define CONFIG_SYS_PCIE2_NAME		"mini PCIe Slot"
127e512c50bSShengzhou Liu #endif
12849249e13SPoonam Aggrwal #define CONFIG_SYS_PCIE2_MEM_VIRT	0xa0000000
12949249e13SPoonam Aggrwal #ifdef CONFIG_PHYS_64BIT
13049249e13SPoonam Aggrwal #define CONFIG_SYS_PCIE2_MEM_BUS	0xc0000000
13149249e13SPoonam Aggrwal #define CONFIG_SYS_PCIE2_MEM_PHYS	0xc20000000ull
13249249e13SPoonam Aggrwal #else
13349249e13SPoonam Aggrwal #define CONFIG_SYS_PCIE2_MEM_BUS	0xa0000000
13449249e13SPoonam Aggrwal #define CONFIG_SYS_PCIE2_MEM_PHYS	0xa0000000
13549249e13SPoonam Aggrwal #endif
13649249e13SPoonam Aggrwal #define CONFIG_SYS_PCIE2_MEM_SIZE	0x20000000	/* 512M */
13749249e13SPoonam Aggrwal #define CONFIG_SYS_PCIE2_IO_VIRT	0xffc10000
13849249e13SPoonam Aggrwal #define CONFIG_SYS_PCIE2_IO_BUS		0x00000000
13949249e13SPoonam Aggrwal #define CONFIG_SYS_PCIE2_IO_SIZE	0x00010000	/* 64k */
14049249e13SPoonam Aggrwal #ifdef CONFIG_PHYS_64BIT
14149249e13SPoonam Aggrwal #define CONFIG_SYS_PCIE2_IO_PHYS	0xfffc10000ull
14249249e13SPoonam Aggrwal #else
14349249e13SPoonam Aggrwal #define CONFIG_SYS_PCIE2_IO_PHYS	0xffc10000
14449249e13SPoonam Aggrwal #endif
14549249e13SPoonam Aggrwal 
14649249e13SPoonam Aggrwal #define CONFIG_PCI_PNP			/* do pci plug-and-play */
14749249e13SPoonam Aggrwal 
14849249e13SPoonam Aggrwal #define CONFIG_PCI_SCAN_SHOW		/* show pci devices on startup */
14949249e13SPoonam Aggrwal #define CONFIG_DOS_PARTITION
15049249e13SPoonam Aggrwal #endif
15149249e13SPoonam Aggrwal 
15249249e13SPoonam Aggrwal #define CONFIG_FSL_LAW			/* Use common FSL init code */
15349249e13SPoonam Aggrwal #define CONFIG_TSEC_ENET
15449249e13SPoonam Aggrwal #define CONFIG_ENV_OVERWRITE
15549249e13SPoonam Aggrwal 
15649249e13SPoonam Aggrwal #define CONFIG_DDR_CLK_FREQ	66666666 /* DDRCLK on P1010 RDB */
15749249e13SPoonam Aggrwal #define CONFIG_SYS_CLK_FREQ	66666666 /* SYSCLK for P1010 RDB */
15849249e13SPoonam Aggrwal 
15949249e13SPoonam Aggrwal #define CONFIG_MISC_INIT_R
16049249e13SPoonam Aggrwal #define CONFIG_HWCONFIG
16149249e13SPoonam Aggrwal /*
16249249e13SPoonam Aggrwal  * These can be toggled for performance analysis, otherwise use default.
16349249e13SPoonam Aggrwal  */
16449249e13SPoonam Aggrwal #define CONFIG_L2_CACHE			/* toggle L2 cache */
16549249e13SPoonam Aggrwal #define CONFIG_BTB			/* toggle branch predition */
16649249e13SPoonam Aggrwal 
16749249e13SPoonam Aggrwal #define CONFIG_ADDR_STREAMING		/* toggle addr streaming */
16849249e13SPoonam Aggrwal 
16949249e13SPoonam Aggrwal #define CONFIG_ENABLE_36BIT_PHYS
17049249e13SPoonam Aggrwal 
17149249e13SPoonam Aggrwal #ifdef CONFIG_PHYS_64BIT
17249249e13SPoonam Aggrwal #define CONFIG_ADDR_MAP			1
17349249e13SPoonam Aggrwal #define CONFIG_SYS_NUM_ADDR_MAP		16	/* number of TLB1 entries */
17449249e13SPoonam Aggrwal #endif
17549249e13SPoonam Aggrwal 
176*c3cc02afSZhao Qiang #define CONFIG_SYS_MEMTEST_START	0x00200000	/* memtest works on */
17749249e13SPoonam Aggrwal #define CONFIG_SYS_MEMTEST_END		0x1fffffff
17849249e13SPoonam Aggrwal #define CONFIG_PANIC_HANG		/* do not reset board on panic */
17949249e13SPoonam Aggrwal 
18049249e13SPoonam Aggrwal /* DDR Setup */
1815614e71bSYork Sun #define CONFIG_SYS_FSL_DDR3
1821ba62f10SYork Sun #define CONFIG_SYS_DDR_RAW_TIMING
18349249e13SPoonam Aggrwal #define CONFIG_DDR_SPD
18449249e13SPoonam Aggrwal #define CONFIG_SYS_SPD_BUS_NUM		1
18549249e13SPoonam Aggrwal #define SPD_EEPROM_ADDRESS		0x52
18649249e13SPoonam Aggrwal 
18749249e13SPoonam Aggrwal #define CONFIG_MEM_INIT_VALUE		0xDeadBeef
18849249e13SPoonam Aggrwal 
18949249e13SPoonam Aggrwal #ifndef __ASSEMBLY__
19049249e13SPoonam Aggrwal extern unsigned long get_sdram_size(void);
19149249e13SPoonam Aggrwal #endif
19249249e13SPoonam Aggrwal #define CONFIG_SYS_SDRAM_SIZE		get_sdram_size() /* DDR size */
19349249e13SPoonam Aggrwal #define CONFIG_SYS_DDR_SDRAM_BASE	0x00000000
19449249e13SPoonam Aggrwal #define CONFIG_SYS_SDRAM_BASE		CONFIG_SYS_DDR_SDRAM_BASE
19549249e13SPoonam Aggrwal 
19649249e13SPoonam Aggrwal #define CONFIG_DIMM_SLOTS_PER_CTLR	1
19749249e13SPoonam Aggrwal #define CONFIG_CHIP_SELECTS_PER_CTRL	1
19849249e13SPoonam Aggrwal 
19949249e13SPoonam Aggrwal /* DDR3 Controller Settings */
20049249e13SPoonam Aggrwal #define CONFIG_SYS_DDR_CS0_BNDS		0x0000003f
20149249e13SPoonam Aggrwal #define CONFIG_SYS_DDR_CS0_CONFIG	0x80014302
20249249e13SPoonam Aggrwal #define CONFIG_SYS_DDR_CS0_CONFIG_2	0x00000000
20349249e13SPoonam Aggrwal #define CONFIG_SYS_DDR_DATA_INIT	0xdeadbeef
20449249e13SPoonam Aggrwal #define CONFIG_SYS_DDR_INIT_ADDR	0x00000000
20549249e13SPoonam Aggrwal #define CONFIG_SYS_DDR_INIT_EXT_ADDR	0x00000000
20649249e13SPoonam Aggrwal #define CONFIG_SYS_DDR_MODE_CONTROL	0x00000000
20749249e13SPoonam Aggrwal #define CONFIG_SYS_DDR_ZQ_CONTROL	0x89080600
20849249e13SPoonam Aggrwal #define CONFIG_SYS_DDR_SR_CNTR		0x00000000
20949249e13SPoonam Aggrwal #define CONFIG_SYS_DDR_RCW_1		0x00000000
21049249e13SPoonam Aggrwal #define CONFIG_SYS_DDR_RCW_2		0x00000000
211e512c50bSShengzhou Liu #define CONFIG_SYS_DDR_CONTROL		0xc70c0008      /* Type = DDR3  */
212e512c50bSShengzhou Liu #define CONFIG_SYS_DDR_CONTROL_2	0x24401000
21349249e13SPoonam Aggrwal #define CONFIG_SYS_DDR_TIMING_4		0x00000001
21449249e13SPoonam Aggrwal #define CONFIG_SYS_DDR_TIMING_5		0x03402400
21549249e13SPoonam Aggrwal 
216e512c50bSShengzhou Liu #define CONFIG_SYS_DDR_TIMING_3_800	0x00030000
217e512c50bSShengzhou Liu #define CONFIG_SYS_DDR_TIMING_0_800	0x00110104
218e512c50bSShengzhou Liu #define CONFIG_SYS_DDR_TIMING_1_800	0x6f6b8644
21949249e13SPoonam Aggrwal #define CONFIG_SYS_DDR_TIMING_2_800	0x0FA888CF
22049249e13SPoonam Aggrwal #define CONFIG_SYS_DDR_CLK_CTRL_800	0x03000000
221e512c50bSShengzhou Liu #define CONFIG_SYS_DDR_MODE_1_800	0x00441420
222e512c50bSShengzhou Liu #define CONFIG_SYS_DDR_MODE_2_800	0x00000000
22349249e13SPoonam Aggrwal #define CONFIG_SYS_DDR_INTERVAL_800	0x0C300100
224e512c50bSShengzhou Liu #define CONFIG_SYS_DDR_WRLVL_CONTROL_800 0x8675f608
22549249e13SPoonam Aggrwal 
22649249e13SPoonam Aggrwal /* settings for DDR3 at 667MT/s */
22749249e13SPoonam Aggrwal #define CONFIG_SYS_DDR_TIMING_3_667		0x00010000
22849249e13SPoonam Aggrwal #define CONFIG_SYS_DDR_TIMING_0_667		0x00110004
22949249e13SPoonam Aggrwal #define CONFIG_SYS_DDR_TIMING_1_667		0x5d59e544
23049249e13SPoonam Aggrwal #define CONFIG_SYS_DDR_TIMING_2_667		0x0FA890CD
23149249e13SPoonam Aggrwal #define CONFIG_SYS_DDR_CLK_CTRL_667		0x03000000
23249249e13SPoonam Aggrwal #define CONFIG_SYS_DDR_MODE_1_667		0x00441210
23349249e13SPoonam Aggrwal #define CONFIG_SYS_DDR_MODE_2_667		0x00000000
23449249e13SPoonam Aggrwal #define CONFIG_SYS_DDR_INTERVAL_667		0x0a280000
23549249e13SPoonam Aggrwal #define CONFIG_SYS_DDR_WRLVL_CONTROL_667	0x8675F608
23649249e13SPoonam Aggrwal 
23749249e13SPoonam Aggrwal #define CONFIG_SYS_CCSRBAR			0xffe00000
23849249e13SPoonam Aggrwal #define CONFIG_SYS_CCSRBAR_PHYS_LOW		CONFIG_SYS_CCSRBAR
23949249e13SPoonam Aggrwal 
240d793e5a8SDipen Dudhat /* Don't relocate CCSRBAR while in NAND_SPL */
2410fa934d2SPrabhakar Kushwaha #ifdef CONFIG_SPL_BUILD
242d793e5a8SDipen Dudhat #define CONFIG_SYS_CCSR_DO_NOT_RELOCATE
243d793e5a8SDipen Dudhat #endif
244d793e5a8SDipen Dudhat 
24549249e13SPoonam Aggrwal /*
24649249e13SPoonam Aggrwal  * Memory map
24749249e13SPoonam Aggrwal  *
24849249e13SPoonam Aggrwal  * 0x0000_0000	0x3fff_ffff	DDR			1G cacheable
24949249e13SPoonam Aggrwal  * 0x8000_0000  0xbfff_ffff	PCI Express Mem		1.5G non-cacheable
25049249e13SPoonam Aggrwal  * 0xffc0_0000  0xffc3_ffff	PCI IO range		256k non-cacheable
25149249e13SPoonam Aggrwal  *
25249249e13SPoonam Aggrwal  * Localbus non-cacheable
25349249e13SPoonam Aggrwal  * 0xff80_0000	0xff8f_ffff	NAND Flash		1M non-cacheable
25449249e13SPoonam Aggrwal  * 0xffb0_0000	0xffbf_ffff	Board CPLD		1M non-cacheable
25549249e13SPoonam Aggrwal  * 0xffd0_0000	0xffd0_3fff	L1 for stack		16K Cacheable TLB0
25649249e13SPoonam Aggrwal  * 0xffe0_0000	0xffef_ffff	CCSR			1M non-cacheable
25749249e13SPoonam Aggrwal  */
25849249e13SPoonam Aggrwal 
25949249e13SPoonam Aggrwal /*
26049249e13SPoonam Aggrwal  * IFC Definitions
26149249e13SPoonam Aggrwal  */
26249249e13SPoonam Aggrwal /* NOR Flash on IFC */
2630fa934d2SPrabhakar Kushwaha #ifdef CONFIG_SPL_BUILD
2640fa934d2SPrabhakar Kushwaha #define CONFIG_SYS_NO_FLASH
2650fa934d2SPrabhakar Kushwaha #endif
2660fa934d2SPrabhakar Kushwaha 
26749249e13SPoonam Aggrwal #define CONFIG_SYS_FLASH_BASE		0xee000000
26849249e13SPoonam Aggrwal #define CONFIG_SYS_MAX_FLASH_SECT	256	/* 32M */
26949249e13SPoonam Aggrwal 
27049249e13SPoonam Aggrwal #ifdef CONFIG_PHYS_64BIT
27149249e13SPoonam Aggrwal #define CONFIG_SYS_FLASH_BASE_PHYS	(0xf00000000ull | CONFIG_SYS_FLASH_BASE)
27249249e13SPoonam Aggrwal #else
27349249e13SPoonam Aggrwal #define CONFIG_SYS_FLASH_BASE_PHYS	CONFIG_SYS_FLASH_BASE
27449249e13SPoonam Aggrwal #endif
27549249e13SPoonam Aggrwal 
27649249e13SPoonam Aggrwal #define CONFIG_SYS_NOR_CSPR	(CSPR_PHYS_ADDR(CONFIG_SYS_FLASH_BASE_PHYS) | \
27749249e13SPoonam Aggrwal 				CSPR_PORT_SIZE_16 | \
27849249e13SPoonam Aggrwal 				CSPR_MSEL_NOR | \
27949249e13SPoonam Aggrwal 				CSPR_V)
28049249e13SPoonam Aggrwal #define CONFIG_SYS_NOR_AMASK	IFC_AMASK(32*1024*1024)
28149249e13SPoonam Aggrwal #define CONFIG_SYS_NOR_CSOR	CSOR_NOR_ADM_SHIFT(7)
28249249e13SPoonam Aggrwal /* NOR Flash Timing Params */
28349249e13SPoonam Aggrwal #define CONFIG_SYS_NOR_FTIM0	FTIM0_NOR_TACSE(0x4) | \
28449249e13SPoonam Aggrwal 				FTIM0_NOR_TEADC(0x5) | \
28549249e13SPoonam Aggrwal 				FTIM0_NOR_TEAHC(0x5)
28649249e13SPoonam Aggrwal #define CONFIG_SYS_NOR_FTIM1	FTIM1_NOR_TACO(0x1e) | \
28749249e13SPoonam Aggrwal 				FTIM1_NOR_TRAD_NOR(0x0f)
28849249e13SPoonam Aggrwal #define CONFIG_SYS_NOR_FTIM2	FTIM2_NOR_TCS(0x4) | \
28949249e13SPoonam Aggrwal 				FTIM2_NOR_TCH(0x4) | \
29049249e13SPoonam Aggrwal 				FTIM2_NOR_TWP(0x1c)
29149249e13SPoonam Aggrwal #define CONFIG_SYS_NOR_FTIM3	0x0
29249249e13SPoonam Aggrwal 
29349249e13SPoonam Aggrwal #define CONFIG_SYS_FLASH_BANKS_LIST	{CONFIG_SYS_FLASH_BASE_PHYS}
29449249e13SPoonam Aggrwal #define CONFIG_SYS_FLASH_QUIET_TEST
29549249e13SPoonam Aggrwal #define CONFIG_FLASH_SHOW_PROGRESS	45	/* count down from 45/5: 9..1 */
29649249e13SPoonam Aggrwal #define CONFIG_SYS_MAX_FLASH_BANKS	1	/* number of banks */
29749249e13SPoonam Aggrwal 
29849249e13SPoonam Aggrwal #undef CONFIG_SYS_FLASH_CHECKSUM
29949249e13SPoonam Aggrwal #define CONFIG_SYS_FLASH_ERASE_TOUT	60000	/* Flash Erase Timeout (ms) */
30049249e13SPoonam Aggrwal #define CONFIG_SYS_FLASH_WRITE_TOUT	500	/* Flash Write Timeout (ms) */
30149249e13SPoonam Aggrwal 
30249249e13SPoonam Aggrwal /* CFI for NOR Flash */
30349249e13SPoonam Aggrwal #define CONFIG_FLASH_CFI_DRIVER
30449249e13SPoonam Aggrwal #define CONFIG_SYS_FLASH_CFI
30549249e13SPoonam Aggrwal #define CONFIG_SYS_FLASH_EMPTY_INFO
30649249e13SPoonam Aggrwal #define CONFIG_SYS_FLASH_USE_BUFFER_WRITE
30749249e13SPoonam Aggrwal 
30849249e13SPoonam Aggrwal /* NAND Flash on IFC */
30949249e13SPoonam Aggrwal #define CONFIG_SYS_NAND_BASE		0xff800000
31049249e13SPoonam Aggrwal #ifdef CONFIG_PHYS_64BIT
31149249e13SPoonam Aggrwal #define CONFIG_SYS_NAND_BASE_PHYS	0xfff800000ull
31249249e13SPoonam Aggrwal #else
31349249e13SPoonam Aggrwal #define CONFIG_SYS_NAND_BASE_PHYS	CONFIG_SYS_NAND_BASE
31449249e13SPoonam Aggrwal #endif
31549249e13SPoonam Aggrwal 
316ac688078SZhao Qiang #define CONFIG_MTD_DEVICE
317ac688078SZhao Qiang #define CONFIG_MTD_PARTITION
318ac688078SZhao Qiang #define CONFIG_CMD_MTDPARTS
319ac688078SZhao Qiang #define MTDIDS_DEFAULT			"nand0=ff800000.flash"
320ac688078SZhao Qiang #define MTDPARTS_DEFAULT		\
321ac688078SZhao Qiang 	"mtdparts=ff800000.flash:2m(uboot-env),1m(dtb),5m(kernel),56m(fs),-(usr)"
322ac688078SZhao Qiang 
32349249e13SPoonam Aggrwal #define CONFIG_SYS_NAND_CSPR	(CSPR_PHYS_ADDR(CONFIG_SYS_NAND_BASE_PHYS) \
32449249e13SPoonam Aggrwal 				| CSPR_PORT_SIZE_8	\
32549249e13SPoonam Aggrwal 				| CSPR_MSEL_NAND	\
32649249e13SPoonam Aggrwal 				| CSPR_V)
32749249e13SPoonam Aggrwal #define CONFIG_SYS_NAND_AMASK	IFC_AMASK(64*1024)
328e512c50bSShengzhou Liu 
329e512c50bSShengzhou Liu #if defined(CONFIG_P1010RDB_PA)
33049249e13SPoonam Aggrwal #define CONFIG_SYS_NAND_CSOR	(CSOR_NAND_ECC_ENC_EN	/* ECC on encode */ \
33149249e13SPoonam Aggrwal 				| CSOR_NAND_ECC_DEC_EN	/* ECC on decode */ \
33249249e13SPoonam Aggrwal 				| CSOR_NAND_ECC_MODE_4	/* 4-bit ECC */ \
33349249e13SPoonam Aggrwal 				| CSOR_NAND_RAL_2	/* RAL = 2 Bytes */ \
33449249e13SPoonam Aggrwal 				| CSOR_NAND_PGS_512	/* Page Size = 512b */ \
33549249e13SPoonam Aggrwal 				| CSOR_NAND_SPRZ_16	/* Spare size = 16 */ \
33649249e13SPoonam Aggrwal 				| CSOR_NAND_PB(32))	/* 32 Pages Per Block */
337e512c50bSShengzhou Liu #define CONFIG_SYS_NAND_BLOCK_SIZE	(16 * 1024)
338e512c50bSShengzhou Liu 
339e512c50bSShengzhou Liu #elif defined(CONFIG_P1010RDB_PB)
340e512c50bSShengzhou Liu #define CONFIG_SYS_NAND_ONFI_DETECTION
341e512c50bSShengzhou Liu #define CONFIG_SYS_NAND_CSOR   (CSOR_NAND_ECC_ENC_EN   /* ECC on encode */ \
342e512c50bSShengzhou Liu 				| CSOR_NAND_ECC_DEC_EN  /* ECC on decode */ \
343e512c50bSShengzhou Liu 				| CSOR_NAND_ECC_MODE_4  /* 4-bit ECC */ \
344e512c50bSShengzhou Liu 				| CSOR_NAND_RAL_3       /* RAL = 3Byes */ \
345e512c50bSShengzhou Liu 				| CSOR_NAND_PGS_4K      /* Page Size = 4K */ \
346e512c50bSShengzhou Liu 				| CSOR_NAND_SPRZ_224    /* Spare size = 224 */ \
347e512c50bSShengzhou Liu 				| CSOR_NAND_PB(128))  /*Pages Per Block = 128 */
348e512c50bSShengzhou Liu #define CONFIG_SYS_NAND_BLOCK_SIZE     (512 * 1024)
349e512c50bSShengzhou Liu #endif
35049249e13SPoonam Aggrwal 
351d793e5a8SDipen Dudhat #define CONFIG_SYS_NAND_BASE_LIST	{ CONFIG_SYS_NAND_BASE }
352d793e5a8SDipen Dudhat #define CONFIG_SYS_MAX_NAND_DEVICE	1
353d793e5a8SDipen Dudhat #define CONFIG_MTD_NAND_VERIFY_WRITE
354d793e5a8SDipen Dudhat #define CONFIG_CMD_NAND
355d793e5a8SDipen Dudhat 
356e512c50bSShengzhou Liu #if defined(CONFIG_P1010RDB_PA)
35749249e13SPoonam Aggrwal /* NAND Flash Timing Params */
35849249e13SPoonam Aggrwal #define CONFIG_SYS_NAND_FTIM0		FTIM0_NAND_TCCST(0x01) | \
35949249e13SPoonam Aggrwal 					FTIM0_NAND_TWP(0x0C)   | \
36049249e13SPoonam Aggrwal 					FTIM0_NAND_TWCHT(0x04) | \
36149249e13SPoonam Aggrwal 					FTIM0_NAND_TWH(0x05)
36249249e13SPoonam Aggrwal #define CONFIG_SYS_NAND_FTIM1		FTIM1_NAND_TADLE(0x1d) | \
36349249e13SPoonam Aggrwal 					FTIM1_NAND_TWBE(0x1d)  | \
36449249e13SPoonam Aggrwal 					FTIM1_NAND_TRR(0x07)   | \
36549249e13SPoonam Aggrwal 					FTIM1_NAND_TRP(0x0c)
36649249e13SPoonam Aggrwal #define CONFIG_SYS_NAND_FTIM2		FTIM2_NAND_TRAD(0x0c) | \
36749249e13SPoonam Aggrwal 					FTIM2_NAND_TREH(0x05) | \
36849249e13SPoonam Aggrwal 					FTIM2_NAND_TWHRE(0x0f)
36949249e13SPoonam Aggrwal #define CONFIG_SYS_NAND_FTIM3		FTIM3_NAND_TWW(0x04)
37049249e13SPoonam Aggrwal 
371e512c50bSShengzhou Liu #elif defined(CONFIG_P1010RDB_PB)
372e512c50bSShengzhou Liu /* support MT29F16G08ABABAWP 4k-pagesize 2G-bytes NAND */
373e512c50bSShengzhou Liu /* ONFI NAND Flash mode0 Timing Params */
374e512c50bSShengzhou Liu #define CONFIG_SYS_NAND_FTIM0  (FTIM0_NAND_TCCST(0x07)| \
375e512c50bSShengzhou Liu 					FTIM0_NAND_TWP(0x18)   | \
376e512c50bSShengzhou Liu 					FTIM0_NAND_TWCHT(0x07) | \
377e512c50bSShengzhou Liu 					FTIM0_NAND_TWH(0x0a))
378e512c50bSShengzhou Liu #define CONFIG_SYS_NAND_FTIM1  (FTIM1_NAND_TADLE(0x32)| \
379e512c50bSShengzhou Liu 					FTIM1_NAND_TWBE(0x39)  | \
380e512c50bSShengzhou Liu 					FTIM1_NAND_TRR(0x0e)   | \
381e512c50bSShengzhou Liu 					FTIM1_NAND_TRP(0x18))
382e512c50bSShengzhou Liu #define CONFIG_SYS_NAND_FTIM2  (FTIM2_NAND_TRAD(0x0f) | \
383e512c50bSShengzhou Liu 					FTIM2_NAND_TREH(0x0a)  | \
384e512c50bSShengzhou Liu 					FTIM2_NAND_TWHRE(0x1e))
385e512c50bSShengzhou Liu #define CONFIG_SYS_NAND_FTIM3	0x0
386e512c50bSShengzhou Liu #endif
387e512c50bSShengzhou Liu 
38849249e13SPoonam Aggrwal #define CONFIG_SYS_NAND_DDR_LAW		11
38949249e13SPoonam Aggrwal 
39049249e13SPoonam Aggrwal /* Set up IFC registers for boot location NOR/NAND */
3910fa934d2SPrabhakar Kushwaha #if defined(CONFIG_NAND) || defined(CONFIG_NAND_SECBOOT)
392d793e5a8SDipen Dudhat #define CONFIG_SYS_CSPR0		CONFIG_SYS_NAND_CSPR
393d793e5a8SDipen Dudhat #define CONFIG_SYS_AMASK0		CONFIG_SYS_NAND_AMASK
394d793e5a8SDipen Dudhat #define CONFIG_SYS_CSOR0		CONFIG_SYS_NAND_CSOR
395d793e5a8SDipen Dudhat #define CONFIG_SYS_CS0_FTIM0		CONFIG_SYS_NAND_FTIM0
396d793e5a8SDipen Dudhat #define CONFIG_SYS_CS0_FTIM1		CONFIG_SYS_NAND_FTIM1
397d793e5a8SDipen Dudhat #define CONFIG_SYS_CS0_FTIM2		CONFIG_SYS_NAND_FTIM2
398d793e5a8SDipen Dudhat #define CONFIG_SYS_CS0_FTIM3		CONFIG_SYS_NAND_FTIM3
399d793e5a8SDipen Dudhat #define CONFIG_SYS_CSPR1		CONFIG_SYS_NOR_CSPR
400d793e5a8SDipen Dudhat #define CONFIG_SYS_AMASK1		CONFIG_SYS_NOR_AMASK
401d793e5a8SDipen Dudhat #define CONFIG_SYS_CSOR1		CONFIG_SYS_NOR_CSOR
402d793e5a8SDipen Dudhat #define CONFIG_SYS_CS1_FTIM0		CONFIG_SYS_NOR_FTIM0
403d793e5a8SDipen Dudhat #define CONFIG_SYS_CS1_FTIM1		CONFIG_SYS_NOR_FTIM1
404d793e5a8SDipen Dudhat #define CONFIG_SYS_CS1_FTIM2		CONFIG_SYS_NOR_FTIM2
405d793e5a8SDipen Dudhat #define CONFIG_SYS_CS1_FTIM3		CONFIG_SYS_NOR_FTIM3
406d793e5a8SDipen Dudhat #else
40749249e13SPoonam Aggrwal #define CONFIG_SYS_CSPR0		CONFIG_SYS_NOR_CSPR
40849249e13SPoonam Aggrwal #define CONFIG_SYS_AMASK0		CONFIG_SYS_NOR_AMASK
40949249e13SPoonam Aggrwal #define CONFIG_SYS_CSOR0		CONFIG_SYS_NOR_CSOR
41049249e13SPoonam Aggrwal #define CONFIG_SYS_CS0_FTIM0		CONFIG_SYS_NOR_FTIM0
41149249e13SPoonam Aggrwal #define CONFIG_SYS_CS0_FTIM1		CONFIG_SYS_NOR_FTIM1
41249249e13SPoonam Aggrwal #define CONFIG_SYS_CS0_FTIM2		CONFIG_SYS_NOR_FTIM2
41349249e13SPoonam Aggrwal #define CONFIG_SYS_CS0_FTIM3		CONFIG_SYS_NOR_FTIM3
41449249e13SPoonam Aggrwal #define CONFIG_SYS_CSPR1		CONFIG_SYS_NAND_CSPR
41549249e13SPoonam Aggrwal #define CONFIG_SYS_AMASK1		CONFIG_SYS_NAND_AMASK
41649249e13SPoonam Aggrwal #define CONFIG_SYS_CSOR1		CONFIG_SYS_NAND_CSOR
41749249e13SPoonam Aggrwal #define CONFIG_SYS_CS1_FTIM0		CONFIG_SYS_NAND_FTIM0
41849249e13SPoonam Aggrwal #define CONFIG_SYS_CS1_FTIM1		CONFIG_SYS_NAND_FTIM1
41949249e13SPoonam Aggrwal #define CONFIG_SYS_CS1_FTIM2		CONFIG_SYS_NAND_FTIM2
42049249e13SPoonam Aggrwal #define CONFIG_SYS_CS1_FTIM3		CONFIG_SYS_NAND_FTIM3
421d793e5a8SDipen Dudhat #endif
422d793e5a8SDipen Dudhat 
42349249e13SPoonam Aggrwal /* CPLD on IFC */
42449249e13SPoonam Aggrwal #define CONFIG_SYS_CPLD_BASE		0xffb00000
42549249e13SPoonam Aggrwal 
42649249e13SPoonam Aggrwal #ifdef CONFIG_PHYS_64BIT
42749249e13SPoonam Aggrwal #define CONFIG_SYS_CPLD_BASE_PHYS	0xfffb00000ull
42849249e13SPoonam Aggrwal #else
42949249e13SPoonam Aggrwal #define CONFIG_SYS_CPLD_BASE_PHYS	CONFIG_SYS_CPLD_BASE
43049249e13SPoonam Aggrwal #endif
43149249e13SPoonam Aggrwal 
43249249e13SPoonam Aggrwal #define CONFIG_SYS_CSPR3	(CSPR_PHYS_ADDR(CONFIG_SYS_CPLD_BASE_PHYS) \
43349249e13SPoonam Aggrwal 				| CSPR_PORT_SIZE_8 \
43449249e13SPoonam Aggrwal 				| CSPR_MSEL_GPCM \
43549249e13SPoonam Aggrwal 				| CSPR_V)
43649249e13SPoonam Aggrwal #define CONFIG_SYS_AMASK3		IFC_AMASK(64*1024)
43749249e13SPoonam Aggrwal #define CONFIG_SYS_CSOR3		0x0
43849249e13SPoonam Aggrwal /* CPLD Timing parameters for IFC CS3 */
43949249e13SPoonam Aggrwal #define CONFIG_SYS_CS3_FTIM0		(FTIM0_GPCM_TACSE(0x0e) | \
44049249e13SPoonam Aggrwal 					FTIM0_GPCM_TEADC(0x0e) | \
44149249e13SPoonam Aggrwal 					FTIM0_GPCM_TEAHC(0x0e))
44249249e13SPoonam Aggrwal #define CONFIG_SYS_CS3_FTIM1		(FTIM1_GPCM_TACO(0x0e) | \
44349249e13SPoonam Aggrwal 					FTIM1_GPCM_TRAD(0x1f))
44449249e13SPoonam Aggrwal #define CONFIG_SYS_CS3_FTIM2		(FTIM2_GPCM_TCS(0x0e) | \
44549249e13SPoonam Aggrwal 					FTIM2_GPCM_TCH(0x0) | \
44649249e13SPoonam Aggrwal 					FTIM2_GPCM_TWP(0x1f))
44749249e13SPoonam Aggrwal #define CONFIG_SYS_CS3_FTIM3		0x0
44849249e13SPoonam Aggrwal 
4490fa934d2SPrabhakar Kushwaha #if defined(CONFIG_RAMBOOT_SDCARD) || defined(CONFIG_RAMBOOT_SPIFLASH)
45049249e13SPoonam Aggrwal #define CONFIG_SYS_RAMBOOT
45149249e13SPoonam Aggrwal #define CONFIG_SYS_EXTRA_ENV_RELOC
45249249e13SPoonam Aggrwal #else
45349249e13SPoonam Aggrwal #undef CONFIG_SYS_RAMBOOT
45449249e13SPoonam Aggrwal #endif
45549249e13SPoonam Aggrwal 
45674fa22edSPrabhakar Kushwaha #ifdef CONFIG_SYS_FSL_ERRATUM_IFC_A003399
45774fa22edSPrabhakar Kushwaha #if !defined(CONFIG_SPL) && !defined(CONFIG_SYS_RAMBOOT)\
45874fa22edSPrabhakar Kushwaha 	&& !defined(CONFIG_SECURE_BOOT)
45974fa22edSPrabhakar Kushwaha #define CONFIG_A003399_NOR_WORKAROUND
46074fa22edSPrabhakar Kushwaha #endif
46174fa22edSPrabhakar Kushwaha #endif
46274fa22edSPrabhakar Kushwaha 
46349249e13SPoonam Aggrwal #define CONFIG_BOARD_EARLY_INIT_F	/* Call board_pre_init */
46449249e13SPoonam Aggrwal #define CONFIG_BOARD_EARLY_INIT_R
46549249e13SPoonam Aggrwal 
46649249e13SPoonam Aggrwal #define CONFIG_SYS_INIT_RAM_LOCK
46749249e13SPoonam Aggrwal #define CONFIG_SYS_INIT_RAM_ADDR	0xffd00000 /* stack in RAM */
46849249e13SPoonam Aggrwal #define CONFIG_SYS_INIT_RAM_END		0x00004000 /* End of used area in RAM */
46949249e13SPoonam Aggrwal 
47049249e13SPoonam Aggrwal #define CONFIG_SYS_GBL_DATA_OFFSET	(CONFIG_SYS_INIT_RAM_END \
47149249e13SPoonam Aggrwal 						- GENERATED_GBL_DATA_SIZE)
47249249e13SPoonam Aggrwal #define CONFIG_SYS_INIT_SP_OFFSET	CONFIG_SYS_GBL_DATA_OFFSET
47349249e13SPoonam Aggrwal 
47449249e13SPoonam Aggrwal #define CONFIG_SYS_MONITOR_LEN		(256 * 1024) /* Reserve 256 kB for Mon*/
47549249e13SPoonam Aggrwal #define CONFIG_SYS_MALLOC_LEN		(1024 * 1024)	/* Reserved for malloc*/
47649249e13SPoonam Aggrwal 
47749249e13SPoonam Aggrwal /* Serial Port */
47849249e13SPoonam Aggrwal #define CONFIG_CONS_INDEX	1
47949249e13SPoonam Aggrwal #undef	CONFIG_SERIAL_SOFTWARE_FIFO
48049249e13SPoonam Aggrwal #define CONFIG_SYS_NS16550
48149249e13SPoonam Aggrwal #define CONFIG_SYS_NS16550_SERIAL
48249249e13SPoonam Aggrwal #define CONFIG_SYS_NS16550_REG_SIZE	1
48349249e13SPoonam Aggrwal #define CONFIG_SYS_NS16550_CLK		get_bus_freq(0)
4840fa934d2SPrabhakar Kushwaha #ifdef CONFIG_SPL_BUILD
485d793e5a8SDipen Dudhat #define CONFIG_NS16550_MIN_FUNCTIONS
486d793e5a8SDipen Dudhat #endif
48749249e13SPoonam Aggrwal 
48849249e13SPoonam Aggrwal #define CONFIG_SYS_CONSOLE_IS_IN_ENV	/* determine from environment */
48949249e13SPoonam Aggrwal 
49049249e13SPoonam Aggrwal #define CONFIG_SYS_BAUDRATE_TABLE	\
49149249e13SPoonam Aggrwal 	{300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200}
49249249e13SPoonam Aggrwal 
49349249e13SPoonam Aggrwal #define CONFIG_SYS_NS16550_COM1	(CONFIG_SYS_CCSRBAR+0x4500)
49449249e13SPoonam Aggrwal #define CONFIG_SYS_NS16550_COM2	(CONFIG_SYS_CCSRBAR+0x4600)
49549249e13SPoonam Aggrwal 
49649249e13SPoonam Aggrwal /* Use the HUSH parser */
49749249e13SPoonam Aggrwal #define CONFIG_SYS_HUSH_PARSER
49849249e13SPoonam Aggrwal 
49949249e13SPoonam Aggrwal /*
50049249e13SPoonam Aggrwal  * Pass open firmware flat tree
50149249e13SPoonam Aggrwal  */
50249249e13SPoonam Aggrwal #define CONFIG_OF_LIBFDT
50349249e13SPoonam Aggrwal #define CONFIG_OF_BOARD_SETUP
50449249e13SPoonam Aggrwal #define CONFIG_OF_STDOUT_VIA_ALIAS
50549249e13SPoonam Aggrwal 
50649249e13SPoonam Aggrwal /* new uImage format support */
50749249e13SPoonam Aggrwal #define CONFIG_FIT
50849249e13SPoonam Aggrwal #define CONFIG_FIT_VERBOSE	/* enable fit_format_{error,warning}() */
50949249e13SPoonam Aggrwal 
51000f792e0SHeiko Schocher /* I2C */
51100f792e0SHeiko Schocher #define CONFIG_SYS_I2C
51200f792e0SHeiko Schocher #define CONFIG_SYS_I2C_FSL
51300f792e0SHeiko Schocher #define CONFIG_SYS_FSL_I2C_SPEED	400000
51400f792e0SHeiko Schocher #define CONFIG_SYS_FSL_I2C_SLAVE	0x7F
51500f792e0SHeiko Schocher #define CONFIG_SYS_FSL_I2C_OFFSET	0x3000
51600f792e0SHeiko Schocher #define CONFIG_SYS_FSL_I2C2_SPEED	400000
51700f792e0SHeiko Schocher #define CONFIG_SYS_FSL_I2C2_SLAVE	0x7F
51800f792e0SHeiko Schocher #define CONFIG_SYS_FSL_I2C2_OFFSET	0x3100
519ad89da0cSShengzhou Liu #define I2C_PCA9557_ADDR1		0x18
520e512c50bSShengzhou Liu #define I2C_PCA9557_ADDR2		0x19
521ad89da0cSShengzhou Liu #define I2C_PCA9557_BUS_NUM		0
52249249e13SPoonam Aggrwal 
52349249e13SPoonam Aggrwal /* I2C EEPROM */
524e512c50bSShengzhou Liu #if defined(CONFIG_P1010RDB_PB)
525e512c50bSShengzhou Liu #define CONFIG_ID_EEPROM
526e512c50bSShengzhou Liu #ifdef CONFIG_ID_EEPROM
527e512c50bSShengzhou Liu #define CONFIG_SYS_I2C_EEPROM_NXID
528e512c50bSShengzhou Liu #endif
529e512c50bSShengzhou Liu #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN	1
530e512c50bSShengzhou Liu #define CONFIG_SYS_I2C_EEPROM_ADDR	0x57
531e512c50bSShengzhou Liu #define CONFIG_SYS_EEPROM_BUS_NUM	0
532e512c50bSShengzhou Liu #define MAX_NUM_PORTS			9 /* for 128Bytes EEPROM */
533e512c50bSShengzhou Liu #endif
53449249e13SPoonam Aggrwal /* enable read and write access to EEPROM */
53549249e13SPoonam Aggrwal #define CONFIG_CMD_EEPROM
53649249e13SPoonam Aggrwal #define CONFIG_SYS_I2C_MULTI_EEPROMS
53749249e13SPoonam Aggrwal #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1
53849249e13SPoonam Aggrwal #define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 3
53949249e13SPoonam Aggrwal #define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 5
54049249e13SPoonam Aggrwal 
54149249e13SPoonam Aggrwal /* RTC */
54249249e13SPoonam Aggrwal #define CONFIG_RTC_PT7C4338
54349249e13SPoonam Aggrwal #define CONFIG_SYS_I2C_RTC_ADDR	0x68
54449249e13SPoonam Aggrwal 
54549249e13SPoonam Aggrwal #define CONFIG_CMD_I2C
54649249e13SPoonam Aggrwal 
54749249e13SPoonam Aggrwal /*
54849249e13SPoonam Aggrwal  * SPI interface will not be available in case of NAND boot SPI CS0 will be
54949249e13SPoonam Aggrwal  * used for SLIC
55049249e13SPoonam Aggrwal  */
5510fa934d2SPrabhakar Kushwaha #if !defined(CONFIG_NAND) || !defined(CONFIG_NAND_SECBOOT)
55249249e13SPoonam Aggrwal /* eSPI - Enhanced SPI */
55349249e13SPoonam Aggrwal #define CONFIG_FSL_ESPI
55449249e13SPoonam Aggrwal #define CONFIG_SPI_FLASH
55549249e13SPoonam Aggrwal #define CONFIG_SPI_FLASH_SPANSION
55649249e13SPoonam Aggrwal #define CONFIG_CMD_SF
55749249e13SPoonam Aggrwal #define CONFIG_SF_DEFAULT_SPEED		10000000
55849249e13SPoonam Aggrwal #define CONFIG_SF_DEFAULT_MODE		SPI_MODE_0
559d793e5a8SDipen Dudhat #endif
56049249e13SPoonam Aggrwal 
56149249e13SPoonam Aggrwal #if defined(CONFIG_TSEC_ENET)
56249249e13SPoonam Aggrwal #define CONFIG_MII			/* MII PHY management */
56349249e13SPoonam Aggrwal #define CONFIG_MII_DEFAULT_TSEC	1	/* Allow unregistered phys */
56449249e13SPoonam Aggrwal #define CONFIG_TSEC1	1
56549249e13SPoonam Aggrwal #define CONFIG_TSEC1_NAME	"eTSEC1"
56649249e13SPoonam Aggrwal #define CONFIG_TSEC2	1
56749249e13SPoonam Aggrwal #define CONFIG_TSEC2_NAME	"eTSEC2"
56849249e13SPoonam Aggrwal #define CONFIG_TSEC3	1
56949249e13SPoonam Aggrwal #define CONFIG_TSEC3_NAME	"eTSEC3"
57049249e13SPoonam Aggrwal 
57149249e13SPoonam Aggrwal #define TSEC1_PHY_ADDR		1
57249249e13SPoonam Aggrwal #define TSEC2_PHY_ADDR		0
57349249e13SPoonam Aggrwal #define TSEC3_PHY_ADDR		2
57449249e13SPoonam Aggrwal 
57549249e13SPoonam Aggrwal #define TSEC1_FLAGS		(TSEC_GIGABIT | TSEC_REDUCED)
57649249e13SPoonam Aggrwal #define TSEC2_FLAGS		(TSEC_GIGABIT | TSEC_REDUCED)
57749249e13SPoonam Aggrwal #define TSEC3_FLAGS		(TSEC_GIGABIT | TSEC_REDUCED)
57849249e13SPoonam Aggrwal 
57949249e13SPoonam Aggrwal #define TSEC1_PHYIDX		0
58049249e13SPoonam Aggrwal #define TSEC2_PHYIDX		0
58149249e13SPoonam Aggrwal #define TSEC3_PHYIDX		0
58249249e13SPoonam Aggrwal 
58349249e13SPoonam Aggrwal #define CONFIG_ETHPRIME		"eTSEC1"
58449249e13SPoonam Aggrwal 
58549249e13SPoonam Aggrwal #define CONFIG_PHY_GIGE		/* Include GbE speed/duplex detection */
58649249e13SPoonam Aggrwal 
58749249e13SPoonam Aggrwal /* TBI PHY configuration for SGMII mode */
58849249e13SPoonam Aggrwal #define CONFIG_TSEC_TBICR_SETTINGS ( \
58949249e13SPoonam Aggrwal 		TBICR_PHY_RESET \
59049249e13SPoonam Aggrwal 		| TBICR_ANEG_ENABLE \
59149249e13SPoonam Aggrwal 		| TBICR_FULL_DUPLEX \
59249249e13SPoonam Aggrwal 		| TBICR_SPEED1_SET \
59349249e13SPoonam Aggrwal 		)
59449249e13SPoonam Aggrwal 
59549249e13SPoonam Aggrwal #endif	/* CONFIG_TSEC_ENET */
59649249e13SPoonam Aggrwal 
59749249e13SPoonam Aggrwal 
59849249e13SPoonam Aggrwal /* SATA */
59949249e13SPoonam Aggrwal #define CONFIG_FSL_SATA
6009760b274SZang Roy-R61911 #define CONFIG_FSL_SATA_V2
60149249e13SPoonam Aggrwal #define CONFIG_LIBATA
60249249e13SPoonam Aggrwal 
60349249e13SPoonam Aggrwal #ifdef CONFIG_FSL_SATA
60449249e13SPoonam Aggrwal #define CONFIG_SYS_SATA_MAX_DEVICE	2
60549249e13SPoonam Aggrwal #define CONFIG_SATA1
60649249e13SPoonam Aggrwal #define CONFIG_SYS_SATA1		CONFIG_SYS_MPC85xx_SATA1_ADDR
60749249e13SPoonam Aggrwal #define CONFIG_SYS_SATA1_FLAGS		FLAGS_DMA
60849249e13SPoonam Aggrwal #define CONFIG_SATA2
60949249e13SPoonam Aggrwal #define CONFIG_SYS_SATA2		CONFIG_SYS_MPC85xx_SATA2_ADDR
61049249e13SPoonam Aggrwal #define CONFIG_SYS_SATA2_FLAGS		FLAGS_DMA
61149249e13SPoonam Aggrwal 
61249249e13SPoonam Aggrwal #define CONFIG_CMD_SATA
61349249e13SPoonam Aggrwal #define CONFIG_LBA48
61449249e13SPoonam Aggrwal #endif /* #ifdef CONFIG_FSL_SATA  */
61549249e13SPoonam Aggrwal 
61649249e13SPoonam Aggrwal #define CONFIG_MMC
61749249e13SPoonam Aggrwal #ifdef CONFIG_MMC
61849249e13SPoonam Aggrwal #define CONFIG_CMD_MMC
61949249e13SPoonam Aggrwal #define CONFIG_DOS_PARTITION
62049249e13SPoonam Aggrwal #define CONFIG_FSL_ESDHC
62149249e13SPoonam Aggrwal #define CONFIG_GENERIC_MMC
62249249e13SPoonam Aggrwal #define CONFIG_SYS_FSL_ESDHC_ADDR	CONFIG_SYS_MPC85xx_ESDHC_ADDR
62349249e13SPoonam Aggrwal #endif
62449249e13SPoonam Aggrwal 
62549249e13SPoonam Aggrwal #define CONFIG_HAS_FSL_DR_USB
62649249e13SPoonam Aggrwal 
62749249e13SPoonam Aggrwal #if defined(CONFIG_HAS_FSL_DR_USB)
62849249e13SPoonam Aggrwal #define CONFIG_USB_EHCI
62949249e13SPoonam Aggrwal 
63049249e13SPoonam Aggrwal #ifdef CONFIG_USB_EHCI
63149249e13SPoonam Aggrwal #define CONFIG_CMD_USB
63249249e13SPoonam Aggrwal #define CONFIG_EHCI_HCD_INIT_AFTER_RESET
63349249e13SPoonam Aggrwal #define CONFIG_USB_EHCI_FSL
63449249e13SPoonam Aggrwal #define CONFIG_USB_STORAGE
63549249e13SPoonam Aggrwal #endif
63649249e13SPoonam Aggrwal #endif
63749249e13SPoonam Aggrwal 
63849249e13SPoonam Aggrwal /*
63949249e13SPoonam Aggrwal  * Environment
64049249e13SPoonam Aggrwal  */
64149249e13SPoonam Aggrwal #if defined(CONFIG_RAMBOOT_SDCARD)
64249249e13SPoonam Aggrwal #define CONFIG_ENV_IS_IN_MMC
6434394d0c2SFabio Estevam #define CONFIG_FSL_FIXED_MMC_LOCATION
64449249e13SPoonam Aggrwal #define CONFIG_SYS_MMC_ENV_DEV		0
64549249e13SPoonam Aggrwal #define CONFIG_ENV_SIZE			0x2000
64649249e13SPoonam Aggrwal #elif defined(CONFIG_RAMBOOT_SPIFLASH)
64749249e13SPoonam Aggrwal #define CONFIG_ENV_IS_IN_SPI_FLASH
64849249e13SPoonam Aggrwal #define CONFIG_ENV_SPI_BUS	0
64949249e13SPoonam Aggrwal #define CONFIG_ENV_SPI_CS	0
65049249e13SPoonam Aggrwal #define CONFIG_ENV_SPI_MAX_HZ	10000000
65149249e13SPoonam Aggrwal #define CONFIG_ENV_SPI_MODE	0
65249249e13SPoonam Aggrwal #define CONFIG_ENV_OFFSET	0x100000	/* 1MB */
65349249e13SPoonam Aggrwal #define CONFIG_ENV_SECT_SIZE	0x10000
65449249e13SPoonam Aggrwal #define CONFIG_ENV_SIZE		0x2000
6550fa934d2SPrabhakar Kushwaha #elif defined(CONFIG_NAND)
656d793e5a8SDipen Dudhat #define CONFIG_ENV_IS_IN_NAND
657e512c50bSShengzhou Liu #if defined(CONFIG_P1010RDB_PA)
658d793e5a8SDipen Dudhat #define CONFIG_ENV_SIZE		CONFIG_SYS_NAND_BLOCK_SIZE
659e512c50bSShengzhou Liu #define CONFIG_ENV_RANGE	(3 * CONFIG_ENV_SIZE) /* 3*16=48K for env */
660e512c50bSShengzhou Liu #elif defined(CONFIG_P1010RDB_PB)
661e512c50bSShengzhou Liu #define CONFIG_ENV_SIZE		(16 * 1024)
662e512c50bSShengzhou Liu #define CONFIG_ENV_RANGE	(32 * CONFIG_ENV_SIZE) /* new block size 512K */
663e512c50bSShengzhou Liu #endif
6640fa934d2SPrabhakar Kushwaha #define CONFIG_ENV_OFFSET	((512 * 1024) + CONFIG_SYS_NAND_BLOCK_SIZE)
6650fa934d2SPrabhakar Kushwaha #elif defined(CONFIG_SYS_RAMBOOT)
66649249e13SPoonam Aggrwal #define CONFIG_ENV_IS_NOWHERE		/* Store ENV in memory only */
66749249e13SPoonam Aggrwal #define CONFIG_ENV_ADDR			(CONFIG_SYS_MONITOR_BASE - 0x1000)
66849249e13SPoonam Aggrwal #define CONFIG_ENV_SIZE			0x2000
66949249e13SPoonam Aggrwal #else
67049249e13SPoonam Aggrwal #define CONFIG_ENV_IS_IN_FLASH
67149249e13SPoonam Aggrwal #if CONFIG_SYS_MONITOR_BASE > 0xfff80000
67249249e13SPoonam Aggrwal #define CONFIG_ENV_ADDR	0xfff80000
67349249e13SPoonam Aggrwal #else
67449249e13SPoonam Aggrwal #define CONFIG_ENV_ADDR	(CONFIG_SYS_MONITOR_BASE - CONFIG_ENV_SECT_SIZE)
67549249e13SPoonam Aggrwal #endif
67649249e13SPoonam Aggrwal #define CONFIG_ENV_SIZE		0x2000
67749249e13SPoonam Aggrwal #define CONFIG_ENV_SECT_SIZE	0x20000 /* 128K (one sector) */
67849249e13SPoonam Aggrwal #endif
67949249e13SPoonam Aggrwal 
68049249e13SPoonam Aggrwal #define CONFIG_LOADS_ECHO		/* echo on for serial download */
68149249e13SPoonam Aggrwal #define CONFIG_SYS_LOADS_BAUD_CHANGE	/* allow baudrate change */
68249249e13SPoonam Aggrwal 
68349249e13SPoonam Aggrwal /*
68449249e13SPoonam Aggrwal  * Command line configuration.
68549249e13SPoonam Aggrwal  */
68649249e13SPoonam Aggrwal #include <config_cmd_default.h>
68749249e13SPoonam Aggrwal 
68849249e13SPoonam Aggrwal #define CONFIG_CMD_DATE
68949249e13SPoonam Aggrwal #define CONFIG_CMD_ERRATA
69049249e13SPoonam Aggrwal #define CONFIG_CMD_ELF
69149249e13SPoonam Aggrwal #define CONFIG_CMD_IRQ
69249249e13SPoonam Aggrwal #define CONFIG_CMD_MII
69349249e13SPoonam Aggrwal #define CONFIG_CMD_PING
69449249e13SPoonam Aggrwal #define CONFIG_CMD_SETEXPR
69549249e13SPoonam Aggrwal #define CONFIG_CMD_REGINFO
69649249e13SPoonam Aggrwal 
69749249e13SPoonam Aggrwal #undef CONFIG_WATCHDOG			/* watchdog disabled */
69849249e13SPoonam Aggrwal 
69949249e13SPoonam Aggrwal #if defined(CONFIG_MMC) || defined(CONFIG_USB_EHCI) \
70049249e13SPoonam Aggrwal 		 || defined(CONFIG_FSL_SATA)
70149249e13SPoonam Aggrwal #define CONFIG_CMD_EXT2
70249249e13SPoonam Aggrwal #define CONFIG_CMD_FAT
70349249e13SPoonam Aggrwal #define CONFIG_DOS_PARTITION
70449249e13SPoonam Aggrwal #endif
70549249e13SPoonam Aggrwal 
70649249e13SPoonam Aggrwal /*
70749249e13SPoonam Aggrwal  * Miscellaneous configurable options
70849249e13SPoonam Aggrwal  */
70949249e13SPoonam Aggrwal #define CONFIG_SYS_LONGHELP			/* undef to save memory	*/
71049249e13SPoonam Aggrwal #define CONFIG_CMDLINE_EDITING			/* Command-line editing */
71149249e13SPoonam Aggrwal #define CONFIG_AUTO_COMPLETE			/* add autocompletion support */
71249249e13SPoonam Aggrwal #define CONFIG_SYS_LOAD_ADDR	0x2000000	/* default load address */
71349249e13SPoonam Aggrwal 
71449249e13SPoonam Aggrwal #if defined(CONFIG_CMD_KGDB)
71549249e13SPoonam Aggrwal #define CONFIG_SYS_CBSIZE	1024		/* Console I/O Buffer Size */
71649249e13SPoonam Aggrwal #else
71749249e13SPoonam Aggrwal #define CONFIG_SYS_CBSIZE	256		/* Console I/O Buffer Size */
71849249e13SPoonam Aggrwal #endif
71949249e13SPoonam Aggrwal #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)
72049249e13SPoonam Aggrwal 						/* Print Buffer Size */
72149249e13SPoonam Aggrwal #define CONFIG_SYS_MAXARGS	16		/* max number of command args */
72249249e13SPoonam Aggrwal #define CONFIG_SYS_BARGSIZE	CONFIG_SYS_CBSIZE/* Boot Argument Buffer Size */
72349249e13SPoonam Aggrwal 
72449249e13SPoonam Aggrwal /*
72549249e13SPoonam Aggrwal  * Internal Definitions
72649249e13SPoonam Aggrwal  *
72749249e13SPoonam Aggrwal  * Boot Flags
72849249e13SPoonam Aggrwal  */
72949249e13SPoonam Aggrwal #define BOOTFLAG_COLD	0x01		/* Normal Power-On: Boot from FLASH */
73049249e13SPoonam Aggrwal #define BOOTFLAG_WARM	0x02		/* Software reboot */
73149249e13SPoonam Aggrwal 
73249249e13SPoonam Aggrwal /*
73349249e13SPoonam Aggrwal  * For booting Linux, the board info and command line data
73449249e13SPoonam Aggrwal  * have to be in the first 64 MB of memory, since this is
73549249e13SPoonam Aggrwal  * the maximum mapped by the Linux kernel during initialization.
73649249e13SPoonam Aggrwal  */
73749249e13SPoonam Aggrwal #define CONFIG_SYS_BOOTMAPSZ	(64 << 20) /* Initial Memory map for Linux */
73849249e13SPoonam Aggrwal #define CONFIG_SYS_BOOTM_LEN	(64 << 20) /* Increase max gunzip size */
73949249e13SPoonam Aggrwal 
74049249e13SPoonam Aggrwal #if defined(CONFIG_CMD_KGDB)
74149249e13SPoonam Aggrwal #define CONFIG_KGDB_BAUDRATE	230400	/* speed to run kgdb serial port */
74249249e13SPoonam Aggrwal #define CONFIG_KGDB_SER_INDEX	2	/* which serial port to use */
74349249e13SPoonam Aggrwal #endif
74449249e13SPoonam Aggrwal 
74549249e13SPoonam Aggrwal /*
74649249e13SPoonam Aggrwal  * Environment Configuration
74749249e13SPoonam Aggrwal  */
74849249e13SPoonam Aggrwal 
74949249e13SPoonam Aggrwal #if defined(CONFIG_TSEC_ENET)
75049249e13SPoonam Aggrwal #define CONFIG_HAS_ETH0
75149249e13SPoonam Aggrwal #define CONFIG_HAS_ETH1
75249249e13SPoonam Aggrwal #define CONFIG_HAS_ETH2
75349249e13SPoonam Aggrwal #endif
75449249e13SPoonam Aggrwal 
7558b3637c6SJoe Hershberger #define CONFIG_ROOTPATH		"/opt/nfsroot"
756b3f44c21SJoe Hershberger #define CONFIG_BOOTFILE		"uImage"
75749249e13SPoonam Aggrwal #define CONFIG_UBOOTPATH	u-boot.bin/* U-Boot image on TFTP server */
75849249e13SPoonam Aggrwal 
75949249e13SPoonam Aggrwal /* default location for tftp and bootm */
76049249e13SPoonam Aggrwal #define CONFIG_LOADADDR		1000000
76149249e13SPoonam Aggrwal 
76249249e13SPoonam Aggrwal #define CONFIG_BOOTDELAY	10	/* -1 disables auto-boot */
76349249e13SPoonam Aggrwal #undef  CONFIG_BOOTARGS		/* the boot command will set bootargs */
76449249e13SPoonam Aggrwal 
76549249e13SPoonam Aggrwal #define CONFIG_BAUDRATE		115200
76649249e13SPoonam Aggrwal 
76749249e13SPoonam Aggrwal #define	CONFIG_EXTRA_ENV_SETTINGS				\
7685368c55dSMarek Vasut 	"hwconfig=" __stringify(CONFIG_DEF_HWCONFIG)  "\0"	\
76949249e13SPoonam Aggrwal 	"netdev=eth0\0"						\
7705368c55dSMarek Vasut 	"uboot=" __stringify(CONFIG_UBOOTPATH) "\0"		\
77149249e13SPoonam Aggrwal 	"loadaddr=1000000\0"			\
77249249e13SPoonam Aggrwal 	"consoledev=ttyS0\0"				\
77349249e13SPoonam Aggrwal 	"ramdiskaddr=2000000\0"			\
77449249e13SPoonam Aggrwal 	"ramdiskfile=rootfs.ext2.gz.uboot\0"		\
77549249e13SPoonam Aggrwal 	"fdtaddr=c00000\0"				\
77649249e13SPoonam Aggrwal 	"fdtfile=p1010rdb.dtb\0"		\
77749249e13SPoonam Aggrwal 	"bdev=sda1\0"	\
77849249e13SPoonam Aggrwal 	"hwconfig=usb1:dr_mode=host,phy_type=utmi\0"	\
77949249e13SPoonam Aggrwal 	"othbootargs=ramdisk_size=600000\0" \
78049249e13SPoonam Aggrwal 	"usbfatboot=setenv bootargs root=/dev/ram rw "	\
78149249e13SPoonam Aggrwal 	"console=$consoledev,$baudrate $othbootargs; "	\
78249249e13SPoonam Aggrwal 	"usb start;"			\
78349249e13SPoonam Aggrwal 	"fatload usb 0:2 $loadaddr $bootfile;"		\
78449249e13SPoonam Aggrwal 	"fatload usb 0:2 $fdtaddr $fdtfile;"	\
78549249e13SPoonam Aggrwal 	"fatload usb 0:2 $ramdiskaddr $ramdiskfile;"	\
78649249e13SPoonam Aggrwal 	"bootm $loadaddr $ramdiskaddr $fdtaddr\0"		\
78749249e13SPoonam Aggrwal 	"usbext2boot=setenv bootargs root=/dev/ram rw "	\
78849249e13SPoonam Aggrwal 	"console=$consoledev,$baudrate $othbootargs; "	\
78949249e13SPoonam Aggrwal 	"usb start;"			\
79049249e13SPoonam Aggrwal 	"ext2load usb 0:4 $loadaddr $bootfile;"		\
79149249e13SPoonam Aggrwal 	"ext2load usb 0:4 $fdtaddr $fdtfile;"	\
79249249e13SPoonam Aggrwal 	"ext2load usb 0:4 $ramdiskaddr $ramdiskfile;"	\
79349249e13SPoonam Aggrwal 	"bootm $loadaddr $ramdiskaddr $fdtaddr\0"	\
794e512c50bSShengzhou Liu 	CONFIG_BOOTMODE
795e512c50bSShengzhou Liu 
796e512c50bSShengzhou Liu #if defined(CONFIG_P1010RDB_PA)
797e512c50bSShengzhou Liu #define CONFIG_BOOTMODE \
798e512c50bSShengzhou Liu 	"boot_bank0=i2c dev 0; i2c mw 18 1 f1; i2c mw 18 3 f0;" \
799e512c50bSShengzhou Liu 	"mw.b ffb00011 0; mw.b ffb00009 0; reset\0" \
800e512c50bSShengzhou Liu 	"boot_bank1=i2c dev 0; i2c mw 18 1 f1; i2c mw 18 3 f0;" \
801e512c50bSShengzhou Liu 	"mw.b ffb00011 0; mw.b ffb00009 1; reset\0" \
802e512c50bSShengzhou Liu 	"boot_nand=i2c dev 0; i2c mw 18 1 f9; i2c mw 18 3 f0;" \
803e512c50bSShengzhou Liu 	"mw.b ffb00011 0; mw.b ffb00017 1; reset\0"
804e512c50bSShengzhou Liu 
805e512c50bSShengzhou Liu #elif defined(CONFIG_P1010RDB_PB)
806e512c50bSShengzhou Liu #define CONFIG_BOOTMODE \
807e512c50bSShengzhou Liu 	"boot_bank0=i2c dev 0; i2c mw 18 1 fe; i2c mw 18 3 0;" \
808e512c50bSShengzhou Liu 	"i2c mw 19 1 2; i2c mw 19 3 e1; reset\0" \
809e512c50bSShengzhou Liu 	"boot_bank1=i2c dev 0; i2c mw 18 1 fe; i2c mw 18 3 0;" \
810e512c50bSShengzhou Liu 	"i2c mw 19 1 12; i2c mw 19 3 e1; reset\0" \
811e512c50bSShengzhou Liu 	"boot_nand=i2c dev 0; i2c mw 18 1 fc; i2c mw 18 3 0;" \
812e512c50bSShengzhou Liu 	"i2c mw 19 1 8; i2c mw 19 3 f7; reset\0" \
813e512c50bSShengzhou Liu 	"boot_spi=i2c dev 0; i2c mw 18 1 fa; i2c mw 18 3 0;" \
814e512c50bSShengzhou Liu 	"i2c mw 19 1 0; i2c mw 19 3 f7; reset\0" \
815e512c50bSShengzhou Liu 	"boot_sd=i2c dev 0; i2c mw 18 1 f8; i2c mw 18 3 0;" \
816e512c50bSShengzhou Liu 	"i2c mw 19 1 4; i2c mw 19 3 f3; reset\0"
817e512c50bSShengzhou Liu #endif
81849249e13SPoonam Aggrwal 
81949249e13SPoonam Aggrwal #define CONFIG_RAMBOOTCOMMAND		\
82049249e13SPoonam Aggrwal 	"setenv bootargs root=/dev/ram rw "	\
82149249e13SPoonam Aggrwal 	"console=$consoledev,$baudrate $othbootargs; "	\
82249249e13SPoonam Aggrwal 	"tftp $ramdiskaddr $ramdiskfile;"	\
82349249e13SPoonam Aggrwal 	"tftp $loadaddr $bootfile;"		\
82449249e13SPoonam Aggrwal 	"tftp $fdtaddr $fdtfile;"		\
82549249e13SPoonam Aggrwal 	"bootm $loadaddr $ramdiskaddr $fdtaddr"
82649249e13SPoonam Aggrwal 
82749249e13SPoonam Aggrwal #define CONFIG_BOOTCOMMAND CONFIG_RAMBOOTCOMMAND
82849249e13SPoonam Aggrwal 
8292f439e80SRuchika Gupta #include <asm/fsl_secure_boot.h>
8302f439e80SRuchika Gupta 
83149249e13SPoonam Aggrwal #endif	/* __CONFIG_H */
832