blob: 2d183140d7d97faafc713cfe7a0226dba77e14ee [file] [log] [blame]
Sanjeev Premi16885db2011-10-25 06:11:32 +00001/*
2 * Configuration settings for quick boot from NAND on OMAP3 EVM.
3 *
4 * Copyright (C) 2006-2010 Texas Instruments Incorporated - http://www.ti.com/
5 *
6 * Author :
7 * Sanjeev Premi <premi@ti.com>
8 *
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License as
11 * published by the Free Software Foundation; either version 2 of
12 * the License, or (at your option) any later version.
13 *
14 * This program is distributed "as is" WITHOUT ANY WARRANTY of any
15 * kind, whether express or implied; without even the implied warranty
16 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 */
19
20#ifndef __OMAP3_EVM_QUICK_NAND_H
21#define __OMAP3_EVM_QUICK_NAND_H
22
23#include <asm/arch/cpu.h>
24#include <asm/arch/omap3.h>
25
26/* ----------------------------------------------------------------------------
27 * Supported U-boot commands
28 * ----------------------------------------------------------------------------
29 */
30#define CONFIG_CMD_NAND
31
32/*
33 * Board revision is detected by probing the Ethernet chip.
34 *
35 * When revision is statically configured via CONFIG_STATIC_BOARD_REV,
36 * this option can be removed. Generated binary is leaner by ~16Kbytes.
37 */
38#define CONFIG_CMD_NET
39
40/* ----------------------------------------------------------------------------
41 * Supported U-boot features
42 * ----------------------------------------------------------------------------
43 */
44#define CONFIG_SILENT_CONSOLE
45#define CONFIG_ENV_IS_NOWHERE
46
47/* -----------------------------------------------------------------------------
48 * Include common board configuration
49 * -----------------------------------------------------------------------------
50 */
51#include "omap3_evm_common.h"
52
53/* -----------------------------------------------------------------------------
54 * Default environment
55 * -----------------------------------------------------------------------------
56 */
57#define CONFIG_BOOTDELAY 0
58
59#define CONFIG_EXTRA_ENV_SETTINGS \
60 "verify=no\0" \
61 "silent=1"
62
63#define CONFIG_BOOTCOMMAND \
64 "nandecc hw; " \
65 "nand read.i 0x80000000 280000 300000; " \
66 "bootm 0x80000000;"
67
68/*
69 * Update the bootargs as necessary e.g. size of memory, partition and fstype
70 */
71#define CONFIG_BOOTARGS \
72 "quiet " \
73 "console=ttyO0,115200n8 " \
74 "mem=128M " \
75 "noinitrd " \
76 "root=/dev/mtdblock4 rw " \
77 "rootfstype=jffs2 "
78
79#endif /* __OMAP3_EVM_QUICK_NAND_H */