2 * Configuration settings for the TI OMAP3 EVM board.
4 * Copyright (C) 2006-2011 Texas Instruments Incorporated - http://www.ti.com/
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>
12 * Manikandan Pillai <mani.pillai@ti.com>
14 * See file CREDITS for list of people who contributed to this
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.
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.
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,
33 #ifndef __OMAP3EVM_CONFIG_H
34 #define __OMAP3EVM_CONFIG_H
36 #include <asm/arch/cpu.h>
37 #include <asm/arch/omap3.h>
39 /* ----------------------------------------------------------------------------
40 * Supported U-boot commands
41 * ----------------------------------------------------------------------------
43 #include <config_cmd_default.h>
45 #define CONFIG_CMD_EXT2
46 #define CONFIG_CMD_FAT
47 #define CONFIG_CMD_JFFS2
49 #define CONFIG_CMD_I2C
50 #define CONFIG_CMD_MMC
51 #define CONFIG_CMD_NAND
52 #define CONFIG_CMD_DHCP
53 #define CONFIG_CMD_PING
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 */
60 /* ----------------------------------------------------------------------------
61 * Supported U-boot features
62 * ----------------------------------------------------------------------------
64 #define CONFIG_SYS_LONGHELP
65 #define CONFIG_SYS_HUSH_PARSER
67 /* Display CPU and Board information */
68 #define CONFIG_DISPLAY_CPUINFO
69 #define CONFIG_DISPLAY_BOARDINFO
71 /* Allow to overwrite serial and ethaddr */
72 #define CONFIG_ENV_OVERWRITE
74 /* Add auto-completion support */
75 #define CONFIG_AUTO_COMPLETE
77 /* ----------------------------------------------------------------------------
79 * ----------------------------------------------------------------------------
84 #define CONFIG_GENERIC_MMC
85 #define CONFIG_OMAP_HSMMC
88 #define CONFIG_SPL_MMC_SUPPORT
89 #define CONFIG_SPL_FAT_SUPPORT
90 #define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x300 /* address 0x60000 */
91 #define CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS 0x200 /* 256 KB */
92 #define CONFIG_SYS_MMC_SD_FAT_BOOT_PARTITION 1
93 #define CONFIG_SPL_FAT_LOAD_PAYLOAD_NAME "u-boot.img"
95 /* Partition tables */
96 /* Only need DOS partition support for SPL, currently */
97 #ifndef CONFIG_SPL_BUILD
98 #define CONFIG_EFI_PARTITION
100 #define CONFIG_DOS_PARTITION
104 * Enable CONFIG_MUSB_HCD for Host functionalities MSC, keyboard
105 * Enable CONFIG_MUSB_UDD for Device functionalities.
107 #define CONFIG_USB_OMAP3
108 #define CONFIG_MUSB_HCD
109 /* #define CONFIG_MUSB_UDC */
112 #define CONFIG_SPL_NAND_SIMPLE
113 #define CONFIG_SPL_NAND_SUPPORT
114 #define CONFIG_SYS_NAND_5_ADDR_CYCLE
115 #define CONFIG_SYS_NAND_PAGE_COUNT 64
116 #define CONFIG_SYS_NAND_PAGE_SIZE 2048
117 #define CONFIG_SYS_NAND_OOBSIZE 64
118 #define CONFIG_SYS_NAND_BLOCK_SIZE (128*1024)
119 #define CONFIG_SYS_NAND_BAD_BLOCK_POS 0
120 #define CONFIG_SYS_NAND_ECCPOS {2, 3, 4, 5, 6, 7, 8, 9,\
122 #define CONFIG_SYS_NAND_ECCSIZE 512
123 #define CONFIG_SYS_NAND_ECCBYTES 3
124 #define CONFIG_SYS_NAND_U_BOOT_START CONFIG_SYS_TEXT_BASE
125 #define CONFIG_SYS_NAND_U_BOOT_OFFS 0x80000
127 /* -----------------------------------------------------------------------------
128 * Include common board configuration
129 * -----------------------------------------------------------------------------
131 #include "omap3_evm_common.h"
133 /* -----------------------------------------------------------------------------
134 * Default environment
135 * -----------------------------------------------------------------------------
137 #define CONFIG_BOOTDELAY 10
139 #define CONFIG_EXTRA_ENV_SETTINGS \
140 "loadaddr=0x82000000\0" \
143 "console=ttyO0,115200n8\0" \
144 "mmcargs=setenv bootargs console=${console} " \
145 "root=/dev/mmcblk0p2 rw " \
146 "rootfstype=ext3 rootwait\0" \
147 "nandargs=setenv bootargs console=${console} " \
148 "root=/dev/mtdblock4 rw " \
149 "rootfstype=jffs2\0" \
150 "loadbootscript=fatload mmc ${mmcdev} ${loadaddr} boot.scr\0" \
151 "bootscript=echo Running bootscript from mmc ...; " \
152 "source ${loadaddr}\0" \
153 "loaduimage=fatload mmc ${mmcdev} ${loadaddr} uImage\0" \
154 "mmcboot=echo Booting from mmc ...; " \
156 "bootm ${loadaddr}\0" \
157 "nandboot=echo Booting from nand ...; " \
159 "onenand read ${loadaddr} 280000 400000; " \
160 "bootm ${loadaddr}\0" \
162 #define CONFIG_BOOTCOMMAND \
163 "if mmc rescan ${mmcdev}; then " \
164 "if run loadbootscript; then " \
167 "if run loaduimage; then " \
169 "else run nandboot; " \
172 "else run nandboot; fi"
174 #endif /* __OMAP3EVM_CONFIG_H */