xref: /openbmc/u-boot/include/configs/omap3_evm.h (revision dcc4f38b4384fc6e63e3674100737ea6e250a19f)
1ad9bc8e5SDirk Behme /*
2ad9bc8e5SDirk Behme  * (C) Copyright 2006-2008
3ad9bc8e5SDirk Behme  * Texas Instruments.
4ad9bc8e5SDirk Behme  * Author :
5ad9bc8e5SDirk Behme  *	Manikandan Pillai <mani.pillai@ti.com>
6ad9bc8e5SDirk Behme  * Derived from Beagle Board and 3430 SDP code by
7ad9bc8e5SDirk Behme  *	Richard Woodruff <r-woodruff2@ti.com>
8ad9bc8e5SDirk Behme  *	Syed Mohammed Khasim <khasim@ti.com>
9ad9bc8e5SDirk Behme  *
10ad9bc8e5SDirk Behme  * Manikandan Pillai <mani.pillai@ti.com>
11ad9bc8e5SDirk Behme  *
12ad9bc8e5SDirk Behme  * Configuration settings for the TI OMAP3 EVM board.
13ad9bc8e5SDirk Behme  *
14ad9bc8e5SDirk Behme  * See file CREDITS for list of people who contributed to this
15ad9bc8e5SDirk Behme  * project.
16ad9bc8e5SDirk Behme  *
17ad9bc8e5SDirk Behme  * This program is free software; you can redistribute it and/or
18ad9bc8e5SDirk Behme  * modify it under the terms of the GNU General Public License as
19ad9bc8e5SDirk Behme  * published by the Free Software Foundation; either version 2 of
20ad9bc8e5SDirk Behme  * the License, or (at your option) any later version.
21ad9bc8e5SDirk Behme  *
22ad9bc8e5SDirk Behme  * This program is distributed in the hope that it will be useful,
23ad9bc8e5SDirk Behme  * but WITHOUT ANY WARRANTY; without even the implied warranty of
24ad9bc8e5SDirk Behme  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
25ad9bc8e5SDirk Behme  * GNU General Public License for more details.
26ad9bc8e5SDirk Behme  *
27ad9bc8e5SDirk Behme  * You should have received a copy of the GNU General Public License
28ad9bc8e5SDirk Behme  * along with this program; if not, write to the Free Software
29ad9bc8e5SDirk Behme  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
30ad9bc8e5SDirk Behme  * MA 02111-1307 USA
31ad9bc8e5SDirk Behme  */
32ad9bc8e5SDirk Behme 
33ad9bc8e5SDirk Behme #ifndef __CONFIG_H
34ad9bc8e5SDirk Behme #define __CONFIG_H
35ad9bc8e5SDirk Behme 
36ad9bc8e5SDirk Behme /*
37ad9bc8e5SDirk Behme  * High Level Configuration Options
38ad9bc8e5SDirk Behme  */
39ad9bc8e5SDirk Behme #define CONFIG_OMAP		1	/* in a TI OMAP core */
40ad9bc8e5SDirk Behme #define CONFIG_OMAP34XX		1	/* which is a 34XX */
41ad9bc8e5SDirk Behme #define CONFIG_OMAP3430		1	/* which is in a 3430 */
42ad9bc8e5SDirk Behme #define CONFIG_OMAP3_EVM	1	/* working with EVM */
43ad9bc8e5SDirk Behme 
44cae377b5SVaibhav Hiremath #define CONFIG_SDRC	/* The chip has SDRC controller */
45cae377b5SVaibhav Hiremath 
46ad9bc8e5SDirk Behme #include <asm/arch/cpu.h>	/* get chip and board defs */
47ad9bc8e5SDirk Behme #include <asm/arch/omap3.h>
48ad9bc8e5SDirk Behme 
496a6b62e3SSanjeev Premi /*
506a6b62e3SSanjeev Premi  * Display CPU and Board information
516a6b62e3SSanjeev Premi  */
526a6b62e3SSanjeev Premi #define CONFIG_DISPLAY_CPUINFO		1
536a6b62e3SSanjeev Premi #define CONFIG_DISPLAY_BOARDINFO	1
546a6b62e3SSanjeev Premi 
55ad9bc8e5SDirk Behme /* Clock Defines */
56ad9bc8e5SDirk Behme #define V_OSCK			26000000	/* Clock output from T2 */
57ad9bc8e5SDirk Behme #define V_SCLK			(V_OSCK >> 1)
58ad9bc8e5SDirk Behme 
59ad9bc8e5SDirk Behme #undef CONFIG_USE_IRQ			/* no support for IRQs */
60ad9bc8e5SDirk Behme #define CONFIG_MISC_INIT_R
61ad9bc8e5SDirk Behme 
62ad9bc8e5SDirk Behme #define CONFIG_CMDLINE_TAG		1	/* enable passing of ATAGs */
63ad9bc8e5SDirk Behme #define CONFIG_SETUP_MEMORY_TAGS	1
64ad9bc8e5SDirk Behme #define CONFIG_INITRD_TAG		1
65ad9bc8e5SDirk Behme #define CONFIG_REVISION_TAG		1
66ad9bc8e5SDirk Behme 
67ad9bc8e5SDirk Behme /*
68ad9bc8e5SDirk Behme  * Size of malloc() pool
69ad9bc8e5SDirk Behme  */
709c44ddccSSandeep Paulraj #define CONFIG_ENV_SIZE			(128 << 10)	/* 128 KiB */
71ad9bc8e5SDirk Behme 						/* Sector */
729c44ddccSSandeep Paulraj #define CONFIG_SYS_MALLOC_LEN		(CONFIG_ENV_SIZE + (128 << 10))
73ad9bc8e5SDirk Behme /*
74ad9bc8e5SDirk Behme  * Hardware drivers
75ad9bc8e5SDirk Behme  */
76ad9bc8e5SDirk Behme 
77ad9bc8e5SDirk Behme /*
78ad9bc8e5SDirk Behme  * NS16550 Configuration
79ad9bc8e5SDirk Behme  */
80ad9bc8e5SDirk Behme #define V_NS16550_CLK			48000000	/* 48MHz (APLL96/2) */
81ad9bc8e5SDirk Behme 
82ad9bc8e5SDirk Behme #define CONFIG_SYS_NS16550
83ad9bc8e5SDirk Behme #define CONFIG_SYS_NS16550_SERIAL
84ad9bc8e5SDirk Behme #define CONFIG_SYS_NS16550_REG_SIZE	(-4)
85ad9bc8e5SDirk Behme #define CONFIG_SYS_NS16550_CLK		V_NS16550_CLK
86ad9bc8e5SDirk Behme 
87ad9bc8e5SDirk Behme /*
88ad9bc8e5SDirk Behme  * select serial console configuration
89ad9bc8e5SDirk Behme  */
90ad9bc8e5SDirk Behme #define CONFIG_CONS_INDEX		1
91ad9bc8e5SDirk Behme #define CONFIG_SYS_NS16550_COM1		OMAP34XX_UART1
92ad9bc8e5SDirk Behme #define CONFIG_SERIAL1			1	/* UART1 on OMAP3 EVM */
93ad9bc8e5SDirk Behme 
94ad9bc8e5SDirk Behme /* allow to overwrite serial and ethaddr */
95ad9bc8e5SDirk Behme #define CONFIG_ENV_OVERWRITE
96ad9bc8e5SDirk Behme #define CONFIG_BAUDRATE			115200
97ad9bc8e5SDirk Behme #define CONFIG_SYS_BAUDRATE_TABLE	{4800, 9600, 19200, 38400, 57600,\
98ad9bc8e5SDirk Behme 					115200}
99ad9bc8e5SDirk Behme #define CONFIG_MMC			1
100*dcc4f38bSVaibhav Hiremath #define CONFIG_GENERIC_MMC		1
101*dcc4f38bSVaibhav Hiremath #define CONFIG_OMAP_HSMMC		1
102ad9bc8e5SDirk Behme #define CONFIG_DOS_PARTITION		1
103ad9bc8e5SDirk Behme 
10430563a04SNishanth Menon /* DDR - I use Micron DDR */
10530563a04SNishanth Menon #define CONFIG_OMAP3_MICRON_DDR		1
10630563a04SNishanth Menon 
10773c8640eSAjay Kumar Gupta /* USB
10873c8640eSAjay Kumar Gupta  * Enable CONFIG_MUSB_HCD for Host functionalities MSC, keyboard
10973c8640eSAjay Kumar Gupta  * Enable CONFIG_MUSB_UDD for Device functionalities.
11073c8640eSAjay Kumar Gupta  */
11173c8640eSAjay Kumar Gupta #define CONFIG_USB_OMAP3		1
11273c8640eSAjay Kumar Gupta #define CONFIG_MUSB_HCD			1
11373c8640eSAjay Kumar Gupta /* #define CONFIG_MUSB_UDC		1 */
11473c8640eSAjay Kumar Gupta 
11573c8640eSAjay Kumar Gupta #ifdef CONFIG_USB_OMAP3
11673c8640eSAjay Kumar Gupta 
11773c8640eSAjay Kumar Gupta #ifdef CONFIG_MUSB_HCD
11873c8640eSAjay Kumar Gupta #define CONFIG_CMD_USB
11973c8640eSAjay Kumar Gupta 
12073c8640eSAjay Kumar Gupta #define CONFIG_USB_STORAGE
12173c8640eSAjay Kumar Gupta #define CONGIG_CMD_STORAGE
12273c8640eSAjay Kumar Gupta #define CONFIG_CMD_FAT
12373c8640eSAjay Kumar Gupta 
12473c8640eSAjay Kumar Gupta #ifdef CONFIG_USB_KEYBOARD
12573c8640eSAjay Kumar Gupta #define CONFIG_SYS_USB_EVENT_POLL
12673c8640eSAjay Kumar Gupta #define CONFIG_PREBOOT "usb start"
12773c8640eSAjay Kumar Gupta #endif /* CONFIG_USB_KEYBOARD */
12873c8640eSAjay Kumar Gupta 
12973c8640eSAjay Kumar Gupta #endif /* CONFIG_MUSB_HCD */
13073c8640eSAjay Kumar Gupta 
13173c8640eSAjay Kumar Gupta #ifdef CONFIG_MUSB_UDC
13273c8640eSAjay Kumar Gupta /* USB device configuration */
13373c8640eSAjay Kumar Gupta #define CONFIG_USB_DEVICE		1
13473c8640eSAjay Kumar Gupta #define CONFIG_USB_TTY			1
13573c8640eSAjay Kumar Gupta #define CONFIG_SYS_CONSOLE_IS_IN_ENV	1
13673c8640eSAjay Kumar Gupta /* Change these to suit your needs */
13773c8640eSAjay Kumar Gupta #define CONFIG_USBD_VENDORID		0x0451
13873c8640eSAjay Kumar Gupta #define CONFIG_USBD_PRODUCTID		0x5678
13973c8640eSAjay Kumar Gupta #define CONFIG_USBD_MANUFACTURER	"Texas Instruments"
14073c8640eSAjay Kumar Gupta #define CONFIG_USBD_PRODUCT_NAME	"EVM"
14173c8640eSAjay Kumar Gupta #endif /* CONFIG_MUSB_UDC */
14273c8640eSAjay Kumar Gupta 
14373c8640eSAjay Kumar Gupta #endif /* CONFIG_USB_OMAP3 */
14473c8640eSAjay Kumar Gupta 
145ad9bc8e5SDirk Behme /* commands to include */
146ad9bc8e5SDirk Behme #include <config_cmd_default.h>
147ad9bc8e5SDirk Behme 
148ad9bc8e5SDirk Behme #define CONFIG_CMD_EXT2		/* EXT2 Support			*/
149ad9bc8e5SDirk Behme #define CONFIG_CMD_FAT		/* FAT support			*/
150ad9bc8e5SDirk Behme #define CONFIG_CMD_JFFS2	/* JFFS2 Support		*/
151ad9bc8e5SDirk Behme 
152ad9bc8e5SDirk Behme #define CONFIG_CMD_I2C		/* I2C serial bus support	*/
153ad9bc8e5SDirk Behme #define CONFIG_CMD_MMC		/* MMC support			*/
154675e0eafSVaibhav Hiremath #define CONFIG_CMD_NAND		/* NAND support			*/
155ad9bc8e5SDirk Behme #define CONFIG_CMD_DHCP
156ad9bc8e5SDirk Behme #define CONFIG_CMD_PING
157ad9bc8e5SDirk Behme 
158ad9bc8e5SDirk Behme #undef CONFIG_CMD_FLASH		/* flinfo, erase, protect	*/
159ad9bc8e5SDirk Behme #undef CONFIG_CMD_FPGA		/* FPGA configuration Support	*/
160ad9bc8e5SDirk Behme #undef CONFIG_CMD_IMI		/* iminfo			*/
161ad9bc8e5SDirk Behme #undef CONFIG_CMD_IMLS		/* List all found images	*/
162ad9bc8e5SDirk Behme 
163ad9bc8e5SDirk Behme #define CONFIG_SYS_NO_FLASH
1640297ec7eSTom Rix #define CONFIG_HARD_I2C			1
165ad9bc8e5SDirk Behme #define CONFIG_SYS_I2C_SPEED		100000
166ad9bc8e5SDirk Behme #define CONFIG_SYS_I2C_SLAVE		1
167ad9bc8e5SDirk Behme #define CONFIG_SYS_I2C_BUS		0
168ad9bc8e5SDirk Behme #define CONFIG_SYS_I2C_BUS_SELECT	1
169ad9bc8e5SDirk Behme #define CONFIG_DRIVER_OMAP34XX_I2C	1
170ad9bc8e5SDirk Behme 
171ad9bc8e5SDirk Behme /*
172fccc0fcaSTom Rix  * TWL4030
173fccc0fcaSTom Rix  */
174fccc0fcaSTom Rix #define CONFIG_TWL4030_POWER		1
175fccc0fcaSTom Rix 
176fccc0fcaSTom Rix /*
177ad9bc8e5SDirk Behme  * Board NAND Info.
178ad9bc8e5SDirk Behme  */
179ad9bc8e5SDirk Behme #define CONFIG_SYS_NAND_ADDR		NAND_BASE	/* physical address */
180ad9bc8e5SDirk Behme 							/* to access nand */
181ad9bc8e5SDirk Behme #define CONFIG_SYS_NAND_BASE		NAND_BASE	/* physical address */
182ad9bc8e5SDirk Behme 							/* to access */
183ad9bc8e5SDirk Behme 							/* nand at CS0 */
184ad9bc8e5SDirk Behme 
185ad9bc8e5SDirk Behme #define CONFIG_SYS_MAX_NAND_DEVICE	1		/* Max number of */
186ad9bc8e5SDirk Behme 							/* NAND devices */
187ad9bc8e5SDirk Behme #define CONFIG_JFFS2_NAND
188ad9bc8e5SDirk Behme /* nand device jffs2 lives on */
189ad9bc8e5SDirk Behme #define CONFIG_JFFS2_DEV		"nand0"
190ad9bc8e5SDirk Behme /* start of jffs2 partition */
191ad9bc8e5SDirk Behme #define CONFIG_JFFS2_PART_OFFSET	0x680000
192ad9bc8e5SDirk Behme #define CONFIG_JFFS2_PART_SIZE		0xf980000	/* sz of jffs2 part */
193ad9bc8e5SDirk Behme 
194ad9bc8e5SDirk Behme /* Environment information */
195ad9bc8e5SDirk Behme #define CONFIG_BOOTDELAY	10
196ad9bc8e5SDirk Behme 
197136cf92dSSanjeev Premi #define CONFIG_BOOTFILE		uImage
198136cf92dSSanjeev Premi 
199ad9bc8e5SDirk Behme #define CONFIG_EXTRA_ENV_SETTINGS \
200ad9bc8e5SDirk Behme 	"loadaddr=0x82000000\0" \
20173c8640eSAjay Kumar Gupta 	"usbtty=cdc_acm\0" \
202*dcc4f38bSVaibhav Hiremath 	"mmcdev=0\0" \
203ad9bc8e5SDirk Behme 	"console=ttyS2,115200n8\0" \
204ad9bc8e5SDirk Behme 	"mmcargs=setenv bootargs console=${console} " \
205ad9bc8e5SDirk Behme 		"root=/dev/mmcblk0p2 rw " \
206ad9bc8e5SDirk Behme 		"rootfstype=ext3 rootwait\0" \
207ad9bc8e5SDirk Behme 	"nandargs=setenv bootargs console=${console} " \
208ad9bc8e5SDirk Behme 		"root=/dev/mtdblock4 rw " \
209ad9bc8e5SDirk Behme 		"rootfstype=jffs2\0" \
210*dcc4f38bSVaibhav Hiremath 	"loadbootscript=fatload mmc ${mmcdev} ${loadaddr} boot.scr\0" \
211ad9bc8e5SDirk Behme 	"bootscript=echo Running bootscript from mmc ...; " \
21274de7aefSWolfgang Denk 		"source ${loadaddr}\0" \
213*dcc4f38bSVaibhav Hiremath 	"loaduimage=fatload mmc ${mmcdev} ${loadaddr} uImage\0" \
214ad9bc8e5SDirk Behme 	"mmcboot=echo Booting from mmc ...; " \
215ad9bc8e5SDirk Behme 		"run mmcargs; " \
216ad9bc8e5SDirk Behme 		"bootm ${loadaddr}\0" \
217ad9bc8e5SDirk Behme 	"nandboot=echo Booting from nand ...; " \
218ad9bc8e5SDirk Behme 		"run nandargs; " \
219ad9bc8e5SDirk Behme 		"onenand read ${loadaddr} 280000 400000; " \
220ad9bc8e5SDirk Behme 		"bootm ${loadaddr}\0" \
221ad9bc8e5SDirk Behme 
222ad9bc8e5SDirk Behme #define CONFIG_BOOTCOMMAND \
223*dcc4f38bSVaibhav Hiremath 	"if mmc rescan ${mmcdev}; then " \
224ad9bc8e5SDirk Behme 		"if run loadbootscript; then " \
225ad9bc8e5SDirk Behme 			"run bootscript; " \
226ad9bc8e5SDirk Behme 		"else " \
227ad9bc8e5SDirk Behme 			"if run loaduimage; then " \
228ad9bc8e5SDirk Behme 				"run mmcboot; " \
229ad9bc8e5SDirk Behme 			"else run nandboot; " \
230ad9bc8e5SDirk Behme 			"fi; " \
231ad9bc8e5SDirk Behme 		"fi; " \
232ad9bc8e5SDirk Behme 	"else run nandboot; fi"
233ad9bc8e5SDirk Behme 
234ad9bc8e5SDirk Behme #define CONFIG_AUTO_COMPLETE	1
235ad9bc8e5SDirk Behme /*
236ad9bc8e5SDirk Behme  * Miscellaneous configurable options
237ad9bc8e5SDirk Behme  */
238ad9bc8e5SDirk Behme #define CONFIG_SYS_LONGHELP		/* undef to save memory */
239ad9bc8e5SDirk Behme #define CONFIG_SYS_HUSH_PARSER		/* use "hush" command parser */
240ad9bc8e5SDirk Behme #define CONFIG_SYS_PROMPT_HUSH_PS2	"> "
2411270ec13SRobert P. J. Day #define CONFIG_SYS_PROMPT		"OMAP3_EVM # "
242f62b1257SVaibhav Hiremath #define CONFIG_SYS_CBSIZE		512	/* Console I/O Buffer Size */
243ad9bc8e5SDirk Behme /* Print Buffer Size */
244ad9bc8e5SDirk Behme #define CONFIG_SYS_PBSIZE		(CONFIG_SYS_CBSIZE + \
245ad9bc8e5SDirk Behme 					sizeof(CONFIG_SYS_PROMPT) + 16)
246ad9bc8e5SDirk Behme #define CONFIG_SYS_MAXARGS		16	/* max number of command */
247ad9bc8e5SDirk Behme 						/* args */
248ad9bc8e5SDirk Behme /* Boot Argument Buffer Size */
249ad9bc8e5SDirk Behme #define CONFIG_SYS_BARGSIZE		(CONFIG_SYS_CBSIZE)
250ad9bc8e5SDirk Behme /* memtest works on */
251ad9bc8e5SDirk Behme #define CONFIG_SYS_MEMTEST_START	(OMAP34XX_SDRC_CS0)
252ad9bc8e5SDirk Behme #define CONFIG_SYS_MEMTEST_END		(OMAP34XX_SDRC_CS0 + \
253ad9bc8e5SDirk Behme 					0x01F00000) /* 31MB */
254ad9bc8e5SDirk Behme 
255ad9bc8e5SDirk Behme #define CONFIG_SYS_LOAD_ADDR		(OMAP34XX_SDRC_CS0) /* default load */
256ad9bc8e5SDirk Behme 								/* address */
257ad9bc8e5SDirk Behme 
258ad9bc8e5SDirk Behme /*
259d3a513c2SManikandan Pillai  * OMAP3 has 12 GP timers, they can be driven by the system clock
260d3a513c2SManikandan Pillai  * (12/13/16.8/19.2/38.4MHz) or by 32KHz clock. We use 13MHz (V_SCLK).
261d3a513c2SManikandan Pillai  * This rate is divided by a local divisor.
262ad9bc8e5SDirk Behme  */
263ad9bc8e5SDirk Behme #define CONFIG_SYS_TIMERBASE		OMAP34XX_GPT2
264d3a513c2SManikandan Pillai #define CONFIG_SYS_PTV			2	/* Divisor: 2^(PTV+1) => 8 */
265d3a513c2SManikandan Pillai #define CONFIG_SYS_HZ			1000
266ad9bc8e5SDirk Behme 
267ad9bc8e5SDirk Behme /*-----------------------------------------------------------------------
268ad9bc8e5SDirk Behme  * Stack sizes
269ad9bc8e5SDirk Behme  *
270ad9bc8e5SDirk Behme  * The stack sizes are set up in start.S using the settings below
271ad9bc8e5SDirk Behme  */
2729c44ddccSSandeep Paulraj #define CONFIG_STACKSIZE	(128 << 10)	/* regular stack 128 KiB */
273ad9bc8e5SDirk Behme #ifdef CONFIG_USE_IRQ
2749c44ddccSSandeep Paulraj #define CONFIG_STACKSIZE_IRQ	(4 << 10)	/* IRQ stack 4 KiB */
2759c44ddccSSandeep Paulraj #define CONFIG_STACKSIZE_FIQ	(4 << 10)	/* FIQ stack 4 KiB */
276ad9bc8e5SDirk Behme #endif
277ad9bc8e5SDirk Behme 
278ad9bc8e5SDirk Behme /*-----------------------------------------------------------------------
279ad9bc8e5SDirk Behme  * Physical Memory Map
280ad9bc8e5SDirk Behme  */
281ad9bc8e5SDirk Behme #define CONFIG_NR_DRAM_BANKS	2	/* CS1 may or may not be populated */
282ad9bc8e5SDirk Behme #define PHYS_SDRAM_1		OMAP34XX_SDRC_CS0
2839c44ddccSSandeep Paulraj #define PHYS_SDRAM_1_SIZE	(32 << 20)	/* at least 32 MiB */
284ad9bc8e5SDirk Behme #define PHYS_SDRAM_2		OMAP34XX_SDRC_CS1
285ad9bc8e5SDirk Behme 
286ad9bc8e5SDirk Behme /* SDRAM Bank Allocation method */
287ad9bc8e5SDirk Behme #define SDRC_R_B_C		1
288ad9bc8e5SDirk Behme 
289ad9bc8e5SDirk Behme /*-----------------------------------------------------------------------
290ad9bc8e5SDirk Behme  * FLASH and environment organization
291ad9bc8e5SDirk Behme  */
292ad9bc8e5SDirk Behme 
293ad9bc8e5SDirk Behme /* **** PISMO SUPPORT *** */
294ad9bc8e5SDirk Behme 
295ad9bc8e5SDirk Behme /* Configure the PISMO */
296ad9bc8e5SDirk Behme #define PISMO1_NAND_SIZE		GPMC_SIZE_128M
297ad9bc8e5SDirk Behme #define PISMO1_ONEN_SIZE		GPMC_SIZE_128M
298ad9bc8e5SDirk Behme 
2999c44ddccSSandeep Paulraj #define CONFIG_SYS_MONITOR_LEN		(256 << 10)	/* Reserve 2 sectors */
300ad9bc8e5SDirk Behme 
3016cbec7b3SLuca Ceresoli #if defined(CONFIG_CMD_NAND)
3026cbec7b3SLuca Ceresoli #define CONFIG_SYS_FLASH_BASE		PISMO1_NAND_BASE
3036cbec7b3SLuca Ceresoli #elif defined(CONFIG_CMD_ONENAND)
3046cbec7b3SLuca Ceresoli #define CONFIG_SYS_FLASH_BASE		PISMO1_ONEN_BASE
3056cbec7b3SLuca Ceresoli #endif
306ad9bc8e5SDirk Behme 
307ad9bc8e5SDirk Behme /* Monitor at start of flash */
308ad9bc8e5SDirk Behme #define CONFIG_SYS_MONITOR_BASE		CONFIG_SYS_FLASH_BASE
309ad9bc8e5SDirk Behme #define CONFIG_SYS_ONENAND_BASE		ONENAND_MAP
310ad9bc8e5SDirk Behme 
3116cbec7b3SLuca Ceresoli #define ONENAND_ENV_OFFSET		0x260000 /* environment starts here */
3126cbec7b3SLuca Ceresoli #define SMNAND_ENV_OFFSET		0x260000 /* environment starts here */
3136cbec7b3SLuca Ceresoli 
314675e0eafSVaibhav Hiremath #if defined(CONFIG_CMD_NAND)
315675e0eafSVaibhav Hiremath #define CONFIG_NAND_OMAP_GPMC
316675e0eafSVaibhav Hiremath #define GPMC_NAND_ECC_LP_x16_LAYOUT	1
317675e0eafSVaibhav Hiremath #define CONFIG_ENV_IS_IN_NAND
3186cbec7b3SLuca Ceresoli #define CONFIG_ENV_OFFSET		SMNAND_ENV_OFFSET
319675e0eafSVaibhav Hiremath #elif defined(CONFIG_CMD_ONENAND)
320ad9bc8e5SDirk Behme #define CONFIG_ENV_IS_IN_ONENAND	1
3216cbec7b3SLuca Ceresoli #define CONFIG_ENV_OFFSET		ONENAND_ENV_OFFSET
322675e0eafSVaibhav Hiremath #endif
323ad9bc8e5SDirk Behme 
3246cbec7b3SLuca Ceresoli #define CONFIG_SYS_ENV_SECT_SIZE	(128 << 10)	/* 128 KiB */
3256cbec7b3SLuca Ceresoli #define CONFIG_ENV_ADDR			CONFIG_ENV_OFFSET
326ad9bc8e5SDirk Behme 
3276a1e58ebSSanjeev Premi /*
3286a1e58ebSSanjeev Premi  * Support for relocation
3296a1e58ebSSanjeev Premi  */
3306a1e58ebSSanjeev Premi #define CONFIG_SYS_SDRAM_BASE		PHYS_SDRAM_1
331f899198aSSanjeev Premi #define CONFIG_SYS_INIT_RAM_ADDR	0x4020f800
332f899198aSSanjeev Premi #define CONFIG_SYS_INIT_RAM_SIZE	0x800
333f899198aSSanjeev Premi #define CONFIG_SYS_INIT_SP_ADDR		(CONFIG_SYS_INIT_RAM_ADDR + \
334f899198aSSanjeev Premi 					 CONFIG_SYS_INIT_RAM_SIZE - \
335f899198aSSanjeev Premi 					 GENERATED_GBL_DATA_SIZE)
3366a1e58ebSSanjeev Premi 
33776ee9a2cSSanjeev Premi /*
33876ee9a2cSSanjeev Premi  * Define the board revision statically
33976ee9a2cSSanjeev Premi  */
34076ee9a2cSSanjeev Premi /* #define CONFIG_STATIC_BOARD_REV	OMAP3EVM_BOARD_GEN_2 */
34176ee9a2cSSanjeev Premi 
342ad9bc8e5SDirk Behme /*----------------------------------------------------------------------------
343ad9bc8e5SDirk Behme  * SMSC9115 Ethernet from SMSC9118 family
344ad9bc8e5SDirk Behme  *----------------------------------------------------------------------------
345ad9bc8e5SDirk Behme  */
346ad9bc8e5SDirk Behme #if defined(CONFIG_CMD_NET)
347ad9bc8e5SDirk Behme 
348736fead8SBen Warren #define CONFIG_NET_MULTI
349736fead8SBen Warren #define CONFIG_SMC911X
350736fead8SBen Warren #define CONFIG_SMC911X_32_BIT
351736fead8SBen Warren #define CONFIG_SMC911X_BASE	0x2C000000
352ad9bc8e5SDirk Behme 
353ad9bc8e5SDirk Behme #endif /* (CONFIG_CMD_NET) */
354ad9bc8e5SDirk Behme 
355ad9bc8e5SDirk Behme /*
356ad9bc8e5SDirk Behme  * BOOTP fields
357ad9bc8e5SDirk Behme  */
358ad9bc8e5SDirk Behme 
359ad9bc8e5SDirk Behme #define CONFIG_BOOTP_SUBNETMASK		0x00000001
360ad9bc8e5SDirk Behme #define CONFIG_BOOTP_GATEWAY		0x00000002
361ad9bc8e5SDirk Behme #define CONFIG_BOOTP_HOSTNAME		0x00000004
362ad9bc8e5SDirk Behme #define CONFIG_BOOTP_BOOTPATH		0x00000010
363ad9bc8e5SDirk Behme 
364ad9bc8e5SDirk Behme #endif /* __CONFIG_H */
365