]> Git Repo - J-u-boot.git/blame - include/configs/omap3_evm.h
configs: Re-sync HUSH options
[J-u-boot.git] / include / configs / omap3_evm.h
CommitLineData
ad9bc8e5 1/*
741de266
SP
2 * Configuration settings for the TI OMAP3 EVM board.
3 *
4 * Copyright (C) 2006-2011 Texas Instruments Incorporated - http://www.ti.com/
5 *
ad9bc8e5
DB
6 * Author :
7 * Manikandan Pillai <[email protected]>
8 * Derived from Beagle Board and 3430 SDP code by
9 * Richard Woodruff <[email protected]>
10 * Syed Mohammed Khasim <[email protected]>
11 *
12 * Manikandan Pillai <[email protected]>
13 *
3765b3e7 14 * SPDX-License-Identifier: GPL-2.0+
ad9bc8e5
DB
15 */
16
741de266
SP
17#ifndef __OMAP3EVM_CONFIG_H
18#define __OMAP3EVM_CONFIG_H
19
20#include <asm/arch/cpu.h>
987ec585 21#include <asm/arch/omap.h>
741de266 22
741de266 23/* ----------------------------------------------------------------------------
a187559e 24 * Supported U-Boot commands
741de266
SP
25 * ----------------------------------------------------------------------------
26 */
1ee6d31f
TR
27#define CONFIG_CMD_ASKENV
28
3970884c
SP
29#define CONFIG_CMD_EXT2
30#define CONFIG_CMD_FAT
31#define CONFIG_CMD_JFFS2
741de266 32
3970884c
SP
33#define CONFIG_CMD_I2C
34#define CONFIG_CMD_MMC
35#define CONFIG_CMD_NAND
741de266
SP
36#define CONFIG_CMD_DHCP
37#define CONFIG_CMD_PING
38
741de266 39/* ----------------------------------------------------------------------------
a187559e 40 * Supported U-Boot features
741de266
SP
41 * ----------------------------------------------------------------------------
42 */
43#define CONFIG_SYS_LONGHELP
741de266
SP
44
45/* Display CPU and Board information */
46#define CONFIG_DISPLAY_CPUINFO
47#define CONFIG_DISPLAY_BOARDINFO
48
49/* Allow to overwrite serial and ethaddr */
50#define CONFIG_ENV_OVERWRITE
51
52/* Add auto-completion support */
53#define CONFIG_AUTO_COMPLETE
54
55/* ----------------------------------------------------------------------------
56 * Supported hardware
57 * ----------------------------------------------------------------------------
58 */
59
60/* MMC */
61#define CONFIG_MMC
62#define CONFIG_GENERIC_MMC
63#define CONFIG_OMAP_HSMMC
673283f3
TR
64
65/* SPL */
66#define CONFIG_SPL_MMC_SUPPORT
67#define CONFIG_SPL_FAT_SUPPORT
68#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x300 /* address 0x60000 */
69#define CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS 0x200 /* 256 KB */
e2ccdf89 70#define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION 1
205b4f33 71#define CONFIG_SPL_FS_LOAD_PAYLOAD_NAME "u-boot.img"
673283f3
TR
72
73/* Partition tables */
35e3f6d7 74#define CONFIG_EFI_PARTITION
673283f3 75#define CONFIG_DOS_PARTITION
741de266
SP
76
77/* USB
78 *
95de1e2f
PK
79 * Enable CONFIG_USB_MUSB_HCD for Host functionalities MSC, keyboard
80 * Enable CONFIG_USB_MUSB_UDD for Device functionalities.
741de266
SP
81 */
82#define CONFIG_USB_OMAP3
95de1e2f
PK
83#define CONFIG_USB_MUSB_HCD
84/* #define CONFIG_USB_MUSB_UDC */
741de266 85
673283f3
TR
86/* NAND SPL */
87#define CONFIG_SPL_NAND_SIMPLE
88#define CONFIG_SPL_NAND_SUPPORT
6f2f01b9
SW
89#define CONFIG_SPL_NAND_BASE
90#define CONFIG_SPL_NAND_DRIVERS
91#define CONFIG_SPL_NAND_ECC
673283f3
TR
92#define CONFIG_SYS_NAND_5_ADDR_CYCLE
93#define CONFIG_SYS_NAND_PAGE_COUNT 64
94#define CONFIG_SYS_NAND_PAGE_SIZE 2048
95#define CONFIG_SYS_NAND_OOBSIZE 64
96#define CONFIG_SYS_NAND_BLOCK_SIZE (128*1024)
97#define CONFIG_SYS_NAND_BAD_BLOCK_POS 0
98#define CONFIG_SYS_NAND_ECCPOS {2, 3, 4, 5, 6, 7, 8, 9,\
99 10, 11, 12, 13}
100#define CONFIG_SYS_NAND_ECCSIZE 512
101#define CONFIG_SYS_NAND_ECCBYTES 3
3f719069 102#define CONFIG_NAND_OMAP_ECCSCHEME OMAP_ECC_HAM1_CODE_HW
673283f3
TR
103#define CONFIG_SYS_NAND_U_BOOT_START CONFIG_SYS_TEXT_BASE
104#define CONFIG_SYS_NAND_U_BOOT_OFFS 0x80000
105
741de266 106/* -----------------------------------------------------------------------------
3970884c 107 * Include common board configuration
ee8e2254 108 * -----------------------------------------------------------------------------
ad9bc8e5 109 */
3970884c 110#include "omap3_evm_common.h"
ad9bc8e5 111
ee8e2254
SP
112/* -----------------------------------------------------------------------------
113 * Default environment
114 * -----------------------------------------------------------------------------
115 */
2e4b8b5c 116#define CONFIG_BOOTDELAY 3
136cf92d 117
ad9bc8e5
DB
118#define CONFIG_EXTRA_ENV_SETTINGS \
119 "loadaddr=0x82000000\0" \
73c8640e 120 "usbtty=cdc_acm\0" \
dcc4f38b 121 "mmcdev=0\0" \
effeda55 122 "console=ttyO0,115200n8\0" \
ad9bc8e5
DB
123 "mmcargs=setenv bootargs console=${console} " \
124 "root=/dev/mmcblk0p2 rw " \
125 "rootfstype=ext3 rootwait\0" \
126 "nandargs=setenv bootargs console=${console} " \
127 "root=/dev/mtdblock4 rw " \
128 "rootfstype=jffs2\0" \
dcc4f38b 129 "loadbootscript=fatload mmc ${mmcdev} ${loadaddr} boot.scr\0" \
ad9bc8e5 130 "bootscript=echo Running bootscript from mmc ...; " \
74de7aef 131 "source ${loadaddr}\0" \
dcc4f38b 132 "loaduimage=fatload mmc ${mmcdev} ${loadaddr} uImage\0" \
ad9bc8e5
DB
133 "mmcboot=echo Booting from mmc ...; " \
134 "run mmcargs; " \
135 "bootm ${loadaddr}\0" \
136 "nandboot=echo Booting from nand ...; " \
137 "run nandargs; " \
138 "onenand read ${loadaddr} 280000 400000; " \
139 "bootm ${loadaddr}\0" \
140
141#define CONFIG_BOOTCOMMAND \
66968110 142 "mmc dev ${mmcdev}; if mmc rescan; then " \
ad9bc8e5
DB
143 "if run loadbootscript; then " \
144 "run bootscript; " \
145 "else " \
146 "if run loaduimage; then " \
147 "run mmcboot; " \
148 "else run nandboot; " \
149 "fi; " \
150 "fi; " \
151 "else run nandboot; fi"
152
741de266 153#endif /* __OMAP3EVM_CONFIG_H */
This page took 0.607532 seconds and 4 git commands to generate.