blob: 03cc74c596627083d8fa13462848510ed1608704 [file] [log] [blame]
Raphael Assenataa009062012-10-22 05:23:46 +00001/*
2 * Copyright (C) 2012 8D Technologies inc.
3 * Based on mt_ventoux.h, original banner below:
4 *
5 * Copyright (C) 2011
6 * Stefano Babic, DENX Software Engineering, sbabic@denx.de.
7 *
8 * Copyright (C) 2009 TechNexion Ltd.
9 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +020010 * SPDX-License-Identifier: GPL-2.0+
Raphael Assenataa009062012-10-22 05:23:46 +000011 */
12
13#ifndef __CONFIG_H
14#define __CONFIG_H
15
16#include "tam3517-common.h"
17
18#undef CONFIG_USB_EHCI
19#undef CONFIG_USB_EHCI_OMAP
20#undef CONFIG_USB_OMAP3
Raphael Assenataa009062012-10-22 05:23:46 +000021
22/* Our console port is port3 */
23#undef CONFIG_CONS_INDEX
24#undef CONFIG_SYS_NS16550_COM1
25#undef CONFIG_SERIAL1
26
27#define CONFIG_CONS_INDEX 3
28#define CONFIG_SYS_NS16550_COM3 OMAP34XX_UART3
29#define CONFIG_SERIAL3
30
Raphael Assenataa009062012-10-22 05:23:46 +000031#define CONFIG_MACH_TYPE MACH_TYPE_ECO5_PK
32
Raphael Assenataa009062012-10-22 05:23:46 +000033#define CONFIG_BOOTFILE "uImage"
34#define CONFIG_AUTO_COMPLETE
35
36/*
Raphael Assenataa009062012-10-22 05:23:46 +000037 * Set its own mtdparts, different from common
38 */
39#undef MTDIDS_DEFAULT
40#undef MTDPARTS_DEFAULT
41#define MTDIDS_DEFAULT "nand0=omap2-nand.0"
42#define MTDPARTS_DEFAULT "mtdparts=omap2-nand.0:512k(xloader-nand)," \
43 "1024k(uboot-nand),256k(params-nand)," \
44 "5120k(kernel),-(ubifs)"
45
46/*
47 * The arithmetic in tam3517.h is wrong for us and the kernel gets overwritten.
48 */
49#undef CONFIG_ENV_OFFSET_REDUND
50#define CONFIG_ENV_OFFSET_REDUND (CONFIG_ENV_OFFSET + \
51 CONFIG_SYS_ENV_SECT_SIZE)
52
53#define CONFIG_EXTRA_ENV_SETTINGS CONFIG_TAM3517_SETTINGS \
54 "install_kernel=if dhcp $bootfile; then nand erase kernel;" \
55 "nand write $fileaddr kernel; fi\0" \
56 "mtdparts="MTDPARTS_DEFAULT"\0" \
57 "serverip=192.168.142.60\0"
58
Raphael Assenataa009062012-10-22 05:23:46 +000059#endif /* __CONFIG_H */