blob: 47ec39f29db7145eae2c35f190592759a53f3d68 [file] [log] [blame]
Dirk Behmebb732be2009-01-28 21:39:58 +01001/*
Sanjeev Premi22ad1022011-10-25 06:11:29 +00002 * Configuration settings for the TI OMAP3 EVM board.
3 *
4 * Copyright (C) 2006-2011 Texas Instruments Incorporated - http://www.ti.com/
5 *
Dirk Behmebb732be2009-01-28 21:39:58 +01006 * Author :
7 * Manikandan Pillai <mani.pillai@ti.com>
8 * Derived from Beagle Board and 3430 SDP code by
9 * Richard Woodruff <r-woodruff2@ti.com>
10 * Syed Mohammed Khasim <khasim@ti.com>
11 *
12 * Manikandan Pillai <mani.pillai@ti.com>
13 *
Dirk Behmebb732be2009-01-28 21:39:58 +010014 * See file CREDITS for list of people who contributed to this
15 * project.
16 *
17 * This program is free software; you can redistribute it and/or
18 * modify it under the terms of the GNU General Public License as
19 * published by the Free Software Foundation; either version 2 of
20 * the License, or (at your option) any later version.
21 *
22 * This program is distributed in the hope that it will be useful,
23 * but WITHOUT ANY WARRANTY; without even the implied warranty of
24 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25 * GNU General Public License for more details.
26 *
27 * You should have received a copy of the GNU General Public License
28 * along with this program; if not, write to the Free Software
29 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
30 * MA 02111-1307 USA
31 */
Sanjeev Premi22ad1022011-10-25 06:11:29 +000032
33#ifndef __OMAP3EVM_CONFIG_H
34#define __OMAP3EVM_CONFIG_H
35
36#include <asm/arch/cpu.h>
37#include <asm/arch/omap3.h>
38
Sanjeev Premi22ad1022011-10-25 06:11:29 +000039/* ----------------------------------------------------------------------------
40 * Supported U-boot commands
41 * ----------------------------------------------------------------------------
42 */
Sanjeev Premi22ad1022011-10-25 06:11:29 +000043#include <config_cmd_default.h>
44
Sanjeev Premi593d9092011-10-25 06:11:30 +000045#define CONFIG_CMD_EXT2
46#define CONFIG_CMD_FAT
47#define CONFIG_CMD_JFFS2
Sanjeev Premi22ad1022011-10-25 06:11:29 +000048
Sanjeev Premi593d9092011-10-25 06:11:30 +000049#define CONFIG_CMD_I2C
50#define CONFIG_CMD_MMC
51#define CONFIG_CMD_NAND
Sanjeev Premi22ad1022011-10-25 06:11:29 +000052#define CONFIG_CMD_DHCP
53#define CONFIG_CMD_PING
54
55#undef CONFIG_CMD_FLASH /* flinfo, erase, protect */
56#undef CONFIG_CMD_FPGA /* FPGA configuration Support */
57#undef CONFIG_CMD_IMI /* iminfo */
58#undef CONFIG_CMD_IMLS /* List all found images */
59
60/* ----------------------------------------------------------------------------
61 * Supported U-boot features
62 * ----------------------------------------------------------------------------
63 */
64#define CONFIG_SYS_LONGHELP
65#define CONFIG_SYS_HUSH_PARSER
66
67/* Display CPU and Board information */
68#define CONFIG_DISPLAY_CPUINFO
69#define CONFIG_DISPLAY_BOARDINFO
70
71/* Allow to overwrite serial and ethaddr */
72#define CONFIG_ENV_OVERWRITE
73
74/* Add auto-completion support */
75#define CONFIG_AUTO_COMPLETE
76
77/* ----------------------------------------------------------------------------
78 * Supported hardware
79 * ----------------------------------------------------------------------------
80 */
81
82/* MMC */
83#define CONFIG_MMC
84#define CONFIG_GENERIC_MMC
85#define CONFIG_OMAP_HSMMC
86#define CONFIG_DOS_PARTITION
87
88/* USB
89 *
90 * Enable CONFIG_MUSB_HCD for Host functionalities MSC, keyboard
91 * Enable CONFIG_MUSB_UDD for Device functionalities.
92 */
93#define CONFIG_USB_OMAP3
94#define CONFIG_MUSB_HCD
95/* #define CONFIG_MUSB_UDC */
Dirk Behmebb732be2009-01-28 21:39:58 +010096
Sanjeev Premi22ad1022011-10-25 06:11:29 +000097/* -----------------------------------------------------------------------------
Sanjeev Premi593d9092011-10-25 06:11:30 +000098 * Include common board configuration
Sanjeev Premi47b601e2011-10-25 06:11:28 +000099 * -----------------------------------------------------------------------------
Dirk Behmebb732be2009-01-28 21:39:58 +0100100 */
Sanjeev Premi593d9092011-10-25 06:11:30 +0000101#include "omap3_evm_common.h"
Dirk Behmebb732be2009-01-28 21:39:58 +0100102
Sanjeev Premi47b601e2011-10-25 06:11:28 +0000103/* -----------------------------------------------------------------------------
104 * Default environment
105 * -----------------------------------------------------------------------------
106 */
Dirk Behmebb732be2009-01-28 21:39:58 +0100107#define CONFIG_BOOTDELAY 10
Sanjeev Premibf2f48c2009-05-15 23:48:37 +0200108
Dirk Behmebb732be2009-01-28 21:39:58 +0100109#define CONFIG_EXTRA_ENV_SETTINGS \
110 "loadaddr=0x82000000\0" \
Ajay Kumar Guptabf793792009-11-04 15:58:23 -0600111 "usbtty=cdc_acm\0" \
Vaibhav Hiremath4fdf2b72011-09-03 21:42:35 -0400112 "mmcdev=0\0" \
Sanjeev Premi16822bf2011-09-23 05:25:28 +0000113 "console=ttyO0,115200n8\0" \
Dirk Behmebb732be2009-01-28 21:39:58 +0100114 "mmcargs=setenv bootargs console=${console} " \
115 "root=/dev/mmcblk0p2 rw " \
116 "rootfstype=ext3 rootwait\0" \
117 "nandargs=setenv bootargs console=${console} " \
118 "root=/dev/mtdblock4 rw " \
119 "rootfstype=jffs2\0" \
Vaibhav Hiremath4fdf2b72011-09-03 21:42:35 -0400120 "loadbootscript=fatload mmc ${mmcdev} ${loadaddr} boot.scr\0" \
Dirk Behmebb732be2009-01-28 21:39:58 +0100121 "bootscript=echo Running bootscript from mmc ...; " \
Wolfgang Denk85c25df2009-04-01 23:34:12 +0200122 "source ${loadaddr}\0" \
Vaibhav Hiremath4fdf2b72011-09-03 21:42:35 -0400123 "loaduimage=fatload mmc ${mmcdev} ${loadaddr} uImage\0" \
Dirk Behmebb732be2009-01-28 21:39:58 +0100124 "mmcboot=echo Booting from mmc ...; " \
125 "run mmcargs; " \
126 "bootm ${loadaddr}\0" \
127 "nandboot=echo Booting from nand ...; " \
128 "run nandargs; " \
129 "onenand read ${loadaddr} 280000 400000; " \
130 "bootm ${loadaddr}\0" \
131
132#define CONFIG_BOOTCOMMAND \
Vaibhav Hiremath4fdf2b72011-09-03 21:42:35 -0400133 "if mmc rescan ${mmcdev}; then " \
Dirk Behmebb732be2009-01-28 21:39:58 +0100134 "if run loadbootscript; then " \
135 "run bootscript; " \
136 "else " \
137 "if run loaduimage; then " \
138 "run mmcboot; " \
139 "else run nandboot; " \
140 "fi; " \
141 "fi; " \
142 "else run nandboot; fi"
143
Sanjeev Premi22ad1022011-10-25 06:11:29 +0000144#endif /* __OMAP3EVM_CONFIG_H */