blob: da5d32517d2872a2a0201f6bf1403c9f31efd456 [file] [log] [blame]
Sanjeev Premi930b8662011-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 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02009 * SPDX-License-Identifier: GPL-2.0+
Sanjeev Premi930b8662011-10-25 06:11:32 +000010 */
11
12#ifndef __OMAP3_EVM_QUICK_NAND_H
13#define __OMAP3_EVM_QUICK_NAND_H
14
15#include <asm/arch/cpu.h>
Nishanth Menonfa96c962015-03-09 17:12:04 -050016#include <asm/arch/omap.h>
Sanjeev Premi930b8662011-10-25 06:11:32 +000017
18/* ----------------------------------------------------------------------------
Bin Meng75574052016-02-05 19:30:11 -080019 * Supported U-Boot commands
Sanjeev Premi930b8662011-10-25 06:11:32 +000020 * ----------------------------------------------------------------------------
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 */
Sanjeev Premi930b8662011-10-25 06:11:32 +000030
31/* ----------------------------------------------------------------------------
Bin Meng75574052016-02-05 19:30:11 -080032 * Supported U-Boot features
Sanjeev Premi930b8662011-10-25 06:11:32 +000033 * ----------------------------------------------------------------------------
34 */
35#define CONFIG_SILENT_CONSOLE
36#define CONFIG_ENV_IS_NOWHERE
37
38/* -----------------------------------------------------------------------------
39 * Include common board configuration
40 * -----------------------------------------------------------------------------
41 */
42#include "omap3_evm_common.h"
43
44/* -----------------------------------------------------------------------------
45 * Default environment
46 * -----------------------------------------------------------------------------
47 */
Sanjeev Premi930b8662011-10-25 06:11:32 +000048
49#define CONFIG_EXTRA_ENV_SETTINGS \
50 "verify=no\0" \
51 "silent=1"
52
53#define CONFIG_BOOTCOMMAND \
54 "nandecc hw; " \
55 "nand read.i 0x80000000 280000 300000; " \
56 "bootm 0x80000000;"
57
58/*
59 * Update the bootargs as necessary e.g. size of memory, partition and fstype
60 */
61#define CONFIG_BOOTARGS \
62 "quiet " \
63 "console=ttyO0,115200n8 " \
64 "mem=128M " \
65 "noinitrd " \
66 "root=/dev/mtdblock4 rw " \
67 "rootfstype=jffs2 "
68
Tom Rini988a2352011-11-18 12:48:09 +000069/*
70 * SPL
71 */
72#define CONFIG_SPL_NAND_SIMPLE
73#define CONFIG_SPL_NAND_SUPPORT
Scott Woodc352a0c2012-09-20 19:09:07 -050074#define CONFIG_SPL_NAND_BASE
75#define CONFIG_SPL_NAND_DRIVERS
76#define CONFIG_SPL_NAND_ECC
Tom Rini988a2352011-11-18 12:48:09 +000077#define CONFIG_SYS_NAND_5_ADDR_CYCLE
78#define CONFIG_SYS_NAND_PAGE_COUNT 64
79#define CONFIG_SYS_NAND_PAGE_SIZE 2048
80#define CONFIG_SYS_NAND_OOBSIZE 64
81#define CONFIG_SYS_NAND_BLOCK_SIZE (128*1024)
82#define CONFIG_SYS_NAND_BAD_BLOCK_POS 0
83#define CONFIG_SYS_NAND_ECCPOS {2, 3, 4, 5, 6, 7, 8, 9,\
84 10, 11, 12, 13}
85#define CONFIG_SYS_NAND_ECCSIZE 512
86#define CONFIG_SYS_NAND_ECCBYTES 3
pekon gupta3ef49732013-11-18 19:03:01 +053087#define CONFIG_NAND_OMAP_ECCSCHEME OMAP_ECC_HAM1_CODE_HW
Tom Rini988a2352011-11-18 12:48:09 +000088#define CONFIG_SYS_NAND_U_BOOT_START CONFIG_SYS_TEXT_BASE
89#define CONFIG_SYS_NAND_U_BOOT_OFFS 0x80000
90
Sanjeev Premi930b8662011-10-25 06:11:32 +000091#endif /* __OMAP3_EVM_QUICK_NAND_H */