blob: 6d56d7d08751466b83a50bab2851ea4a3f456478 [file] [log] [blame]
Heiko Schocher8dd6ab72011-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
Valentin Longchamp6453c9f2011-05-31 02:12:50 +000034#ifndef _CONFIG_MGCOGE3UN_H
35#define _CONFIG_MGCOGE3UN_H
Heiko Schocher8dd6ab72011-02-22 08:30:46 +010036
37/* include common defines/options for all arm based Keymile boards */
Valentin Longchamp2f968d82011-05-04 01:47:33 +000038#include "km/km_arm.h"
Heiko Schocher8dd6ab72011-02-22 08:30:46 +010039
40/*
41 * Version number information
42 */
Valentin Longchamp6453c9f2011-05-31 02:12:50 +000043#define CONFIG_IDENT_STRING "\nKeymile MGCOGE3UN"
44#define CONFIG_HOSTNAME mgcoge3un
45#define CONFIG_MGCOGE3UN
Heiko Schocher8dd6ab72011-02-22 08:30:46 +010046
Heiko Schochere4533af2011-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
Valentin Longchamp6453c9f2011-05-31 02:12:50 +000050/* we use a new RAM type on mgcoge3un board */
51#define CONFIG_SYS_KWD_CONFIG $(SRCTREE)/$(CONFIG_BOARDDIR)/kwbimage-memphis.cfg
52
Holger Brunck4de3cdd2011-05-31 02:12:52 +000053/*
54 * mgcoge3un has a fixed link to the marvell switch
55 * with 100MB full duplex and autoneg off, for this
56 * reason we have to change the default settings
57 */
58#define PORT_SERIAL_CONTROL_VALUE ( \
59 MVGBE_FORCE_LINK_PASS | \
60 MVGBE_DIS_AUTO_NEG_FOR_DUPLX | \
61 MVGBE_DIS_AUTO_NEG_FOR_FLOW_CTRL | \
62 MVGBE_ADV_NO_FLOW_CTRL | \
63 MVGBE_FORCE_FC_MODE_NO_PAUSE_DIS_TX | \
64 MVGBE_FORCE_BP_MODE_NO_JAM | \
65 (1 << 9) /* Reserved bit has to be 1 */ | \
66 MVGBE_DO_NOT_FORCE_LINK_FAIL | \
67 MVGBE_DIS_AUTO_NEG_SPEED_GMII | \
68 MVGBE_DTE_ADV_0 | \
69 MVGBE_MIIPHY_MAC_MODE | \
70 MVGBE_AUTO_NEG_NO_CHANGE | \
71 MVGBE_MAX_RX_PACKET_1552BYTE | \
72 MVGBE_CLR_EXT_LOOPBACK | \
73 MVGBE_SET_FULL_DUPLEX_MODE | \
74 MVGBE_DIS_FLOW_CTRL_TX_RX_IN_FULL_DUPLEX |\
75 MVGBE_SET_GMII_SPEED_TO_10_100 |\
76 MVGBE_SET_MII_SPEED_TO_100)
77
Valentin Longchamp6453c9f2011-05-31 02:12:50 +000078#endif /* _CONFIG_MGCOGE3UN_H */