]> git.ipfire.org Git - people/ms/u-boot.git/blame - include/configs/omap3_evm_quick_nand.h
Merge branch 'u-boot-imx/master' into 'u-boot-arm/master'
[people/ms/u-boot.git] / include / configs / omap3_evm_quick_nand.h
CommitLineData
16885db9
SP
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 *
1a459660 9 * SPDX-License-Identifier: GPL-2.0+
16885db9
SP
10 */
11
12#ifndef __OMAP3_EVM_QUICK_NAND_H
13#define __OMAP3_EVM_QUICK_NAND_H
14
15#include <asm/arch/cpu.h>
16#include <asm/arch/omap3.h>
17
18/* ----------------------------------------------------------------------------
19 * Supported U-boot commands
20 * ----------------------------------------------------------------------------
21 */
22#define CONFIG_CMD_NAND
23
24/*
25 * Board revision is detected by probing the Ethernet chip.
26 *
27 * When revision is statically configured via CONFIG_STATIC_BOARD_REV,
28 * this option can be removed. Generated binary is leaner by ~16Kbytes.
29 */
30#define CONFIG_CMD_NET
31
32/* ----------------------------------------------------------------------------
33 * Supported U-boot features
34 * ----------------------------------------------------------------------------
35 */
36#define CONFIG_SILENT_CONSOLE
37#define CONFIG_ENV_IS_NOWHERE
38
39/* -----------------------------------------------------------------------------
40 * Include common board configuration
41 * -----------------------------------------------------------------------------
42 */
43#include "omap3_evm_common.h"
44
45/* -----------------------------------------------------------------------------
46 * Default environment
47 * -----------------------------------------------------------------------------
48 */
49#define CONFIG_BOOTDELAY 0
50
51#define CONFIG_EXTRA_ENV_SETTINGS \
52 "verify=no\0" \
53 "silent=1"
54
55#define CONFIG_BOOTCOMMAND \
56 "nandecc hw; " \
57 "nand read.i 0x80000000 280000 300000; " \
58 "bootm 0x80000000;"
59
60/*
61 * Update the bootargs as necessary e.g. size of memory, partition and fstype
62 */
63#define CONFIG_BOOTARGS \
64 "quiet " \
65 "console=ttyO0,115200n8 " \
66 "mem=128M " \
67 "noinitrd " \
68 "root=/dev/mtdblock4 rw " \
69 "rootfstype=jffs2 "
70
673283f3
TR
71/*
72 * SPL
73 */
74#define CONFIG_SPL_NAND_SIMPLE
75#define CONFIG_SPL_NAND_SUPPORT
6f2f01b9
SW
76#define CONFIG_SPL_NAND_BASE
77#define CONFIG_SPL_NAND_DRIVERS
78#define CONFIG_SPL_NAND_ECC
673283f3
TR
79#define CONFIG_SYS_NAND_5_ADDR_CYCLE
80#define CONFIG_SYS_NAND_PAGE_COUNT 64
81#define CONFIG_SYS_NAND_PAGE_SIZE 2048
82#define CONFIG_SYS_NAND_OOBSIZE 64
83#define CONFIG_SYS_NAND_BLOCK_SIZE (128*1024)
84#define CONFIG_SYS_NAND_BAD_BLOCK_POS 0
85#define CONFIG_SYS_NAND_ECCPOS {2, 3, 4, 5, 6, 7, 8, 9,\
86 10, 11, 12, 13}
87#define CONFIG_SYS_NAND_ECCSIZE 512
88#define CONFIG_SYS_NAND_ECCBYTES 3
3f719069 89#define CONFIG_NAND_OMAP_ECCSCHEME OMAP_ECC_HAM1_CODE_HW
673283f3
TR
90#define CONFIG_SYS_NAND_U_BOOT_START CONFIG_SYS_TEXT_BASE
91#define CONFIG_SYS_NAND_U_BOOT_OFFS 0x80000
92
16885db9 93#endif /* __OMAP3_EVM_QUICK_NAND_H */