2018-05-06 21:58:06 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
2009-01-28 20:39:58 +00:00
|
|
|
/*
|
2010-11-19 16:25:36 +00:00
|
|
|
* (C) Copyright 2008-2010
|
|
|
|
* Gražvydas Ignotas <notasas@gmail.com>
|
2009-01-28 20:39:58 +00:00
|
|
|
*
|
|
|
|
* Configuration settings for the OMAP3 Pandora.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __CONFIG_H
|
|
|
|
#define __CONFIG_H
|
|
|
|
|
2015-04-08 23:14:33 +00:00
|
|
|
/* override base for compatibility with MLO the device ships with */
|
2010-06-07 19:20:34 +00:00
|
|
|
|
2015-04-08 23:14:33 +00:00
|
|
|
#include <configs/ti_omap3_common.h>
|
2009-01-28 20:39:58 +00:00
|
|
|
|
|
|
|
#define CONFIG_REVISION_TAG 1
|
|
|
|
|
2015-04-08 23:14:33 +00:00
|
|
|
#define CONFIG_SYS_DEVICE_NULLDEV 1
|
2009-01-28 20:39:58 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Board NAND Info.
|
|
|
|
*/
|
2015-04-08 23:14:33 +00:00
|
|
|
#define CONFIG_NAND_OMAP_ECCSCHEME OMAP_ECC_HAM1_CODE_SW
|
|
|
|
#define CONFIG_SYS_NAND_PAGE_SIZE 2048
|
|
|
|
#define CONFIG_SYS_NAND_OOBSIZE 64
|
|
|
|
|
2009-01-28 20:39:58 +00:00
|
|
|
|
|
|
|
#define CONFIG_BOOTCOMMAND \
|
2016-08-30 20:16:31 +00:00
|
|
|
"run distro_bootcmd; " \
|
2016-08-30 20:16:32 +00:00
|
|
|
"setenv bootargs ${bootargs_ubi}; " \
|
2016-08-29 07:56:06 +00:00
|
|
|
"if mmc rescan && load mmc 0:1 ${loadaddr} autoboot.scr; then " \
|
2010-11-19 16:25:36 +00:00
|
|
|
"source ${loadaddr}; " \
|
|
|
|
"fi; " \
|
2012-11-01 16:54:18 +00:00
|
|
|
"ubi part boot && ubifsmount ubi:boot && " \
|
|
|
|
"ubifsload ${loadaddr} uImage && bootm ${loadaddr}"
|
2009-01-28 20:39:58 +00:00
|
|
|
|
2016-08-30 20:16:31 +00:00
|
|
|
#define BOOT_TARGET_DEVICES(func) \
|
|
|
|
func(MMC, mmc, 0) \
|
|
|
|
|
|
|
|
#include <config_distro_bootcmd.h>
|
|
|
|
|
|
|
|
#define CONFIG_EXTRA_ENV_SETTINGS \
|
|
|
|
DEFAULT_LINUX_BOOT_ENV \
|
|
|
|
"usbtty=cdc_acm\0" \
|
2016-08-30 20:16:32 +00:00
|
|
|
"bootargs_ubi=ubi.mtd=4 ubi.mtd=3 root=ubi0:rootfs rootfstype=ubifs " \
|
2016-08-30 20:16:31 +00:00
|
|
|
"rw rootflags=bulk_read vram=6272K omapfb.vram=0:3000K\0" \
|
2017-10-22 21:55:07 +00:00
|
|
|
"mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0" \
|
2016-08-30 20:16:31 +00:00
|
|
|
BOOTENV \
|
|
|
|
|
2009-01-28 20:39:58 +00:00
|
|
|
/* memtest works on */
|
|
|
|
#define CONFIG_SYS_MEMTEST_START (OMAP34XX_SDRC_CS0)
|
|
|
|
#define CONFIG_SYS_MEMTEST_END (OMAP34XX_SDRC_CS0 + \
|
|
|
|
0x01F00000) /* 31MB */
|
|
|
|
|
2019-10-03 17:50:03 +00:00
|
|
|
#if defined(CONFIG_MTD_RAW_NAND)
|
2014-07-18 12:29:41 +00:00
|
|
|
#define CONFIG_SYS_FLASH_BASE NAND_BASE
|
2011-04-20 15:02:05 +00:00
|
|
|
#endif
|
2009-01-28 20:39:58 +00:00
|
|
|
|
|
|
|
/* Monitor at start of flash */
|
|
|
|
#define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_FLASH_BASE
|
|
|
|
|
|
|
|
|
2011-04-20 15:02:05 +00:00
|
|
|
#define CONFIG_SYS_ENV_SECT_SIZE (128 << 10) /* 128 KiB */
|
2009-01-28 20:39:58 +00:00
|
|
|
|
|
|
|
#endif /* __CONFIG_H */
|