]> git.ipfire.org Git - people/ms/u-boot.git/blob - include/configs/mgcoge3un.h
mpc5200: digsy_mtc: add support for writing 'appreg' value
[people/ms/u-boot.git] / include / configs / mgcoge3un.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_MGCOGE3UN_H
35 #define _CONFIG_MGCOGE3UN_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 MGCOGE3UN"
44 #define CONFIG_HOSTNAME mgcoge3un
45 #define CONFIG_MGCOGE3UN
46
47 #define KM_IVM_BUS "pca9547:70:9" /* I2C2 (Mux-Port 1)*/
48 #define KM_ENV_BUS "pca9547:70:d" /* I2C2 (Mux-Port 5)*/
49
50 /* we use a new RAM type on mgcoge3un board */
51 #undef CONFIG_SYS_KWD_CONFIG
52 #define CONFIG_SYS_KWD_CONFIG $(SRCTREE)/$(CONFIG_BOARDDIR)/kwbimage-memphis.cfg
53
54 /*
55 * mgcoge3un has a fixed link to the marvell switch
56 * with 100MB full duplex and autoneg off, for this
57 * reason we have to change the default settings
58 */
59 #define PORT_SERIAL_CONTROL_VALUE ( \
60 MVGBE_FORCE_LINK_PASS | \
61 MVGBE_DIS_AUTO_NEG_FOR_DUPLX | \
62 MVGBE_DIS_AUTO_NEG_FOR_FLOW_CTRL | \
63 MVGBE_ADV_NO_FLOW_CTRL | \
64 MVGBE_FORCE_FC_MODE_NO_PAUSE_DIS_TX | \
65 MVGBE_FORCE_BP_MODE_NO_JAM | \
66 (1 << 9) /* Reserved bit has to be 1 */ | \
67 MVGBE_DO_NOT_FORCE_LINK_FAIL | \
68 MVGBE_DIS_AUTO_NEG_SPEED_GMII | \
69 MVGBE_DTE_ADV_0 | \
70 MVGBE_MIIPHY_MAC_MODE | \
71 MVGBE_AUTO_NEG_NO_CHANGE | \
72 MVGBE_MAX_RX_PACKET_1552BYTE | \
73 MVGBE_CLR_EXT_LOOPBACK | \
74 MVGBE_SET_FULL_DUPLEX_MODE | \
75 MVGBE_DIS_FLOW_CTRL_TX_RX_IN_FULL_DUPLEX |\
76 MVGBE_SET_GMII_SPEED_TO_10_100 |\
77 MVGBE_SET_MII_SPEED_TO_100)
78
79 /*
80 * PCIe port not used on mgcoge3un
81 */
82 #undef CONFIG_KIRKWOOD_PCIE_INIT
83
84 #endif /* _CONFIG_MGCOGE3UN_H */