xref: /openbmc/u-boot/include/configs/eco5pk.h (revision e0a0cbf2)
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  *
10  * This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation; either version 2 of the License, or
13  * (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program; if not, write to the Free Software
22  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23  */
24 
25 #ifndef __CONFIG_H
26 #define __CONFIG_H
27 
28 #include "tam3517-common.h"
29 
30 #undef CONFIG_USB_EHCI
31 #undef CONFIG_USB_EHCI_OMAP
32 #undef CONFIG_USB_OMAP3
33 #undef CONFIG_CMD_USB
34 
35 /* Our console port is port3 */
36 #undef CONFIG_CONS_INDEX
37 #undef CONFIG_SYS_NS16550_COM1
38 #undef CONFIG_SERIAL1
39 
40 #define CONFIG_CONS_INDEX	3
41 #define CONFIG_SYS_NS16550_COM3	OMAP34XX_UART3
42 #define CONFIG_SERIAL3
43 
44 #define MACH_TYPE_ECO5_PK	4017
45 #define CONFIG_MACH_TYPE	MACH_TYPE_ECO5_PK
46 
47 #define CONFIG_BOOTDELAY	10
48 #define CONFIG_BOOTFILE		"uImage"
49 #define CONFIG_AUTO_COMPLETE
50 
51 /*
52  * Miscellaneous configurable options
53  */
54 #define V_PROMPT		"ECO5-PK # "
55 #define CONFIG_SYS_PROMPT	V_PROMPT
56 
57 /*
58  * Set its own mtdparts, different from common
59  */
60 #undef MTDIDS_DEFAULT
61 #undef MTDPARTS_DEFAULT
62 #define MTDIDS_DEFAULT		"nand0=omap2-nand.0"
63 #define MTDPARTS_DEFAULT	"mtdparts=omap2-nand.0:512k(xloader-nand)," \
64 				"1024k(uboot-nand),256k(params-nand)," \
65 				"5120k(kernel),-(ubifs)"
66 
67 /*
68  * The arithmetic in tam3517.h is wrong for us and the kernel gets overwritten.
69  */
70 #undef CONFIG_ENV_OFFSET_REDUND
71 #define CONFIG_ENV_OFFSET_REDUND	(CONFIG_ENV_OFFSET + \
72 						CONFIG_SYS_ENV_SECT_SIZE)
73 
74 #define	CONFIG_EXTRA_ENV_SETTINGS	CONFIG_TAM3517_SETTINGS \
75 	"install_kernel=if dhcp $bootfile; then nand erase kernel;" \
76 				"nand write $fileaddr kernel; fi\0" \
77 	"mtdparts="MTDPARTS_DEFAULT"\0" \
78 	"serverip=192.168.142.60\0"
79 
80 
81 #endif /* __CONFIG_H */
82