summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2012-05-07 12:04:25 +0200
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2012-07-07 14:07:42 +0200
commitef76025a99247cdb8f927a2c9f15400678dfb599 (patch)
tree6c1acdff394e51528b6f8456d94b7b9abede5d08 /include
parent9b382b43a1db000a78822ad9e1814577dd2e1a19 (diff)
downloadu-boot-imx-ef76025a99247cdb8f927a2c9f15400678dfb599.zip
u-boot-imx-ef76025a99247cdb8f927a2c9f15400678dfb599.tar.gz
u-boot-imx-ef76025a99247cdb8f927a2c9f15400678dfb599.tar.bz2
net: Multiple updates/enhancements to designware.c
This patch adds the following changes to designware ethernet driver found on the ST SPEAr SoC: - Don't init MAC & PHY upon startup. This causes a delay, waiting for the auto negotiation to complete. And we don't want this delay to always happen. Especially not on platforms where ethernet is not used at all (e.g. booting via flash). Instead postpone the MAC / PHY configuration to the stage, where ethernet is first used. - Add possibility for board specific PHY init code. This is needed for example on the X600 board, where the Vitesse PHY needs to be configured for GMII mode. This board specific PHY init is done via the function designware_board_phy_init(). And this driver now adds a weak default which can be overridden by board code. - Use common functions miiphy_speed() & miiphy_duplex() to read link status from PHY. - Print status and progress of auto negotiation. - Print link status (speed, dupex) upon first usage. Signed-off-by: Stefan Roese <sr@denx.de> Cc: Amit Virdi <amit.virdi@st.com> Cc: Vipin Kumar <vipin.kumar@st.com> Cc: Joe Hershberger <joe.hershberger@gmail.com> Acked-by: Joe Hershberger <joe.hershberger@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/configs/spear-common.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/configs/spear-common.h b/include/configs/spear-common.h
index 36c2a8b..a6d1cfb 100644
--- a/include/configs/spear-common.h
+++ b/include/configs/spear-common.h
@@ -38,6 +38,7 @@
#define CONFIG_NET_MULTI
#define CONFIG_PHY_RESET_DELAY 10000 /* in usec */
#define CONFIG_DW_AUTONEG
+#define CONFIG_PHY_GIGE /* Include GbE speed/duplex detection */
/* USBD driver configuration */
#if defined(CONFIG_SPEAR_USBTTY)