diff options
author | Grant Likely <grant.likely@secretlab.ca> | 2009-04-25 14:52:56 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-04-27 11:53:47 +0200 |
commit | 8bc487d150b939e69830c39322df4ee486efe381 (patch) | |
tree | 36f19428f8cf40363b17e3afcc54dee7403f7d29 /drivers/of/Kconfig | |
parent | phylib: add *_direct() variants of phy_connect and phy_attach functions (diff) | |
download | linux-8bc487d150b939e69830c39322df4ee486efe381.tar.xz linux-8bc487d150b939e69830c39322df4ee486efe381.zip |
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>
Diffstat (limited to 'drivers/of/Kconfig')
-rw-r--r-- | drivers/of/Kconfig | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/of/Kconfig b/drivers/of/Kconfig index f821dbc952a4..6fe043bd3770 100644 --- a/drivers/of/Kconfig +++ b/drivers/of/Kconfig @@ -19,3 +19,9 @@ config OF_SPI depends on OF && PPC_OF && SPI help OpenFirmware SPI accessors + +config OF_MDIO + def_tristate PHYLIB + depends on OF && PHYLIB + help + OpenFirmware MDIO bus (Ethernet PHY) accessors |