blob: 62560350db30bd50bb60cef6d542d237eca10180 [file] [log] [blame]
Heiko Schocher331a30d2011-02-22 08:30:46 +01001/*
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_MGCOGE2UN_H
35#define _CONFIG_MGCOGE2UN_H
36
37/* include common defines/options for all arm based Keymile boards */
Valentin Longchamp264eaa02011-05-04 01:47:33 +000038#include "km/km_arm.h"
Heiko Schocher331a30d2011-02-22 08:30:46 +010039
40/*
41 * Version number information
42 */
43#define CONFIG_IDENT_STRING "\nKeymile MGCOGE2UN"
44
45#define CONFIG_HOSTNAME mgcoge2un
46
Heiko Schocher731b9682011-03-08 10:53:51 +010047#define KM_IVM_BUS "pca9547:70:9" /* I2C2 (Mux-Port 1)*/
48#define KM_ENV_BUS "pca9547:70:d" /* I2C2 (Mux-Port 5)*/
49
Heiko Schocher331a30d2011-02-22 08:30:46 +010050/*
51 * Default environment variables
52 */
53#define CONFIG_EXTRA_ENV_SETTINGS \
54 CONFIG_KM_DEF_ENV \
Heiko Schocher331a30d2011-02-22 08:30:46 +010055 "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" \
Heiko Schocher731b9682011-03-08 10:53:51 +010062 "EEprom_ivm=" KM_IVM_BUS "\0" \
Heiko Schocher331a30d2011-02-22 08:30:46 +010063 ""
64
65#endif /* _CONFIG_MGCOGE2UN_H */