openfirmware: Add OF phylib support code
authorGrant Likely <grant.likely@secretlab.ca>
Sat, 25 Apr 2009 12:52:56 +0000 (12:52 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Apr 2009 09:53:47 +0000 (02:53 -0700)
commit8bc487d150b939e69830c39322df4ee486efe381
tree36f19428f8cf40363b17e3afcc54dee7403f7d29
parentfa94f6d93c5382810ff41f010f12ca8698fc775e
openfirmware: Add OF phylib support code

Add support for parsing the device tree for PHY devices on an MDIO bus.
Currently many of the PowerPC ethernet drivers are open coding a solution
for reading data out of the device tree to find the correct PHY device.
This patch implements a set of common routines to:

a) let MDIO bus drivers register phy_devices described in the tree, and
b) let MAC drivers find the correct phy_device via the tree.

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/of/Kconfig
drivers/of/Makefile
drivers/of/of_mdio.c [new file with mode: 0644]
include/linux/of_mdio.h [new file with mode: 0644]