2009-01-28 20:39:58 +00:00
|
|
|
/*
|
2011-10-25 06:11:29 +00:00
|
|
|
* Configuration settings for the TI OMAP3 EVM board.
|
|
|
|
*
|
|
|
|
* Copyright (C) 2006-2011 Texas Instruments Incorporated - http://www.ti.com/
|
|
|
|
*
|
2009-01-28 20:39:58 +00:00
|
|
|
* Author :
|
|
|
|
* Manikandan Pillai <mani.pillai@ti.com>
|
|
|
|
* Derived from Beagle Board and 3430 SDP code by
|
|
|
|
* Richard Woodruff <r-woodruff2@ti.com>
|
|
|
|
* Syed Mohammed Khasim <khasim@ti.com>
|
|
|
|
*
|
|
|
|
* Manikandan Pillai <mani.pillai@ti.com>
|
|
|
|
*
|
|
|
|
* See file CREDITS for list of people who contributed to this
|
|
|
|
* project.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License as
|
|
|
|
* published by the Free Software Foundation; either version 2 of
|
|
|
|
* the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
|
|
|
* MA 02111-1307 USA
|
|
|
|
*/
|
|
|
|
|
2011-10-25 06:11:29 +00:00
|
|
|
#ifndef __OMAP3EVM_CONFIG_H
|
|
|
|
#define __OMAP3EVM_CONFIG_H
|
|
|
|
|
|
|
|
#include <asm/arch/cpu.h>
|
|
|
|
#include <asm/arch/omap3.h>
|
|
|
|
|
|
|
|
/* ----------------------------------------------------------------------------
|
|
|
|
* Supported U-boot commands
|
|
|
|
* ----------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
#include <config_cmd_default.h>
|
|
|
|
|
2011-10-25 06:11:30 +00:00
|
|
|
#define CONFIG_CMD_EXT2
|
|
|
|
#define CONFIG_CMD_FAT
|
|
|
|
#define CONFIG_CMD_JFFS2
|
2011-10-25 06:11:29 +00:00
|
|
|
|
2011-10-25 06:11:30 +00:00
|
|
|
#define CONFIG_CMD_I2C
|
|
|
|
#define CONFIG_CMD_MMC
|
|
|
|
#define CONFIG_CMD_NAND
|
2011-10-25 06:11:29 +00:00
|
|
|
#define CONFIG_CMD_DHCP
|
|
|
|
#define CONFIG_CMD_PING
|
|
|
|
|
|
|
|
#undef CONFIG_CMD_FLASH /* flinfo, erase, protect */
|
|
|
|
#undef CONFIG_CMD_FPGA /* FPGA configuration Support */
|
|
|
|
#undef CONFIG_CMD_IMI /* iminfo */
|
|
|
|
#undef CONFIG_CMD_IMLS /* List all found images */
|
|
|
|
|
|
|
|
/* ----------------------------------------------------------------------------
|
|
|
|
* Supported U-boot features
|
|
|
|
* ----------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
#define CONFIG_SYS_LONGHELP
|
|
|
|
#define CONFIG_SYS_HUSH_PARSER
|
|
|
|
|
|
|
|
/* Display CPU and Board information */
|
|
|
|
#define CONFIG_DISPLAY_CPUINFO
|
|
|
|
#define CONFIG_DISPLAY_BOARDINFO
|
|
|
|
|
|
|
|
/* Allow to overwrite serial and ethaddr */
|
|
|
|
#define CONFIG_ENV_OVERWRITE
|
|
|
|
|
|
|
|
/* Add auto-completion support */
|
|
|
|
#define CONFIG_AUTO_COMPLETE
|
|
|
|
|
|
|
|
/* ----------------------------------------------------------------------------
|
|
|
|
* Supported hardware
|
|
|
|
* ----------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* MMC */
|
|
|
|
#define CONFIG_MMC
|
|
|
|
#define CONFIG_GENERIC_MMC
|
|
|
|
#define CONFIG_OMAP_HSMMC
|
|
|
|
#define CONFIG_DOS_PARTITION
|
|
|
|
|
|
|
|
/* USB
|
|
|
|
*
|
|
|
|
* Enable CONFIG_MUSB_HCD for Host functionalities MSC, keyboard
|
|
|
|
* Enable CONFIG_MUSB_UDD for Device functionalities.
|
|
|
|
*/
|
|
|
|
#define CONFIG_USB_OMAP3
|
|
|
|
#define CONFIG_MUSB_HCD
|
|
|
|
/* #define CONFIG_MUSB_UDC */
|
|
|
|
|
|
|
|
/* -----------------------------------------------------------------------------
|
2011-10-25 06:11:30 +00:00
|
|
|
* Include common board configuration
|
2011-10-25 06:11:28 +00:00
|
|
|
* -----------------------------------------------------------------------------
|
2009-01-28 20:39:58 +00:00
|
|
|
*/
|
2011-10-25 06:11:30 +00:00
|
|
|
#include "omap3_evm_common.h"
|
2009-01-28 20:39:58 +00:00
|
|
|
|
2011-10-25 06:11:28 +00:00
|
|
|
/* -----------------------------------------------------------------------------
|
|
|
|
* Default environment
|
|
|
|
* -----------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
#define CONFIG_BOOTDELAY 10
|
2009-05-15 21:48:37 +00:00
|
|
|
|
2009-01-28 20:39:58 +00:00
|
|
|
#define CONFIG_EXTRA_ENV_SETTINGS \
|
|
|
|
"loadaddr=0x82000000\0" \
|
2009-11-04 21:58:23 +00:00
|
|
|
"usbtty=cdc_acm\0" \
|
2011-09-04 01:42:35 +00:00
|
|
|
"mmcdev=0\0" \
|
2011-09-23 05:25:28 +00:00
|
|
|
"console=ttyO0,115200n8\0" \
|
2009-01-28 20:39:58 +00:00
|
|
|
"mmcargs=setenv bootargs console=${console} " \
|
|
|
|
"root=/dev/mmcblk0p2 rw " \
|
|
|
|
"rootfstype=ext3 rootwait\0" \
|
|
|
|
"nandargs=setenv bootargs console=${console} " \
|
|
|
|
"root=/dev/mtdblock4 rw " \
|
|
|
|
"rootfstype=jffs2\0" \
|
2011-09-04 01:42:35 +00:00
|
|
|
"loadbootscript=fatload mmc ${mmcdev} ${loadaddr} boot.scr\0" \
|
2009-01-28 20:39:58 +00:00
|
|
|
"bootscript=echo Running bootscript from mmc ...; " \
|
2009-04-01 21:34:12 +00:00
|
|
|
"source ${loadaddr}\0" \
|
2011-09-04 01:42:35 +00:00
|
|
|
"loaduimage=fatload mmc ${mmcdev} ${loadaddr} uImage\0" \
|
2009-01-28 20:39:58 +00:00
|
|
|
"mmcboot=echo Booting from mmc ...; " \
|
|
|
|
"run mmcargs; " \
|
|
|
|
"bootm ${loadaddr}\0" \
|
|
|
|
"nandboot=echo Booting from nand ...; " \
|
|
|
|
"run nandargs; " \
|
|
|
|
"onenand read ${loadaddr} 280000 400000; " \
|
|
|
|
"bootm ${loadaddr}\0" \
|
|
|
|
|
|
|
|
#define CONFIG_BOOTCOMMAND \
|
2011-09-04 01:42:35 +00:00
|
|
|
"if mmc rescan ${mmcdev}; then " \
|
2009-01-28 20:39:58 +00:00
|
|
|
"if run loadbootscript; then " \
|
|
|
|
"run bootscript; " \
|
|
|
|
"else " \
|
|
|
|
"if run loaduimage; then " \
|
|
|
|
"run mmcboot; " \
|
|
|
|
"else run nandboot; " \
|
|
|
|
"fi; " \
|
|
|
|
"fi; " \
|
|
|
|
"else run nandboot; fi"
|
|
|
|
|
2011-10-25 06:11:29 +00:00
|
|
|
#endif /* __OMAP3EVM_CONFIG_H */
|