]> git.ipfire.org Git - thirdparty/u-boot.git/blame - include/configs/omap3_pandora.h
env: Finish migration of common ENV options
[thirdparty/u-boot.git] / include / configs / omap3_pandora.h
CommitLineData
83d290c5 1/* SPDX-License-Identifier: GPL-2.0+ */
2be2c6cc 2/*
73225245
GI
3 * (C) Copyright 2008-2010
4 * GraÅžvydas Ignotas <notasas@gmail.com>
2be2c6cc
DB
5 *
6 * Configuration settings for the OMAP3 Pandora.
2be2c6cc
DB
7 */
8
9#ifndef __CONFIG_H
10#define __CONFIG_H
2be2c6cc 11
76375454 12/* override base for compatibility with MLO the device ships with */
cae377b5 13
76375454 14#include <configs/ti_omap3_common.h>
2be2c6cc 15
2be2c6cc
DB
16#define CONFIG_REVISION_TAG 1
17
76375454 18#define CONFIG_SYS_DEVICE_NULLDEV 1
2be2c6cc 19
2be2c6cc
DB
20/*
21 * Board NAND Info.
22 */
76375454
GI
23#define CONFIG_NAND_OMAP_ECCSCHEME OMAP_ECC_HAM1_CODE_SW
24#define CONFIG_SYS_NAND_PAGE_SIZE 2048
25#define CONFIG_SYS_NAND_OOBSIZE 64
26
2be2c6cc
DB
27
28#define CONFIG_BOOTCOMMAND \
40abfeec 29 "run distro_bootcmd; " \
db18a24f 30 "setenv bootargs ${bootargs_ubi}; " \
4667c833 31 "if mmc rescan && load mmc 0:1 ${loadaddr} autoboot.scr; then " \
73225245
GI
32 "source ${loadaddr}; " \
33 "fi; " \
949a7710
JH
34 "ubi part boot && ubifsmount ubi:boot && " \
35 "ubifsload ${loadaddr} uImage && bootm ${loadaddr}"
2be2c6cc 36
40abfeec
VC
37#define BOOT_TARGET_DEVICES(func) \
38 func(MMC, mmc, 0) \
39
40#include <config_distro_bootcmd.h>
41
42#define CONFIG_EXTRA_ENV_SETTINGS \
43 DEFAULT_LINUX_BOOT_ENV \
44 "usbtty=cdc_acm\0" \
db18a24f 45 "bootargs_ubi=ubi.mtd=4 ubi.mtd=3 root=ubi0:rootfs rootfstype=ubifs " \
40abfeec 46 "rw rootflags=bulk_read vram=6272K omapfb.vram=0:3000K\0" \
43ede0bc 47 "mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0" \
40abfeec
VC
48 BOOTENV \
49
2be2c6cc
DB
50/* memtest works on */
51#define CONFIG_SYS_MEMTEST_START (OMAP34XX_SDRC_CS0)
52#define CONFIG_SYS_MEMTEST_END (OMAP34XX_SDRC_CS0 + \
53 0x01F00000) /* 31MB */
54
76375454 55#if defined(CONFIG_NAND)
222a3113 56#define CONFIG_SYS_FLASH_BASE NAND_BASE
6cbec7b3 57#endif
2be2c6cc
DB
58
59/* Monitor at start of flash */
60#define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_FLASH_BASE
2be2c6cc 61
2be2c6cc 62
6cbec7b3 63#define CONFIG_SYS_ENV_SECT_SIZE (128 << 10) /* 128 KiB */
2be2c6cc 64
2be2c6cc 65#endif /* __CONFIG_H */