blob: 1185f425501f8b5e6b39b03341be104df1345fde [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>
16#include <asm/arch/omap3.h>
17
18/* ----------------------------------------------------------------------------
19 * Supported U-boot commands
20 * ----------------------------------------------------------------------------
21 */
22#define CONFIG_CMD_MMC
23#define CONFIG_CMD_FAT
24
25/*
26 * Board revision is detected by probing the Ethernet chip.
27 *
28 * When revision is statically configured via CONFIG_STATIC_BOARD_REV,
29 * this option can be removed. Generated binary is leaner by ~16Kbytes.
30 */
31#define CONFIG_CMD_NET
32
33/* ----------------------------------------------------------------------------
34 * Supported U-boot features
35 * ----------------------------------------------------------------------------
36 */
37#define CONFIG_SILENT_CONSOLE
38#define CONFIG_ENV_IS_NOWHERE
39
40/* ----------------------------------------------------------------------------
41 * Supported hardware
42 * ----------------------------------------------------------------------------
43 */
44
45/* MMC */
46#define CONFIG_MMC
47#define CONFIG_GENERIC_MMC
48#define CONFIG_OMAP_HSMMC
49#define CONFIG_DOS_PARTITION
50
51/* -----------------------------------------------------------------------------
52 * Include common board configuration
53 * -----------------------------------------------------------------------------
54 */
55#include "omap3_evm_common.h"
56
57/* -----------------------------------------------------------------------------
58 * Default environment
59 * -----------------------------------------------------------------------------
60 */
61#define CONFIG_BOOTDELAY 0
62
63#define CONFIG_EXTRA_ENV_SETTINGS \
64 "verify=no\0" \
65 "silent=1"
66
67#define CONFIG_BOOTCOMMAND \
68 "mmc rescan 0; " \
69 "fatload mmc 0 0x82000000 uImage; " \
70 "bootm 0x82000000;"
71
72/*
73 * Update the bootargs as necessary e.g. size of memory, partition and fstype
74 */
75#define CONFIG_BOOTARGS \
76 "quiet " \
77 "console=ttyO0,115200n8 " \
78 "mem=128M " \
79 "noinitrd " \
80 "root=/dev/mmcblk0p2 rw " \
81 "rootfstype=ext3 rootwait"
82
Tom Rini988a2352011-11-18 12:48:09 +000083/*
84 * SPL
85 */
86#define CONFIG_SPL_MMC_SUPPORT
87#define CONFIG_SPL_FAT_SUPPORT
88#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x300 /* address 0x60000 */
89#define CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS 0x200 /* 256 KB */
Paul Kocialkowski341e8cd2014-11-08 23:14:55 +010090#define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION 1
Guillaume GARDET602a16c2014-10-15 17:53:11 +020091#define CONFIG_SPL_FS_LOAD_PAYLOAD_NAME "u-boot.img"
Tom Rini988a2352011-11-18 12:48:09 +000092
Sanjeev Premi8fd25692011-10-25 06:11:31 +000093#endif /* __OMAP3_EVM_QUICK_MMC_H */