]> git.dujemihanovic.xyz Git - u-boot.git/commit
net/designware - switch driver to phylib usage
authorAlexey Brodkin <Alexey.Brodkin@synopsys.com>
Wed, 22 Jan 2014 16:54:06 +0000 (20:54 +0400)
committerTom Rini <trini@ti.com>
Fri, 7 Feb 2014 14:16:46 +0000 (09:16 -0500)
commit92a190aaab3536d695c51e0739f925910eb49889
tree2378f0ec78d93359f4de591649bf72821521eec4
parent27ee59af28d0a6d0430947ad3cdda6ef0e7b1189
net/designware - switch driver to phylib usage

With this change driver will benefit from existing phylib and thus
custom phy functionality implemented in the driver will go away:
 * Instantiation of the driver is now much shorter - 2 parameters
instead of 4.
 * Simplified phy management/functoinality in driver is replaced with
rich functionality of phylib.
 * Support of custom phy initialization is now done with existing
"board_phy_config".

Note that after this change some previously used config options
(driver-specific PHY configuration) will be obsolete and they are simply
substituted with similar options of phylib.

For example:
 * CONFIG_DW_AUTONEG - no need in this one. Autonegotiation is enabled
by default.
 * CONFIG_DW_SEARCH_PHY - if one wants to specify attached phy
explicitly CONFIG_PHY_ADDR board config option has to be used, otherwise
automatically the first discovered on MDIO bus phy will be used

I believe there's no need now in "doc/README.designware_eth" because
user only needs to instantiate the driver with "designware_initialize"
whose prototype exists in "include/netdev.h".

Cc: Joe Hershberger <joe.hershberger@ni.com>
Cc: Vipin Kumar <vipin.kumar@st.com>
Cc: Stefan Roese <sr@denx.de>
Cc: Mischa Jonker <mjonker@synopsys.com>
Cc: Shiraz Hashim <shiraz.hashim@st.com>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Cc: Amit Virdi <amit.virdi@st.com>
Cc: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
13 files changed:
board/bf609-ezkit/bf609-ezkit.c
board/spear/spear300/spear300.c
board/spear/spear310/spear310.c
board/spear/spear320/spear320.c
board/spear/spear600/spear600.c
board/spear/x600/x600.c
doc/README.designware_eth [deleted file]
drivers/net/designware.c
drivers/net/designware.h
include/configs/bf609-ezkit.h
include/configs/spear-common.h
include/configs/spear6xx_evb.h
include/netdev.h