Raphael Assenat | aa00906 | 2012-10-22 05:23:46 +0000 | [diff] [blame] | 1 | /* |
| 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 Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 10 | * SPDX-License-Identifier: GPL-2.0+ |
Raphael Assenat | aa00906 | 2012-10-22 05:23:46 +0000 | [diff] [blame] | 11 | */ |
| 12 | |
| 13 | #ifndef __CONFIG_H |
| 14 | #define __CONFIG_H |
| 15 | |
| 16 | #include "tam3517-common.h" |
| 17 | |
Raphael Assenat | aa00906 | 2012-10-22 05:23:46 +0000 | [diff] [blame] | 18 | /* Our console port is port3 */ |
| 19 | #undef CONFIG_CONS_INDEX |
| 20 | #undef CONFIG_SYS_NS16550_COM1 |
| 21 | #undef CONFIG_SERIAL1 |
| 22 | |
| 23 | #define CONFIG_CONS_INDEX 3 |
| 24 | #define CONFIG_SYS_NS16550_COM3 OMAP34XX_UART3 |
| 25 | #define CONFIG_SERIAL3 |
| 26 | |
Raphael Assenat | aa00906 | 2012-10-22 05:23:46 +0000 | [diff] [blame] | 27 | #define CONFIG_MACH_TYPE MACH_TYPE_ECO5_PK |
| 28 | |
Raphael Assenat | aa00906 | 2012-10-22 05:23:46 +0000 | [diff] [blame] | 29 | #define CONFIG_BOOTFILE "uImage" |
| 30 | #define CONFIG_AUTO_COMPLETE |
| 31 | |
| 32 | /* |
Raphael Assenat | aa00906 | 2012-10-22 05:23:46 +0000 | [diff] [blame] | 33 | * Set its own mtdparts, different from common |
| 34 | */ |
Raphael Assenat | aa00906 | 2012-10-22 05:23:46 +0000 | [diff] [blame] | 35 | |
| 36 | /* |
| 37 | * The arithmetic in tam3517.h is wrong for us and the kernel gets overwritten. |
| 38 | */ |
| 39 | #undef CONFIG_ENV_OFFSET_REDUND |
| 40 | #define CONFIG_ENV_OFFSET_REDUND (CONFIG_ENV_OFFSET + \ |
| 41 | CONFIG_SYS_ENV_SECT_SIZE) |
| 42 | |
| 43 | #define CONFIG_EXTRA_ENV_SETTINGS CONFIG_TAM3517_SETTINGS \ |
| 44 | "install_kernel=if dhcp $bootfile; then nand erase kernel;" \ |
| 45 | "nand write $fileaddr kernel; fi\0" \ |
Tom Rini | 5ad8e11 | 2017-10-22 17:55:07 -0400 | [diff] [blame] | 46 | "mtdparts="CONFIG_MTDPARTS_DEFAULT"\0" \ |
Raphael Assenat | aa00906 | 2012-10-22 05:23:46 +0000 | [diff] [blame] | 47 | "serverip=192.168.142.60\0" |
| 48 | |
Raphael Assenat | aa00906 | 2012-10-22 05:23:46 +0000 | [diff] [blame] | 49 | #endif /* __CONFIG_H */ |