]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - include/configs/omap3_evm_quick_nand.h
Merge 'u-boot-atmel/master' into 'u-boot-arm/master'
[karo-tx-uboot.git] / include / configs / omap3_evm_quick_nand.h
1 /*
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 /*
80  * SPL
81  */
82 #define CONFIG_SPL_NAND_SIMPLE
83 #define CONFIG_SPL_NAND_SUPPORT
84 #define CONFIG_SPL_NAND_BASE
85 #define CONFIG_SPL_NAND_DRIVERS
86 #define CONFIG_SPL_NAND_ECC
87 #define CONFIG_SYS_NAND_5_ADDR_CYCLE
88 #define CONFIG_SYS_NAND_PAGE_COUNT      64
89 #define CONFIG_SYS_NAND_PAGE_SIZE       2048
90 #define CONFIG_SYS_NAND_OOBSIZE         64
91 #define CONFIG_SYS_NAND_BLOCK_SIZE      (128*1024)
92 #define CONFIG_SYS_NAND_BAD_BLOCK_POS   0
93 #define CONFIG_SYS_NAND_ECCPOS          {2, 3, 4, 5, 6, 7, 8, 9,\
94                                                 10, 11, 12, 13}
95 #define CONFIG_SYS_NAND_ECCSIZE         512
96 #define CONFIG_SYS_NAND_ECCBYTES        3
97 #define CONFIG_SYS_NAND_U_BOOT_START   CONFIG_SYS_TEXT_BASE
98 #define CONFIG_SYS_NAND_U_BOOT_OFFS     0x80000
99
100 #endif /* __OMAP3_EVM_QUICK_NAND_H */