1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * (C) Copyright 2008-2010
4 * GraÅžvydas Ignotas <notasas@gmail.com>
6 * Configuration settings for the OMAP3 Pandora.
12 /* override base for compatibility with MLO the device ships with */
14 #include <configs/ti_omap3_common.h>
16 #define CONFIG_REVISION_TAG 1
18 #define CONFIG_SYS_DEVICE_NULLDEV 1
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
28 #define CONFIG_BOOTCOMMAND \
29 "run distro_bootcmd; " \
30 "setenv bootargs ${bootargs_ubi}; " \
31 "if mmc rescan && load mmc 0:1 ${loadaddr} autoboot.scr; then " \
32 "source ${loadaddr}; " \
34 "ubi part boot && ubifsmount ubi:boot && " \
35 "ubifsload ${loadaddr} uImage && bootm ${loadaddr}"
37 #define BOOT_TARGET_DEVICES(func) \
40 #include <config_distro_bootcmd.h>
42 #define CONFIG_EXTRA_ENV_SETTINGS \
43 DEFAULT_LINUX_BOOT_ENV \
45 "bootargs_ubi=ubi.mtd=4 ubi.mtd=3 root=ubi0:rootfs rootfstype=ubifs " \
46 "rw rootflags=bulk_read vram=6272K omapfb.vram=0:3000K\0" \
47 "mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0" \
50 /* memtest works on */
52 #if defined(CONFIG_MTD_RAW_NAND)
53 #define CONFIG_SYS_FLASH_BASE NAND_BASE
56 /* Monitor at start of flash */
57 #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_FLASH_BASE
60 #define CONFIG_SYS_ENV_SECT_SIZE (128 << 10) /* 128 KiB */
62 #endif /* __CONFIG_H */