]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - include/configs/suen8.h
b680dfbe74150fa37b1888165698a9062b65a8eb
[karo-tx-uboot.git] / include / configs / suen8.h
1 /*
2  * (C) Copyright 2009
3  * Marvell Semiconductor <www.marvell.com>
4  * Prafulla Wadaskar <prafulla@marvell.com>
5  *
6  * (C) Copyright 2009
7  * Stefan Roese, DENX Software Engineering, sr@denx.de.
8  *
9  * (C) Copyright 2010-2011
10  * Holger Brunck, Keymile GmbH Hannover, holger.brunck@keymile.com.
11  *
12  * See file CREDITS for list of people who contributed to this
13  * project.
14  *
15  * This program is free software; you can redistribute it and/or
16  * modify it under the terms of the GNU General Public License as
17  * published by the Free Software Foundation; either version 2 of
18  * the License, or (at your option) any later version.
19  *
20  * This program is distributed in the hope that it will be useful,
21  * but WITHOUT ANY WARRANTY; without even the implied warranty of
22  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23  * GNU General Public License for more details.
24  *
25  * You should have received a copy of the GNU General Public License
26  * along with this program; if not, write to the Free Software
27  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
28  * MA 02110-1301 USA
29  */
30
31 /* for linking errors see
32  * http://lists.denx.de/pipermail/u-boot/2009-July/057350.html */
33
34 #ifndef _CONFIG_SUEN8_H
35 #define _CONFIG_SUEN8_H
36
37 /* include common defines/options for all arm based Keymile boards */
38 #include "km/km_arm.h"
39
40 /*
41  * Version number information
42  */
43 #define CONFIG_IDENT_STRING     "\nKeymile SUEN8"
44
45 #define CONFIG_HOSTNAME                 suen8
46
47 #define KM_IVM_BUS      "pca9544a:70:9" /* I2C2 (Mux-Port 1)*/
48 #define KM_ENV_BUS      "pca9544a:70:d" /* I2C2 (Mux-Port 5)*/
49
50 /*
51  * Default environment variables
52  */
53 #define CONFIG_EXTRA_ENV_SETTINGS                                       \
54         CONFIG_KM_DEF_ENV                                               \
55         "newenv=setenv addr 0x100000 && "                               \
56                 "i2c dev 1; mw.b ${addr} 0 4 && "                       \
57                 "eeprom write " xstr(CONFIG_SYS_DEF_EEPROM_ADDR)        \
58                 " ${addr} " xstr(CONFIG_ENV_OFFSET) " 4 && "            \
59                 "eeprom write " xstr(CONFIG_SYS_DEF_EEPROM_ADDR)        \
60                 " ${addr} " xstr(CONFIG_ENV_OFFSET_REDUND) " 4\0"       \
61         "rootpath=/opt/eldk/arm\0"                                      \
62         "EEprom_ivm=" KM_IVM_BUS "\0"                                   \
63         ""
64
65 #endif /* _CONFIG_SUEN8_H */