blob: 3d7a168bc4ee9627916384798aebf60801a1c52f [file] [log] [blame]
Raphael Assenat843a7ee2012-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 Denk1a459662013-07-08 09:37:19 +020010 * SPDX-License-Identifier: GPL-2.0+
Raphael Assenat843a7ee2012-10-22 05:23:46 +000011 */
12
13#ifndef __CONFIG_H
14#define __CONFIG_H
15
16#include "tam3517-common.h"
17
Raphael Assenat843a7ee2012-10-22 05:23:46 +000018#undef CONFIG_USB_OMAP3
Raphael Assenat843a7ee2012-10-22 05:23:46 +000019
20/* Our console port is port3 */
21#undef CONFIG_CONS_INDEX
22#undef CONFIG_SYS_NS16550_COM1
23#undef CONFIG_SERIAL1
24
25#define CONFIG_CONS_INDEX 3
26#define CONFIG_SYS_NS16550_COM3 OMAP34XX_UART3
27#define CONFIG_SERIAL3
28
Raphael Assenat843a7ee2012-10-22 05:23:46 +000029#define CONFIG_MACH_TYPE MACH_TYPE_ECO5_PK
30
Raphael Assenat843a7ee2012-10-22 05:23:46 +000031#define CONFIG_BOOTFILE "uImage"
32#define CONFIG_AUTO_COMPLETE
33
34/*
Raphael Assenat843a7ee2012-10-22 05:23:46 +000035 * Set its own mtdparts, different from common
36 */
37#undef MTDIDS_DEFAULT
38#undef MTDPARTS_DEFAULT
39#define MTDIDS_DEFAULT "nand0=omap2-nand.0"
40#define MTDPARTS_DEFAULT "mtdparts=omap2-nand.0:512k(xloader-nand)," \
41 "1024k(uboot-nand),256k(params-nand)," \
42 "5120k(kernel),-(ubifs)"
43
44/*
45 * The arithmetic in tam3517.h is wrong for us and the kernel gets overwritten.
46 */
47#undef CONFIG_ENV_OFFSET_REDUND
48#define CONFIG_ENV_OFFSET_REDUND (CONFIG_ENV_OFFSET + \
49 CONFIG_SYS_ENV_SECT_SIZE)
50
51#define CONFIG_EXTRA_ENV_SETTINGS CONFIG_TAM3517_SETTINGS \
52 "install_kernel=if dhcp $bootfile; then nand erase kernel;" \
53 "nand write $fileaddr kernel; fi\0" \
54 "mtdparts="MTDPARTS_DEFAULT"\0" \
55 "serverip=192.168.142.60\0"
56
Raphael Assenat843a7ee2012-10-22 05:23:46 +000057#endif /* __CONFIG_H */