diff options
author | Stefan Roese <sr@denx.de> | 2012-05-07 12:04:25 +0200 |
---|---|---|
committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2012-07-07 14:07:42 +0200 |
commit | ef76025a99247cdb8f927a2c9f15400678dfb599 (patch) | |
tree | 6c1acdff394e51528b6f8456d94b7b9abede5d08 /arch/arm/include/asm/arch-spear | |
parent | 9b382b43a1db000a78822ad9e1814577dd2e1a19 (diff) | |
download | u-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 'arch/arm/include/asm/arch-spear')
0 files changed, 0 insertions, 0 deletions