summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Longchamp <valentin.longchamp@keymile.com>2011-05-31 02:12:51 +0000
committerU-Boot <uboot@lilith.(none)>2011-05-31 19:46:14 +0200
commitd3920144e132eb7f30d40d4a5ad13ae85d2e2818 (patch)
tree1267e89caa5fc7012c52a5e2ac33d55be9fa86b1
parent68d6963c44bdc7a0a073785fa6ead37464b63ca0 (diff)
downloadu-boot-imx-d3920144e132eb7f30d40d4a5ad13ae85d2e2818.zip
u-boot-imx-d3920144e132eb7f30d40d4a5ad13ae85d2e2818.tar.gz
u-boot-imx-d3920144e132eb7f30d40d4a5ad13ae85d2e2818.tar.bz2
mvgbe: enable configurability of PORT_SERIAL_CONTROL_VALUE
This allows this configuration to be defined differently for some boards that request it. Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com> cc: Holger Brunck <holger.brunck@keymile.com> cc: Heiko Schocher <hs@denx.de> cc: Wolfgang Denk <wd@denx.de> cc: Detlev Zundel <dzu@denx.de> cc: Prafulla Wadaskar <prafulla@marvell.com>
-rw-r--r--drivers/net/mvgbe.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/mvgbe.h b/drivers/net/mvgbe.h
index 3de98d0..d8a5429 100644
--- a/drivers/net/mvgbe.h
+++ b/drivers/net/mvgbe.h
@@ -84,6 +84,7 @@
MVGBE_TX_BURST_SIZE_16_64BIT)
/* Default port serial control value */
+#ifndef PORT_SERIAL_CONTROL_VALUE
#define PORT_SERIAL_CONTROL_VALUE ( \
MVGBE_FORCE_LINK_PASS | \
MVGBE_DIS_AUTO_NEG_FOR_DUPLX | \
@@ -101,6 +102,7 @@
MVGBE_CLR_EXT_LOOPBACK | \
MVGBE_SET_FULL_DUPLEX_MODE | \
MVGBE_DIS_FLOW_CTRL_TX_RX_IN_FULL_DUPLEX)
+#endif
/* Tx WRR confoguration macros */
#define PORT_MAX_TRAN_UNIT 0x24 /* MTU register (default) 9KByte */