1
2
3
4
5
6
7
8
9#ifndef __CONFIG_H
10#define __CONFIG_H
11
12
13
14#include <configs/ti_omap3_common.h>
15
16#define CONFIG_REVISION_TAG 1
17
18#define CONFIG_SYS_DEVICE_NULLDEV 1
19
20
21
22
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
27
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}; " \
33 "fi; " \
34 "ubi part boot && ubifsmount ubi:boot && " \
35 "ubifsload ${loadaddr} uImage && bootm ${loadaddr}"
36
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" \
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" \
48 BOOTENV \
49
50
51#define CONFIG_SYS_MEMTEST_START (OMAP34XX_SDRC_CS0)
52#define CONFIG_SYS_MEMTEST_END (OMAP34XX_SDRC_CS0 + \
53 0x01F00000)
54
55#if defined(CONFIG_MTD_RAW_NAND)
56#define CONFIG_SYS_FLASH_BASE NAND_BASE
57#endif
58
59
60#define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_FLASH_BASE
61
62
63#define CONFIG_SYS_ENV_SECT_SIZE (128 << 10)
64
65#endif
66