blob: 3ace8bb6e5c8c6164155888406f530e7b8a40379 [file] [log] [blame]
Dirk Behmead9bc8e2009-01-28 21:39:58 +01001/*
Sanjeev Premi741de262011-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 Behmead9bc8e2009-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 *
Wolfgang Denk3765b3e2013-10-07 13:07:26 +020014 * SPDX-License-Identifier: GPL-2.0+
Dirk Behmead9bc8e2009-01-28 21:39:58 +010015 */
16
Sanjeev Premi741de262011-10-25 06:11:29 +000017#ifndef __OMAP3EVM_CONFIG_H
18#define __OMAP3EVM_CONFIG_H
19
20#include <asm/arch/cpu.h>
21#include <asm/arch/omap3.h>
22
Sanjeev Premi741de262011-10-25 06:11:29 +000023/* ----------------------------------------------------------------------------
24 * Supported U-boot commands
25 * ----------------------------------------------------------------------------
26 */
Sanjeev Premi741de262011-10-25 06:11:29 +000027#include <config_cmd_default.h>
28
Tom Rini1ee6d312012-05-21 11:20:47 +000029#define CONFIG_CMD_ASKENV
30
Sanjeev Premi39708842011-10-25 06:11:30 +000031#define CONFIG_CMD_EXT2
32#define CONFIG_CMD_FAT
33#define CONFIG_CMD_JFFS2
Sanjeev Premi741de262011-10-25 06:11:29 +000034
Sanjeev Premi39708842011-10-25 06:11:30 +000035#define CONFIG_CMD_I2C
36#define CONFIG_CMD_MMC
37#define CONFIG_CMD_NAND
Sanjeev Premi741de262011-10-25 06:11:29 +000038#define CONFIG_CMD_DHCP
39#define CONFIG_CMD_PING
40
41#undef CONFIG_CMD_FLASH /* flinfo, erase, protect */
42#undef CONFIG_CMD_FPGA /* FPGA configuration Support */
43#undef CONFIG_CMD_IMI /* iminfo */
44#undef CONFIG_CMD_IMLS /* List all found images */
45
46/* ----------------------------------------------------------------------------
47 * Supported U-boot features
48 * ----------------------------------------------------------------------------
49 */
50#define CONFIG_SYS_LONGHELP
51#define CONFIG_SYS_HUSH_PARSER
52
53/* Display CPU and Board information */
54#define CONFIG_DISPLAY_CPUINFO
55#define CONFIG_DISPLAY_BOARDINFO
56
57/* Allow to overwrite serial and ethaddr */
58#define CONFIG_ENV_OVERWRITE
59
60/* Add auto-completion support */
61#define CONFIG_AUTO_COMPLETE
62
63/* ----------------------------------------------------------------------------
64 * Supported hardware
65 * ----------------------------------------------------------------------------
66 */
67
68/* MMC */
69#define CONFIG_MMC
70#define CONFIG_GENERIC_MMC
71#define CONFIG_OMAP_HSMMC
Tom Rini673283f2011-11-18 12:48:09 +000072
73/* SPL */
74#define CONFIG_SPL_MMC_SUPPORT
75#define CONFIG_SPL_FAT_SUPPORT
76#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x300 /* address 0x60000 */
77#define CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS 0x200 /* 256 KB */
78#define CONFIG_SYS_MMC_SD_FAT_BOOT_PARTITION 1
79#define CONFIG_SPL_FAT_LOAD_PAYLOAD_NAME "u-boot.img"
80
81/* Partition tables */
Sanjeev Premi35e3f6d2011-11-16 10:20:50 -050082#define CONFIG_EFI_PARTITION
Tom Rini673283f2011-11-18 12:48:09 +000083#define CONFIG_DOS_PARTITION
Sanjeev Premi741de262011-10-25 06:11:29 +000084
85/* USB
86 *
87 * Enable CONFIG_MUSB_HCD for Host functionalities MSC, keyboard
88 * Enable CONFIG_MUSB_UDD for Device functionalities.
89 */
90#define CONFIG_USB_OMAP3
91#define CONFIG_MUSB_HCD
92/* #define CONFIG_MUSB_UDC */
93
Tom Rini673283f2011-11-18 12:48:09 +000094/* NAND SPL */
95#define CONFIG_SPL_NAND_SIMPLE
96#define CONFIG_SPL_NAND_SUPPORT
Scott Wood6f2f01b2012-09-20 19:09:07 -050097#define CONFIG_SPL_NAND_BASE
98#define CONFIG_SPL_NAND_DRIVERS
99#define CONFIG_SPL_NAND_ECC
Tom Rini673283f2011-11-18 12:48:09 +0000100#define CONFIG_SYS_NAND_5_ADDR_CYCLE
101#define CONFIG_SYS_NAND_PAGE_COUNT 64
102#define CONFIG_SYS_NAND_PAGE_SIZE 2048
103#define CONFIG_SYS_NAND_OOBSIZE 64
104#define CONFIG_SYS_NAND_BLOCK_SIZE (128*1024)
105#define CONFIG_SYS_NAND_BAD_BLOCK_POS 0
106#define CONFIG_SYS_NAND_ECCPOS {2, 3, 4, 5, 6, 7, 8, 9,\
107 10, 11, 12, 13}
108#define CONFIG_SYS_NAND_ECCSIZE 512
109#define CONFIG_SYS_NAND_ECCBYTES 3
Tom Rini673283f2011-11-18 12:48:09 +0000110#define CONFIG_SYS_NAND_U_BOOT_START CONFIG_SYS_TEXT_BASE
111#define CONFIG_SYS_NAND_U_BOOT_OFFS 0x80000
112
Sanjeev Premi741de262011-10-25 06:11:29 +0000113/* -----------------------------------------------------------------------------
Sanjeev Premi39708842011-10-25 06:11:30 +0000114 * Include common board configuration
Sanjeev Premi741de262011-10-25 06:11:29 +0000115 * -----------------------------------------------------------------------------
116 */
Sanjeev Premi39708842011-10-25 06:11:30 +0000117#include "omap3_evm_common.h"
Sanjeev Premiee8e2252011-10-25 06:11:28 +0000118
119/* -----------------------------------------------------------------------------
120 * Default environment
121 * -----------------------------------------------------------------------------
Tom Rixfccc0fc2009-06-28 12:52:31 -0500122 */
Tom Rini2e4b8b52012-05-21 11:20:45 +0000123#define CONFIG_BOOTDELAY 3
Sanjeev Premi136cf922009-05-15 23:48:37 +0200124
Dirk Behmead9bc8e2009-01-28 21:39:58 +0100125#define CONFIG_EXTRA_ENV_SETTINGS \
126 "loadaddr=0x82000000\0" \
Ajay Kumar Gupta73c86402009-11-04 15:58:23 -0600127 "usbtty=cdc_acm\0" \
Vaibhav Hiremathdcc4f382011-09-03 21:42:35 -0400128 "mmcdev=0\0" \
Sanjeev Premieffeda52011-09-23 05:25:28 +0000129 "console=ttyO0,115200n8\0" \
Dirk Behmead9bc8e2009-01-28 21:39:58 +0100130 "mmcargs=setenv bootargs console=${console} " \
131 "root=/dev/mmcblk0p2 rw " \
132 "rootfstype=ext3 rootwait\0" \
133 "nandargs=setenv bootargs console=${console} " \
134 "root=/dev/mtdblock4 rw " \
135 "rootfstype=jffs2\0" \
Vaibhav Hiremathdcc4f382011-09-03 21:42:35 -0400136 "loadbootscript=fatload mmc ${mmcdev} ${loadaddr} boot.scr\0" \
Dirk Behmead9bc8e2009-01-28 21:39:58 +0100137 "bootscript=echo Running bootscript from mmc ...; " \
Wolfgang Denk74de7ae2009-04-01 23:34:12 +0200138 "source ${loadaddr}\0" \
Vaibhav Hiremathdcc4f382011-09-03 21:42:35 -0400139 "loaduimage=fatload mmc ${mmcdev} ${loadaddr} uImage\0" \
Dirk Behmead9bc8e2009-01-28 21:39:58 +0100140 "mmcboot=echo Booting from mmc ...; " \
141 "run mmcargs; " \
142 "bootm ${loadaddr}\0" \
143 "nandboot=echo Booting from nand ...; " \
144 "run nandargs; " \
145 "onenand read ${loadaddr} 280000 400000; " \
146 "bootm ${loadaddr}\0" \
147
148#define CONFIG_BOOTCOMMAND \
Andrew Bradford66968112012-10-01 05:06:52 +0000149 "mmc dev ${mmcdev}; if mmc rescan; then " \
Dirk Behmead9bc8e2009-01-28 21:39:58 +0100150 "if run loadbootscript; then " \
151 "run bootscript; " \
152 "else " \
153 "if run loaduimage; then " \
154 "run mmcboot; " \
155 "else run nandboot; " \
156 "fi; " \
157 "fi; " \
158 "else run nandboot; fi"
159
Sanjeev Premi741de262011-10-25 06:11:29 +0000160#endif /* __OMAP3EVM_CONFIG_H */