]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitced0b9c638813e1b3b754c1b0c029861e879a31f
tree1321117c2ea1e35a9f00303d2677e603e09ebfca
parent1ace13e2c912ddbd2c8d613b06b47b7073d59e68
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