net: Rework mpc5200 fec driver to use of_mdio infrastructure.
authorGrant Likely <grant.likely@secretlab.ca>
Sat, 25 Apr 2009 12:53:02 +0000 (12:53 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Apr 2009 09:53:47 +0000 (02:53 -0700)
commitca816d98170942371535b3e862813b0aba9b7d90
tree1321117c2ea1e35a9f00303d2677e603e09ebfca
parent8bc487d150b939e69830c39322df4ee486efe381
net: Rework mpc5200 fec driver to use of_mdio infrastructure.

The patch reworks the MPC5200 Fast Ethernet Controller (FEC) driver to
use the of_mdio infrastructure for registering PHY devices from data out
openfirmware device tree, and eliminates the assumption that the PHY
for the FEC is always attached to the FEC's own MDIO bus.  With this
patch, the FEC can use a PHY attached to any MDIO bus if it is described
in the device tree.

Tested on Freescale Lite5200b eval board

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Acked-by: Andy Fleming <afleming@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/fec_mpc52xx.c
drivers/net/fec_mpc52xx_phy.c