2009-01-28 13:39:58 -07:00
|
|
|
/*
|
2011-10-25 00:11:29 -06:00
|
|
|
* Configuration settings for the TI OMAP3 EVM board.
|
|
|
|
*
|
|
|
|
* Copyright (C) 2006-2011 Texas Instruments Incorporated - http://www.ti.com/
|
|
|
|
*
|
2009-01-28 13:39:58 -07: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>
|
|
|
|
*
|
2013-10-07 05:07:26 -06:00
|
|
|
* SPDX-License-Identifier: GPL-2.0+
|
2009-01-28 13:39:58 -07:00
|
|
|
*/
|
|
|
|
|
2011-10-25 00:11:29 -06:00
|
|
|
#ifndef __OMAP3EVM_CONFIG_H
|
|
|
|
#define __OMAP3EVM_CONFIG_H
|
|
|
|
|
|
|
|
#include <asm/arch/cpu.h>
|
2015-03-09 16:12:04 -06:00
|
|
|
#include <asm/arch/omap.h>
|
2011-10-25 00:11:29 -06:00
|
|
|
|
|
|
|
/* ----------------------------------------------------------------------------
|
2016-02-05 20:30:11 -07:00
|
|
|
* Supported U-Boot commands
|
2011-10-25 00:11:29 -06:00
|
|
|
* ----------------------------------------------------------------------------
|
|
|
|
*/
|
2012-05-21 05:20:47 -06:00
|
|
|
#define CONFIG_CMD_ASKENV
|
|
|
|
|
2011-10-25 00:11:30 -06:00
|
|
|
#define CONFIG_CMD_EXT2
|
|
|
|
#define CONFIG_CMD_FAT
|
|
|
|
#define CONFIG_CMD_JFFS2
|
2011-10-25 00:11:29 -06:00
|
|
|
|
2011-10-25 00:11:30 -06:00
|
|
|
#define CONFIG_CMD_I2C
|
|
|
|
#define CONFIG_CMD_MMC
|
|
|
|
#define CONFIG_CMD_NAND
|
2011-10-25 00:11:29 -06:00
|
|
|
#define CONFIG_CMD_DHCP
|
|
|
|
#define CONFIG_CMD_PING
|
|
|
|
|
|
|
|
/* ----------------------------------------------------------------------------
|
2016-02-05 20:30:11 -07:00
|
|
|
* Supported U-Boot features
|
2011-10-25 00:11:29 -06:00
|
|
|
* ----------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
#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
|
2011-11-18 05:48:09 -07:00
|
|
|
|
|
|
|
/* SPL */
|
|
|
|
#define CONFIG_SPL_MMC_SUPPORT
|
|
|
|
#define CONFIG_SPL_FAT_SUPPORT
|
|
|
|
#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x300 /* address 0x60000 */
|
|
|
|
#define CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS 0x200 /* 256 KB */
|
2014-11-08 15:14:55 -07:00
|
|
|
#define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION 1
|
2014-10-15 09:53:11 -06:00
|
|
|
#define CONFIG_SPL_FS_LOAD_PAYLOAD_NAME "u-boot.img"
|
2011-11-18 05:48:09 -07:00
|
|
|
|
|
|
|
/* Partition tables */
|
2011-11-16 08:20:50 -07:00
|
|
|
#define CONFIG_EFI_PARTITION
|
2011-11-18 05:48:09 -07:00
|
|
|
#define CONFIG_DOS_PARTITION
|
2011-10-25 00:11:29 -06:00
|
|
|
|
|
|
|
/* USB
|
|
|
|
*
|
2015-08-04 09:04:06 -06:00
|
|
|
* Enable CONFIG_USB_MUSB_HCD for Host functionalities MSC, keyboard
|
|
|
|
* Enable CONFIG_USB_MUSB_UDD for Device functionalities.
|
2011-10-25 00:11:29 -06:00
|
|
|
*/
|
|
|
|
#define CONFIG_USB_OMAP3
|
2015-08-04 09:04:06 -06:00
|
|
|
#define CONFIG_USB_MUSB_HCD
|
|
|
|
/* #define CONFIG_USB_MUSB_UDC */
|
2011-10-25 00:11:29 -06:00
|
|
|
|
2011-11-18 05:48:09 -07:00
|
|
|
/* NAND SPL */
|
|
|
|
#define CONFIG_SPL_NAND_SIMPLE
|
|
|
|
#define CONFIG_SPL_NAND_SUPPORT
|
2012-09-20 18:09:07 -06:00
|
|
|
#define CONFIG_SPL_NAND_BASE
|
|
|
|
#define CONFIG_SPL_NAND_DRIVERS
|
|
|
|
#define CONFIG_SPL_NAND_ECC
|
2011-11-18 05:48:09 -07:00
|
|
|
#define CONFIG_SYS_NAND_5_ADDR_CYCLE
|
|
|
|
#define CONFIG_SYS_NAND_PAGE_COUNT 64
|
|
|
|
#define CONFIG_SYS_NAND_PAGE_SIZE 2048
|
|
|
|
#define CONFIG_SYS_NAND_OOBSIZE 64
|
|
|
|
#define CONFIG_SYS_NAND_BLOCK_SIZE (128*1024)
|
|
|
|
#define CONFIG_SYS_NAND_BAD_BLOCK_POS 0
|
|
|
|
#define CONFIG_SYS_NAND_ECCPOS {2, 3, 4, 5, 6, 7, 8, 9,\
|
|
|
|
10, 11, 12, 13}
|
|
|
|
#define CONFIG_SYS_NAND_ECCSIZE 512
|
|
|
|
#define CONFIG_SYS_NAND_ECCBYTES 3
|
2013-11-18 06:33:01 -07:00
|
|
|
#define CONFIG_NAND_OMAP_ECCSCHEME OMAP_ECC_HAM1_CODE_HW
|
2011-11-18 05:48:09 -07:00
|
|
|
#define CONFIG_SYS_NAND_U_BOOT_START CONFIG_SYS_TEXT_BASE
|
|
|
|
#define CONFIG_SYS_NAND_U_BOOT_OFFS 0x80000
|
|
|
|
|
2011-10-25 00:11:29 -06:00
|
|
|
/* -----------------------------------------------------------------------------
|
2011-10-25 00:11:30 -06:00
|
|
|
* Include common board configuration
|
2011-10-25 00:11:28 -06:00
|
|
|
* -----------------------------------------------------------------------------
|
2009-01-28 13:39:58 -07:00
|
|
|
*/
|
2011-10-25 00:11:30 -06:00
|
|
|
#include "omap3_evm_common.h"
|
2009-01-28 13:39:58 -07:00
|
|
|
|
2011-10-25 00:11:28 -06:00
|
|
|
/* -----------------------------------------------------------------------------
|
|
|
|
* Default environment
|
|
|
|
* -----------------------------------------------------------------------------
|
|
|
|
*/
|
2012-05-21 05:20:45 -06:00
|
|
|
#define CONFIG_BOOTDELAY 3
|
2009-05-15 15:48:37 -06:00
|
|
|
|
2009-01-28 13:39:58 -07:00
|
|
|
#define CONFIG_EXTRA_ENV_SETTINGS \
|
|
|
|
"loadaddr=0x82000000\0" \
|
2009-11-04 14:58:23 -07:00
|
|
|
"usbtty=cdc_acm\0" \
|
2011-09-03 19:42:35 -06:00
|
|
|
"mmcdev=0\0" \
|
2011-09-22 23:25:28 -06:00
|
|
|
"console=ttyO0,115200n8\0" \
|
2009-01-28 13:39:58 -07: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-03 19:42:35 -06:00
|
|
|
"loadbootscript=fatload mmc ${mmcdev} ${loadaddr} boot.scr\0" \
|
2009-01-28 13:39:58 -07:00
|
|
|
"bootscript=echo Running bootscript from mmc ...; " \
|
2009-04-01 15:34:12 -06:00
|
|
|
"source ${loadaddr}\0" \
|
2011-09-03 19:42:35 -06:00
|
|
|
"loaduimage=fatload mmc ${mmcdev} ${loadaddr} uImage\0" \
|
2009-01-28 13:39:58 -07: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 \
|
2012-09-30 23:06:52 -06:00
|
|
|
"mmc dev ${mmcdev}; if mmc rescan; then " \
|
2009-01-28 13:39:58 -07: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 00:11:29 -06:00
|
|
|
#endif /* __OMAP3EVM_CONFIG_H */
|