1e8428d6fSNishanth Menon /*
2e8428d6fSNishanth Menon  * Common configuration header file for all Keystone II EVM platforms
3e8428d6fSNishanth Menon  *
4e8428d6fSNishanth Menon  * (C) Copyright 2012-2014
5e8428d6fSNishanth Menon  *     Texas Instruments Incorporated, <www.ti.com>
6e8428d6fSNishanth Menon  *
7e8428d6fSNishanth Menon  * SPDX-License-Identifier:     GPL-2.0+
8e8428d6fSNishanth Menon  */
9e8428d6fSNishanth Menon 
10e8428d6fSNishanth Menon #ifndef __CONFIG_KS2_EVM_H
11e8428d6fSNishanth Menon #define __CONFIG_KS2_EVM_H
12e8428d6fSNishanth Menon 
13e8428d6fSNishanth Menon #define CONFIG_SOC_KEYSTONE
14e8428d6fSNishanth Menon 
15e8428d6fSNishanth Menon /* U-Boot Build Configuration */
16e8428d6fSNishanth Menon #define CONFIG_SKIP_LOWLEVEL_INIT	/* U-Boot is a 2nd stage loader */
17e8428d6fSNishanth Menon #define CONFIG_BOARD_EARLY_INIT_F
18aeabe652SLokesh Vutla #define CONFIG_DISPLAY_CPUINFO
19e8428d6fSNishanth Menon 
20e8428d6fSNishanth Menon /* SoC Configuration */
21e8428d6fSNishanth Menon #define CONFIG_ARCH_CPU_INIT
22e8428d6fSNishanth Menon #define CONFIG_SYS_ARCH_TIMER
2327ce6965SVitaly Andrianov #ifndef CONFIG_SYS_TEXT_BASE
24401f2d91SLokesh Vutla #define CONFIG_SYS_TEXT_BASE		0x0c000000
2527ce6965SVitaly Andrianov #endif
26e8428d6fSNishanth Menon #define CONFIG_SPL_TARGET		"u-boot-spi.gph"
27e8428d6fSNishanth Menon #define CONFIG_SYS_DCACHE_OFF
28e8428d6fSNishanth Menon 
29e8428d6fSNishanth Menon /* Memory Configuration */
30e8428d6fSNishanth Menon #define CONFIG_NR_DRAM_BANKS		2
31e8428d6fSNishanth Menon #define CONFIG_SYS_LPAE_SDRAM_BASE	0x800000000
32e8428d6fSNishanth Menon #define CONFIG_MAX_RAM_BANK_SIZE	(2 << 30)       /* 2GB */
33e8428d6fSNishanth Menon #define CONFIG_STACKSIZE		(512 << 10)     /* 512 KiB */
34401f2d91SLokesh Vutla #define CONFIG_SYS_INIT_SP_ADDR		(CONFIG_SPL_TEXT_BASE - \
35e8428d6fSNishanth Menon 					GENERATED_GBL_DATA_SIZE)
36e8428d6fSNishanth Menon 
37aaf461f9SLokesh Vutla #ifdef CONFIG_SYS_MALLOC_F_LEN
38aaf461f9SLokesh Vutla #define SPL_MALLOC_F_SIZE	CONFIG_SYS_MALLOC_F_LEN
39aaf461f9SLokesh Vutla #else
40aaf461f9SLokesh Vutla #define SPL_MALLOC_F_SIZE	0
41aaf461f9SLokesh Vutla #endif
42aaf461f9SLokesh Vutla 
43e8428d6fSNishanth Menon /* SPL SPI Loader Configuration */
44e8428d6fSNishanth Menon #define CONFIG_SPL_PAD_TO		65536
45e8428d6fSNishanth Menon #define CONFIG_SPL_MAX_SIZE		(CONFIG_SPL_PAD_TO - 8)
46e8428d6fSNishanth Menon #define CONFIG_SPL_BSS_START_ADDR	(CONFIG_SPL_TEXT_BASE + \
47e8428d6fSNishanth Menon 					CONFIG_SPL_MAX_SIZE)
48e8428d6fSNishanth Menon #define CONFIG_SPL_BSS_MAX_SIZE		(32 * 1024)
49e8428d6fSNishanth Menon #define CONFIG_SYS_SPL_MALLOC_START	(CONFIG_SPL_BSS_START_ADDR + \
50e8428d6fSNishanth Menon 					CONFIG_SPL_BSS_MAX_SIZE)
51e8428d6fSNishanth Menon #define CONFIG_SYS_SPL_MALLOC_SIZE	(32 * 1024)
52e8428d6fSNishanth Menon #define CONFIG_SPL_STACK_SIZE		(8 * 1024)
53e8428d6fSNishanth Menon #define CONFIG_SPL_STACK		(CONFIG_SYS_SPL_MALLOC_START + \
54e8428d6fSNishanth Menon 					CONFIG_SYS_SPL_MALLOC_SIZE + \
55aaf461f9SLokesh Vutla 					SPL_MALLOC_F_SIZE + \
56e8428d6fSNishanth Menon 					CONFIG_SPL_STACK_SIZE - 4)
57e8428d6fSNishanth Menon #define CONFIG_SPL_SPI_FLASH_SUPPORT
58e8428d6fSNishanth Menon #define CONFIG_SPL_SPI_SUPPORT
59e8428d6fSNishanth Menon #define CONFIG_SPL_SPI_LOAD
60e8428d6fSNishanth Menon #define CONFIG_SYS_SPI_U_BOOT_OFFS	CONFIG_SPL_PAD_TO
61e8428d6fSNishanth Menon 
62e8428d6fSNishanth Menon /* UART Configuration */
63e8428d6fSNishanth Menon #define CONFIG_SYS_NS16550_MEM32
64391839fbSLokesh Vutla #if defined(CONFIG_SPL_BUILD) || !defined(CONFIG_DM_SERIAL)
65391839fbSLokesh Vutla #define CONFIG_SYS_NS16550_SERIAL
66e8428d6fSNishanth Menon #define CONFIG_SYS_NS16550_REG_SIZE	-4
67391839fbSLokesh Vutla #endif
68e8428d6fSNishanth Menon #define CONFIG_SYS_NS16550_COM1		KS2_UART0_BASE
69e8428d6fSNishanth Menon #define CONFIG_SYS_NS16550_COM2		KS2_UART1_BASE
70e8428d6fSNishanth Menon #define CONFIG_CONS_INDEX		1
71e8428d6fSNishanth Menon 
72e6d71e1cSVitaly Andrianov #ifndef CONFIG_SOC_K2G
73e6d71e1cSVitaly Andrianov #define CONFIG_SYS_NS16550_CLK		clk_get_rate(KS2_CLK1_6)
74e6d71e1cSVitaly Andrianov #else
75e6d71e1cSVitaly Andrianov #define CONFIG_SYS_NS16550_CLK		clk_get_rate(uart_pll_clk) / 2
76e6d71e1cSVitaly Andrianov #endif
77e6d71e1cSVitaly Andrianov 
78e8428d6fSNishanth Menon /* SPI Configuration */
79e8428d6fSNishanth Menon #define CONFIG_DAVINCI_SPI
80e8428d6fSNishanth Menon #define CONFIG_SYS_SPI_CLK		clk_get_rate(KS2_CLK1_6)
81e8428d6fSNishanth Menon #define CONFIG_SF_DEFAULT_SPEED		30000000
82e8428d6fSNishanth Menon #define CONFIG_ENV_SPI_MAX_HZ		CONFIG_SF_DEFAULT_SPEED
83e8428d6fSNishanth Menon #define CONFIG_SYS_SPI0
84e8428d6fSNishanth Menon #define CONFIG_SYS_SPI_BASE		KS2_SPI0_BASE
85e8428d6fSNishanth Menon #define CONFIG_SYS_SPI0_NUM_CS		4
86e8428d6fSNishanth Menon #define CONFIG_SYS_SPI1
87e8428d6fSNishanth Menon #define CONFIG_SYS_SPI1_BASE		KS2_SPI1_BASE
88e8428d6fSNishanth Menon #define CONFIG_SYS_SPI1_NUM_CS		4
89e8428d6fSNishanth Menon #define CONFIG_SYS_SPI2
90e8428d6fSNishanth Menon #define CONFIG_SYS_SPI2_BASE		KS2_SPI2_BASE
91e8428d6fSNishanth Menon #define CONFIG_SYS_SPI2_NUM_CS		4
92*39832244SVignesh R #ifdef CONFIG_SPL_BUILD
93*39832244SVignesh R #undef CONFIG_DM_SPI
94*39832244SVignesh R #undef CONFIG_DM_SPI_FLASH
95*39832244SVignesh R #endif
96e8428d6fSNishanth Menon 
97e8428d6fSNishanth Menon /* Network Configuration */
98e8428d6fSNishanth Menon #define CONFIG_PHYLIB
99e8428d6fSNishanth Menon #define CONFIG_PHY_MARVELL
100e8428d6fSNishanth Menon #define CONFIG_MII
101e8428d6fSNishanth Menon #define CONFIG_BOOTP_DEFAULT
102e8428d6fSNishanth Menon #define CONFIG_BOOTP_DNS
103e8428d6fSNishanth Menon #define CONFIG_BOOTP_DNS2
104e8428d6fSNishanth Menon #define CONFIG_BOOTP_SEND_HOSTNAME
105e8428d6fSNishanth Menon #define CONFIG_NET_RETRY_COUNT		32
106e8428d6fSNishanth Menon #define CONFIG_SYS_SGMII_REFCLK_MHZ	312
107e8428d6fSNishanth Menon #define CONFIG_SYS_SGMII_LINERATE_MHZ	1250
108e8428d6fSNishanth Menon #define CONFIG_SYS_SGMII_RATESCALE	2
109e8428d6fSNishanth Menon 
110e8428d6fSNishanth Menon /* Keyston Navigator Configuration */
111e8428d6fSNishanth Menon #define CONFIG_TI_KSNAV
112e8428d6fSNishanth Menon #define CONFIG_KSNAV_QM_BASE_ADDRESS		KS2_QM_BASE_ADDRESS
113e8428d6fSNishanth Menon #define CONFIG_KSNAV_QM_CONF_BASE		KS2_QM_CONF_BASE
114e8428d6fSNishanth Menon #define CONFIG_KSNAV_QM_DESC_SETUP_BASE		KS2_QM_DESC_SETUP_BASE
115e8428d6fSNishanth Menon #define CONFIG_KSNAV_QM_STATUS_RAM_BASE		KS2_QM_STATUS_RAM_BASE
116e8428d6fSNishanth Menon #define CONFIG_KSNAV_QM_INTD_CONF_BASE		KS2_QM_INTD_CONF_BASE
117e8428d6fSNishanth Menon #define CONFIG_KSNAV_QM_PDSP1_CMD_BASE		KS2_QM_PDSP1_CMD_BASE
118e8428d6fSNishanth Menon #define CONFIG_KSNAV_QM_PDSP1_CTRL_BASE		KS2_QM_PDSP1_CTRL_BASE
119e8428d6fSNishanth Menon #define CONFIG_KSNAV_QM_PDSP1_IRAM_BASE		KS2_QM_PDSP1_IRAM_BASE
120e8428d6fSNishanth Menon #define CONFIG_KSNAV_QM_MANAGER_QUEUES_BASE	KS2_QM_MANAGER_QUEUES_BASE
121e8428d6fSNishanth Menon #define CONFIG_KSNAV_QM_MANAGER_Q_PROXY_BASE	KS2_QM_MANAGER_Q_PROXY_BASE
122e8428d6fSNishanth Menon #define CONFIG_KSNAV_QM_QUEUE_STATUS_BASE	KS2_QM_QUEUE_STATUS_BASE
123e8428d6fSNishanth Menon #define CONFIG_KSNAV_QM_LINK_RAM_BASE		KS2_QM_LINK_RAM_BASE
124e8428d6fSNishanth Menon #define CONFIG_KSNAV_QM_REGION_NUM		KS2_QM_REGION_NUM
125e8428d6fSNishanth Menon #define CONFIG_KSNAV_QM_QPOOL_NUM		KS2_QM_QPOOL_NUM
126e8428d6fSNishanth Menon 
127e8428d6fSNishanth Menon /* NETCP pktdma */
128e8428d6fSNishanth Menon #define CONFIG_KSNAV_PKTDMA_NETCP
129e8428d6fSNishanth Menon #define CONFIG_KSNAV_NETCP_PDMA_CTRL_BASE	KS2_NETCP_PDMA_CTRL_BASE
130e8428d6fSNishanth Menon #define CONFIG_KSNAV_NETCP_PDMA_TX_BASE		KS2_NETCP_PDMA_TX_BASE
131e8428d6fSNishanth Menon #define CONFIG_KSNAV_NETCP_PDMA_TX_CH_NUM	KS2_NETCP_PDMA_TX_CH_NUM
132e8428d6fSNishanth Menon #define CONFIG_KSNAV_NETCP_PDMA_RX_BASE		KS2_NETCP_PDMA_RX_BASE
133e8428d6fSNishanth Menon #define CONFIG_KSNAV_NETCP_PDMA_RX_CH_NUM	KS2_NETCP_PDMA_RX_CH_NUM
134e8428d6fSNishanth Menon #define CONFIG_KSNAV_NETCP_PDMA_SCHED_BASE	KS2_NETCP_PDMA_SCHED_BASE
135e8428d6fSNishanth Menon #define CONFIG_KSNAV_NETCP_PDMA_RX_FLOW_BASE	KS2_NETCP_PDMA_RX_FLOW_BASE
136e8428d6fSNishanth Menon #define CONFIG_KSNAV_NETCP_PDMA_RX_FLOW_NUM	KS2_NETCP_PDMA_RX_FLOW_NUM
137e8428d6fSNishanth Menon #define CONFIG_KSNAV_NETCP_PDMA_RX_FREE_QUEUE	KS2_NETCP_PDMA_RX_FREE_QUEUE
138e8428d6fSNishanth Menon #define CONFIG_KSNAV_NETCP_PDMA_RX_RCV_QUEUE	KS2_NETCP_PDMA_RX_RCV_QUEUE
139e8428d6fSNishanth Menon #define CONFIG_KSNAV_NETCP_PDMA_TX_SND_QUEUE	KS2_NETCP_PDMA_TX_SND_QUEUE
140e8428d6fSNishanth Menon 
141e8428d6fSNishanth Menon /* Keystone net */
142e8428d6fSNishanth Menon #define CONFIG_DRIVER_TI_KEYSTONE_NET
143e8428d6fSNishanth Menon #define CONFIG_KSNET_MAC_ID_BASE		KS2_MAC_ID_BASE_ADDR
144e8428d6fSNishanth Menon #define CONFIG_KSNET_NETCP_BASE			KS2_NETCP_BASE
145e8428d6fSNishanth Menon #define CONFIG_KSNET_SERDES_SGMII_BASE		KS2_SGMII_SERDES_BASE
146e8428d6fSNishanth Menon #define CONFIG_KSNET_SERDES_SGMII2_BASE		KS2_SGMII_SERDES2_BASE
147e8428d6fSNishanth Menon #define CONFIG_KSNET_SERDES_LANES_PER_SGMII	KS2_LANES_PER_SGMII_SERDES
148e8428d6fSNishanth Menon 
149e8428d6fSNishanth Menon /* SerDes */
150e8428d6fSNishanth Menon #define CONFIG_TI_KEYSTONE_SERDES
151e8428d6fSNishanth Menon 
152e8428d6fSNishanth Menon #define CONFIG_AEMIF_CNTRL_BASE		KS2_AEMIF_CNTRL_BASE
153e8428d6fSNishanth Menon 
154e8428d6fSNishanth Menon /* I2C Configuration */
155e8428d6fSNishanth Menon #define CONFIG_SYS_I2C_DAVINCI
156e8428d6fSNishanth Menon #define CONFIG_SYS_DAVINCI_I2C_SPEED	100000
157e8428d6fSNishanth Menon #define CONFIG_SYS_DAVINCI_I2C_SLAVE	0x10 /* SMBus host address */
158e8428d6fSNishanth Menon #define CONFIG_SYS_DAVINCI_I2C_SPEED1	100000
159e8428d6fSNishanth Menon #define CONFIG_SYS_DAVINCI_I2C_SLAVE1	0x10 /* SMBus host address */
160e8428d6fSNishanth Menon #define CONFIG_SYS_DAVINCI_I2C_SPEED2	100000
161e8428d6fSNishanth Menon #define CONFIG_SYS_DAVINCI_I2C_SLAVE2	0x10 /* SMBus host address */
162e8428d6fSNishanth Menon #define I2C_BUS_MAX			3
163e8428d6fSNishanth Menon 
164e8428d6fSNishanth Menon /* EEPROM definitions */
165e8428d6fSNishanth Menon #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN		2
166e8428d6fSNishanth Menon #define CONFIG_SYS_I2C_EEPROM_ADDR		0x50
167e8428d6fSNishanth Menon #define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS	6
168e8428d6fSNishanth Menon #define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS	20
169e8428d6fSNishanth Menon #define CONFIG_ENV_EEPROM_IS_ON_I2C
170e8428d6fSNishanth Menon 
171e8428d6fSNishanth Menon /* NAND Configuration */
172e8428d6fSNishanth Menon #define CONFIG_NAND_DAVINCI
173e8428d6fSNishanth Menon #define CONFIG_KEYSTONE_RBL_NAND
174e8428d6fSNishanth Menon #define CONFIG_KEYSTONE_NAND_MAX_RBL_SIZE	CONFIG_ENV_OFFSET
175e8428d6fSNishanth Menon #define CONFIG_SYS_NAND_MASK_CLE		0x4000
176e8428d6fSNishanth Menon #define CONFIG_SYS_NAND_MASK_ALE		0x2000
177e8428d6fSNishanth Menon #define CONFIG_SYS_NAND_CS			2
178e8428d6fSNishanth Menon #define CONFIG_SYS_NAND_USE_FLASH_BBT
179e8428d6fSNishanth Menon #define CONFIG_SYS_NAND_4BIT_HW_ECC_OOBFIRST
180e8428d6fSNishanth Menon 
181e8428d6fSNishanth Menon #define CONFIG_SYS_NAND_LARGEPAGE
182e8428d6fSNishanth Menon #define CONFIG_SYS_NAND_BASE_LIST		{ 0x30000000, }
183e8428d6fSNishanth Menon #define CONFIG_SYS_MAX_NAND_DEVICE		1
184e8428d6fSNishanth Menon #define CONFIG_SYS_NAND_MAX_CHIPS		1
185e8428d6fSNishanth Menon #define CONFIG_SYS_NAND_NO_SUBPAGE_WRITE
186e8428d6fSNishanth Menon #define CONFIG_ENV_SIZE				(256 << 10)  /* 256 KiB */
187e8428d6fSNishanth Menon #define CONFIG_ENV_IS_IN_NAND
188e8428d6fSNishanth Menon #define CONFIG_ENV_OFFSET			0x100000
189e8428d6fSNishanth Menon #define CONFIG_MTD_PARTITIONS
190e8428d6fSNishanth Menon #define CONFIG_RBTREE
191e8428d6fSNishanth Menon #define CONFIG_LZO
192e8428d6fSNishanth Menon #define MTDIDS_DEFAULT			"nand0=davinci_nand.0"
193e8428d6fSNishanth Menon #define MTDPARTS_DEFAULT		"mtdparts=davinci_nand.0:" \
194e8428d6fSNishanth Menon 					"1024k(bootloader)ro,512k(params)ro," \
195e8428d6fSNishanth Menon 					"-(ubifs)"
196e8428d6fSNishanth Menon 
197e8428d6fSNishanth Menon /* USB Configuration */
198e8428d6fSNishanth Menon #define CONFIG_USB_XHCI_KEYSTONE
199e8428d6fSNishanth Menon #define CONFIG_SYS_USB_XHCI_MAX_ROOT_PORTS	2
200cc2c9487SMugunthan V N #define CONFIG_USB_STORAGE
201e8428d6fSNishanth Menon #define CONFIG_EFI_PARTITION
202e8428d6fSNishanth Menon #define CONFIG_FS_FAT
203e8428d6fSNishanth Menon #define CONFIG_SYS_CACHELINE_SIZE		64
204e8428d6fSNishanth Menon #define CONFIG_USB_SS_BASE			KS2_USB_SS_BASE
205e8428d6fSNishanth Menon #define CONFIG_USB_HOST_XHCI_BASE		KS2_USB_HOST_XHCI_BASE
206e8428d6fSNishanth Menon #define CONFIG_DEV_USB_PHY_BASE			KS2_DEV_USB_PHY_BASE
207e8428d6fSNishanth Menon #define CONFIG_USB_PHY_CFG_BASE			KS2_USB_PHY_CFG_BASE
208e8428d6fSNishanth Menon 
209e8428d6fSNishanth Menon /* U-Boot command configuration */
210e8428d6fSNishanth Menon #define CONFIG_CMD_SAVES
211e8428d6fSNishanth Menon #define CONFIG_CMD_UBI
212e8428d6fSNishanth Menon #define CONFIG_CMD_UBIFS
213e8428d6fSNishanth Menon #define CONFIG_CMD_EEPROM
214e8428d6fSNishanth Menon 
215e8428d6fSNishanth Menon /* U-Boot general configuration */
216e8428d6fSNishanth Menon #define CONFIG_MISC_INIT_R
217e8428d6fSNishanth Menon #define CONFIG_CRC32_VERIFY
218e8428d6fSNishanth Menon #define CONFIG_MX_CYCLIC
219e8428d6fSNishanth Menon #define CONFIG_TIMESTAMP
220e8428d6fSNishanth Menon 
221e8428d6fSNishanth Menon /* EDMA3 */
222e8428d6fSNishanth Menon #define CONFIG_TI_EDMA3
223e8428d6fSNishanth Menon 
224abca9477SMurali Karicheri #define DEFAULT_FW_INITRAMFS_BOOT_ENV					\
225abca9477SMurali Karicheri 	"name_fw_rd=k2-fw-initrd.cpio.gz\0"				\
226abca9477SMurali Karicheri 	"set_rd_spec=setenv rd_spec ${rdaddr}:${filesize}\0"		\
227abca9477SMurali Karicheri 	"init_fw_rd_net=dhcp ${rdaddr} ${tftp_root}/${name_fw_rd}; "	\
228abca9477SMurali Karicheri 		"run set_rd_spec\0"					\
229abca9477SMurali Karicheri 	"init_fw_rd_ramfs=setenv rd_spec -\0"				\
230abca9477SMurali Karicheri 	"init_fw_rd_ubi=ubifsload ${rdaddr} ${bootdir}/${name_fw_rd}; "	\
231abca9477SMurali Karicheri 		"run set_rd_spec\0"					\
232abca9477SMurali Karicheri 
2336f6e9439SNishanth Menon #define DEFAULT_PMMC_BOOT_ENV						\
2346f6e9439SNishanth Menon 	"set_name_pmmc=setenv name_pmmc ti-sci-firmware-${soc_variant}.bin\0" \
2356f6e9439SNishanth Menon 	"dev_pmmc=0\0"							\
2366f6e9439SNishanth Menon 	"get_pmmc_net=dhcp ${loadaddr} ${tftp_root}/${name_pmmc}\0"	\
2376f6e9439SNishanth Menon 	"get_pmmc_ramfs=run get_pmmc_net\0"				\
2386f6e9439SNishanth Menon 	"get_pmmc_mmc=load mmc ${bootpart} ${loadaddr} "		\
2396f6e9439SNishanth Menon 			"${bootdir}/${name_pmmc}\0"			\
2406f6e9439SNishanth Menon 	"get_pmmc_ubi=ubifsload ${loadaddr} ${bootdir}/${name_pmmc}\0"	\
2416f6e9439SNishanth Menon 	"run_pmmc=rproc init; rproc list; "				\
2426f6e9439SNishanth Menon 		"rproc load ${dev_pmmc} ${loadaddr} 0x${filesize}; "	\
2436f6e9439SNishanth Menon 		"rproc start ${dev_pmmc}\0"				\
2446f6e9439SNishanth Menon 
245e8428d6fSNishanth Menon #define CONFIG_EXTRA_ENV_SETTINGS					\
246fd72d318SNishanth Menon 	DEFAULT_LINUX_BOOT_ENV						\
247e8428d6fSNishanth Menon 	CONFIG_EXTRA_ENV_KS2_BOARD_SETTINGS				\
24848dc1657SCarlos Hernandez 	"bootdir=/boot\0" \
249e8428d6fSNishanth Menon 	"tftp_root=/\0"							\
250e8428d6fSNishanth Menon 	"nfs_root=/export\0"						\
251e8428d6fSNishanth Menon 	"mem_lpae=1\0"							\
252e8428d6fSNishanth Menon 	"addr_ubi=0x82000000\0"						\
253e8428d6fSNishanth Menon 	"addr_secdb_key=0xc000000\0"					\
254bad773f4SNishanth Menon 	"name_kern=zImage\0"						\
255e8428d6fSNishanth Menon 	"run_mon=mon_install ${addr_mon}\0"				\
256abca9477SMurali Karicheri 	"run_kern=bootz ${loadaddr} ${rd_spec} ${fdtaddr}\0"		\
257e8428d6fSNishanth Menon 	"init_net=run args_all args_net\0"				\
258c29a3ce4SAndrew F. Davis 	"init_nfs=setenv autoload no; dhcp; run args_all args_net\0"	\
259e8428d6fSNishanth Menon 	"init_ubi=run args_all args_ubi; "				\
2608462cb57SCarlos Hernandez 		"ubi part ubifs; ubifsmount ubi:rootfs;\0"			\
261fd72d318SNishanth Menon 	"get_fdt_net=dhcp ${fdtaddr} ${tftp_root}/${name_fdt}\0"	\
262c29a3ce4SAndrew F. Davis 	"get_fdt_nfs=nfs ${fdtaddr} ${nfs_root}/boot/${name_fdt}\0"	\
26348dc1657SCarlos Hernandez 	"get_fdt_ubi=ubifsload ${fdtaddr} ${bootdir}/${name_fdt}\0"		\
264fd72d318SNishanth Menon 	"get_kern_net=dhcp ${loadaddr} ${tftp_root}/${name_kern}\0"	\
265c29a3ce4SAndrew F. Davis 	"get_kern_nfs=nfs ${loadaddr} ${nfs_root}/boot/${name_kern}\0"	\
26648dc1657SCarlos Hernandez 	"get_kern_ubi=ubifsload ${loadaddr} ${bootdir}/${name_kern}\0"		\
267e8428d6fSNishanth Menon 	"get_mon_net=dhcp ${addr_mon} ${tftp_root}/${name_mon}\0"	\
268c29a3ce4SAndrew F. Davis 	"get_mon_nfs=nfs ${addr_mon} ${nfs_root}/boot/${name_mon}\0"	\
26948dc1657SCarlos Hernandez 	"get_mon_ubi=ubifsload ${addr_mon} ${bootdir}/${name_mon}\0"		\
2708889e984SVitaly Andrianov 	"get_uboot_net=dhcp ${loadaddr} ${tftp_root}/${name_uboot}\0"	\
271c29a3ce4SAndrew F. Davis 	"get_uboot_nfs=nfs ${loadaddr} ${nfs_root}/boot/${name_uboot}\0" \
2727ec2328dSCooper Jr., Franklin 	"burn_uboot_spi=sf probe; sf erase 0 0x80000; "		\
2738889e984SVitaly Andrianov 		"sf write ${loadaddr} 0 ${filesize}\0"		\
274e8428d6fSNishanth Menon 	"burn_uboot_nand=nand erase 0 0x100000; "			\
2758889e984SVitaly Andrianov 		"nand write ${loadaddr} 0 ${filesize}\0"		\
276e8428d6fSNishanth Menon 	"args_all=setenv bootargs console=ttyS0,115200n8 rootwait=1\0"	\
277e8428d6fSNishanth Menon 	"args_net=setenv bootargs ${bootargs} rootfstype=nfs "		\
278e8428d6fSNishanth Menon 		"root=/dev/nfs rw nfsroot=${serverip}:${nfs_root},"	\
279e8428d6fSNishanth Menon 		"${nfs_options} ip=dhcp\0"				\
280e8428d6fSNishanth Menon 	"nfs_options=v3,tcp,rsize=4096,wsize=4096\0"			\
281fd72d318SNishanth Menon 	"get_fdt_ramfs=dhcp ${fdtaddr} ${tftp_root}/${name_fdt}\0"	\
282fd72d318SNishanth Menon 	"get_kern_ramfs=dhcp ${loadaddr} ${tftp_root}/${name_kern}\0"	\
283e8428d6fSNishanth Menon 	"get_mon_ramfs=dhcp ${addr_mon} ${tftp_root}/${name_mon}\0"	\
284fd72d318SNishanth Menon 	"get_fs_ramfs=dhcp ${rdaddr} ${tftp_root}/${name_fs}\0"	\
285e8428d6fSNishanth Menon 	"get_ubi_net=dhcp ${addr_ubi} ${tftp_root}/${name_ubi}\0"	\
286c29a3ce4SAndrew F. Davis 	"get_ubi_nfs=nfs ${addr_ubi} ${nfs_root}/boot/${name_ubi}\0"	\
287e8428d6fSNishanth Menon 	"burn_ubi=nand erase.part ubifs; "				\
288e8428d6fSNishanth Menon 		"nand write ${addr_ubi} ubifs ${filesize}\0"		\
289e8428d6fSNishanth Menon 	"init_ramfs=run args_all args_ramfs get_fs_ramfs\0"		\
290e8428d6fSNishanth Menon 	"args_ramfs=setenv bootargs ${bootargs} "			\
291e8428d6fSNishanth Menon 		"rdinit=/sbin/init rw root=/dev/ram0 "			\
292f06b454bSVitaly Andrianov 		"initrd=0x808080000,80M\0"				\
293e8428d6fSNishanth Menon 	"no_post=1\0"							\
294e8428d6fSNishanth Menon 	"mtdparts=mtdparts=davinci_nand.0:"				\
295e8428d6fSNishanth Menon 		"1024k(bootloader)ro,512k(params)ro,-(ubifs)\0"
296e8428d6fSNishanth Menon 
2976f6e9439SNishanth Menon #ifndef CONFIG_BOOTCOMMAND
298e8428d6fSNishanth Menon #define CONFIG_BOOTCOMMAND						\
299abca9477SMurali Karicheri 	"run init_${boot} init_fw_rd_${boot} get_fdt_${boot} "		\
300abca9477SMurali Karicheri 		"get_mon_${boot} get_kern_${boot} run_mon run_kern"
3016f6e9439SNishanth Menon #endif
302e8428d6fSNishanth Menon 
303e8428d6fSNishanth Menon #define CONFIG_BOOTARGS							\
304e8428d6fSNishanth Menon 
305e07cff11SNishanth Menon /* Now for the remaining common defines */
306e07cff11SNishanth Menon #include <configs/ti_armv7_common.h>
307e07cff11SNishanth Menon 
308e07cff11SNishanth Menon /* We wont be loading up OS from SPL for now.. */
309e07cff11SNishanth Menon #undef CONFIG_SPL_OS_BOOT
310e07cff11SNishanth Menon 
311e07cff11SNishanth Menon /* We do not have MMC support.. yet.. */
312e07cff11SNishanth Menon #undef CONFIG_SPL_LIBDISK_SUPPORT
313e07cff11SNishanth Menon #undef CONFIG_SPL_MMC_SUPPORT
314e07cff11SNishanth Menon #undef CONFIG_SPL_FAT_SUPPORT
315e07cff11SNishanth Menon #undef CONFIG_SPL_EXT_SUPPORT
316e07cff11SNishanth Menon #undef CONFIG_MMC
317e07cff11SNishanth Menon #undef CONFIG_GENERIC_MMC
318e07cff11SNishanth Menon 
319e07cff11SNishanth Menon /* And no support for GPIO, yet.. */
320e07cff11SNishanth Menon #undef CONFIG_SPL_GPIO_SUPPORT
321e8428d6fSNishanth Menon 
322e8428d6fSNishanth Menon /* we may include files below only after all above definitions */
323e8428d6fSNishanth Menon #include <asm/arch/hardware.h>
324e8428d6fSNishanth Menon #include <asm/arch/clock.h>
325e6d71e1cSVitaly Andrianov #ifndef CONFIG_SOC_K2G
326e8428d6fSNishanth Menon #define CONFIG_SYS_HZ_CLOCK		clk_get_rate(KS2_CLK1_6)
327e6d71e1cSVitaly Andrianov #else
328e6d71e1cSVitaly Andrianov #define CONFIG_SYS_HZ_CLOCK		external_clk[sys_clk]
329e6d71e1cSVitaly Andrianov #endif
330e8428d6fSNishanth Menon 
331e8428d6fSNishanth Menon #endif /* __CONFIG_KS2_EVM_H */
332