blob: 182066d4d4d2981d7527816c7ea6e1cdbcbce357 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Raphael Assenataa009062012-10-22 05:23:46 +00002/*
3 * Copyright (C) 2012 8D Technologies inc.
4 * Based on mt_ventoux.h, original banner below:
5 *
6 * Copyright (C) 2011
7 * Stefano Babic, DENX Software Engineering, sbabic@denx.de.
8 *
9 * Copyright (C) 2009 TechNexion Ltd.
Raphael Assenataa009062012-10-22 05:23:46 +000010 */
11
12#ifndef __CONFIG_H
13#define __CONFIG_H
14
15#include "tam3517-common.h"
16
Raphael Assenataa009062012-10-22 05:23:46 +000017/* Our console port is port3 */
Raphael Assenataa009062012-10-22 05:23:46 +000018#undef CONFIG_SYS_NS16550_COM1
19#undef CONFIG_SERIAL1
20
Raphael Assenataa009062012-10-22 05:23:46 +000021#define CONFIG_SYS_NS16550_COM3 OMAP34XX_UART3
22#define CONFIG_SERIAL3
23
Raphael Assenataa009062012-10-22 05:23:46 +000024#define CONFIG_MACH_TYPE MACH_TYPE_ECO5_PK
25
Raphael Assenataa009062012-10-22 05:23:46 +000026#define CONFIG_BOOTFILE "uImage"
Raphael Assenataa009062012-10-22 05:23:46 +000027
Mario Six790d8442018-03-28 14:38:20 +020028#define CONFIG_HOSTNAME "eco5pk"
29
Raphael Assenataa009062012-10-22 05:23:46 +000030/*
Raphael Assenataa009062012-10-22 05:23:46 +000031 * Set its own mtdparts, different from common
32 */
Raphael Assenataa009062012-10-22 05:23:46 +000033
34/*
35 * The arithmetic in tam3517.h is wrong for us and the kernel gets overwritten.
36 */
37#undef CONFIG_ENV_OFFSET_REDUND
38#define CONFIG_ENV_OFFSET_REDUND (CONFIG_ENV_OFFSET + \
39 CONFIG_SYS_ENV_SECT_SIZE)
40
41#define CONFIG_EXTRA_ENV_SETTINGS CONFIG_TAM3517_SETTINGS \
42 "install_kernel=if dhcp $bootfile; then nand erase kernel;" \
43 "nand write $fileaddr kernel; fi\0" \
Tom Rini5ad8e112017-10-22 17:55:07 -040044 "mtdparts="CONFIG_MTDPARTS_DEFAULT"\0" \
Raphael Assenataa009062012-10-22 05:23:46 +000045 "serverip=192.168.142.60\0"
46
Raphael Assenataa009062012-10-22 05:23:46 +000047#endif /* __CONFIG_H */