blob: b7d8765db5c8f7e1b83dc92bf92731084209c8c4 [file] [log] [blame]
Sanjeev Premi8fd25692011-10-25 06:11:31 +00001/*
2 * Configuration settings for quick boot from MMC 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 Premi8fd25692011-10-25 06:11:31 +000010 */
11
12#ifndef __OMAP3_EVM_QUICK_MMC_H
13#define __OMAP3_EVM_QUICK_MMC_H
14
15#include <asm/arch/cpu.h>
Nishanth Menonfa96c962015-03-09 17:12:04 -050016#include <asm/arch/omap.h>
Sanjeev Premi8fd25692011-10-25 06:11:31 +000017
18/* ----------------------------------------------------------------------------
Bin Meng75574052016-02-05 19:30:11 -080019 * Supported U-Boot commands
Sanjeev Premi8fd25692011-10-25 06:11:31 +000020 * ----------------------------------------------------------------------------
21 */
Sanjeev Premi8fd25692011-10-25 06:11:31 +000022
23/*
24 * Board revision is detected by probing the Ethernet chip.
25 *
26 * When revision is statically configured via CONFIG_STATIC_BOARD_REV,
27 * this option can be removed. Generated binary is leaner by ~16Kbytes.
28 */
Sanjeev Premi8fd25692011-10-25 06:11:31 +000029
30/* ----------------------------------------------------------------------------
Bin Meng75574052016-02-05 19:30:11 -080031 * Supported U-Boot features
Sanjeev Premi8fd25692011-10-25 06:11:31 +000032 * ----------------------------------------------------------------------------
33 */
34#define CONFIG_SILENT_CONSOLE
35#define CONFIG_ENV_IS_NOWHERE
36
37/* ----------------------------------------------------------------------------
38 * Supported hardware
39 * ----------------------------------------------------------------------------
40 */
41
42/* MMC */
43#define CONFIG_MMC
44#define CONFIG_GENERIC_MMC
45#define CONFIG_OMAP_HSMMC
46#define CONFIG_DOS_PARTITION
47
48/* -----------------------------------------------------------------------------
49 * Include common board configuration
50 * -----------------------------------------------------------------------------
51 */
52#include "omap3_evm_common.h"
53
54/* -----------------------------------------------------------------------------
55 * Default environment
56 * -----------------------------------------------------------------------------
57 */
Sanjeev Premi8fd25692011-10-25 06:11:31 +000058
59#define CONFIG_EXTRA_ENV_SETTINGS \
60 "verify=no\0" \
61 "silent=1"
62
63#define CONFIG_BOOTCOMMAND \
64 "mmc rescan 0; " \
65 "fatload mmc 0 0x82000000 uImage; " \
66 "bootm 0x82000000;"
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/mmcblk0p2 rw " \
77 "rootfstype=ext3 rootwait"
78
Tom Rini988a2352011-11-18 12:48:09 +000079/*
80 * SPL
81 */
82#define CONFIG_SPL_MMC_SUPPORT
83#define CONFIG_SPL_FAT_SUPPORT
84#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x300 /* address 0x60000 */
85#define CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS 0x200 /* 256 KB */
Paul Kocialkowski341e8cd2014-11-08 23:14:55 +010086#define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION 1
Guillaume GARDET602a16c2014-10-15 17:53:11 +020087#define CONFIG_SPL_FS_LOAD_PAYLOAD_NAME "u-boot.img"
Tom Rini988a2352011-11-18 12:48:09 +000088
Sanjeev Premi8fd25692011-10-25 06:11:31 +000089#endif /* __OMAP3_EVM_QUICK_MMC_H */