1843a7ee8SRaphael Assenat /* 2843a7ee8SRaphael Assenat * Copyright (C) 2012 8D Technologies inc. 3843a7ee8SRaphael Assenat * Based on mt_ventoux.h, original banner below: 4843a7ee8SRaphael Assenat * 5843a7ee8SRaphael Assenat * Copyright (C) 2011 6843a7ee8SRaphael Assenat * Stefano Babic, DENX Software Engineering, sbabic@denx.de. 7843a7ee8SRaphael Assenat * 8843a7ee8SRaphael Assenat * Copyright (C) 2009 TechNexion Ltd. 9843a7ee8SRaphael Assenat * 10*1a459660SWolfgang Denk * SPDX-License-Identifier: GPL-2.0+ 11843a7ee8SRaphael Assenat */ 12843a7ee8SRaphael Assenat 13843a7ee8SRaphael Assenat #ifndef __CONFIG_H 14843a7ee8SRaphael Assenat #define __CONFIG_H 15843a7ee8SRaphael Assenat 16843a7ee8SRaphael Assenat #include "tam3517-common.h" 17843a7ee8SRaphael Assenat 18843a7ee8SRaphael Assenat #undef CONFIG_USB_OMAP3 19843a7ee8SRaphael Assenat 20843a7ee8SRaphael Assenat /* Our console port is port3 */ 21843a7ee8SRaphael Assenat #undef CONFIG_CONS_INDEX 22843a7ee8SRaphael Assenat #undef CONFIG_SYS_NS16550_COM1 23843a7ee8SRaphael Assenat #undef CONFIG_SERIAL1 24843a7ee8SRaphael Assenat 25843a7ee8SRaphael Assenat #define CONFIG_CONS_INDEX 3 26843a7ee8SRaphael Assenat #define CONFIG_SYS_NS16550_COM3 OMAP34XX_UART3 27843a7ee8SRaphael Assenat #define CONFIG_SERIAL3 28843a7ee8SRaphael Assenat 29843a7ee8SRaphael Assenat #define CONFIG_MACH_TYPE MACH_TYPE_ECO5_PK 30843a7ee8SRaphael Assenat 31843a7ee8SRaphael Assenat #define CONFIG_BOOTFILE "uImage" 32843a7ee8SRaphael Assenat #define CONFIG_AUTO_COMPLETE 33843a7ee8SRaphael Assenat 34843a7ee8SRaphael Assenat /* 35843a7ee8SRaphael Assenat * Set its own mtdparts, different from common 36843a7ee8SRaphael Assenat */ 37843a7ee8SRaphael Assenat #undef MTDIDS_DEFAULT 38843a7ee8SRaphael Assenat #undef MTDPARTS_DEFAULT 39843a7ee8SRaphael Assenat #define MTDIDS_DEFAULT "nand0=omap2-nand.0" 40843a7ee8SRaphael Assenat #define MTDPARTS_DEFAULT "mtdparts=omap2-nand.0:512k(xloader-nand)," \ 41843a7ee8SRaphael Assenat "1024k(uboot-nand),256k(params-nand)," \ 42843a7ee8SRaphael Assenat "5120k(kernel),-(ubifs)" 43843a7ee8SRaphael Assenat 44843a7ee8SRaphael Assenat /* 45843a7ee8SRaphael Assenat * The arithmetic in tam3517.h is wrong for us and the kernel gets overwritten. 46843a7ee8SRaphael Assenat */ 47843a7ee8SRaphael Assenat #undef CONFIG_ENV_OFFSET_REDUND 48843a7ee8SRaphael Assenat #define CONFIG_ENV_OFFSET_REDUND (CONFIG_ENV_OFFSET + \ 49843a7ee8SRaphael Assenat CONFIG_SYS_ENV_SECT_SIZE) 50843a7ee8SRaphael Assenat 51843a7ee8SRaphael Assenat #define CONFIG_EXTRA_ENV_SETTINGS CONFIG_TAM3517_SETTINGS \ 52843a7ee8SRaphael Assenat "install_kernel=if dhcp $bootfile; then nand erase kernel;" \ 53843a7ee8SRaphael Assenat "nand write $fileaddr kernel; fi\0" \ 54843a7ee8SRaphael Assenat "mtdparts="MTDPARTS_DEFAULT"\0" \ 55843a7ee8SRaphael Assenat "serverip=192.168.142.60\0" 56843a7ee8SRaphael Assenat 57843a7ee8SRaphael Assenat #endif /* __CONFIG_H */ 58