forked from Minki/linux
8bc487d150
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>
28 lines
480 B
Plaintext
28 lines
480 B
Plaintext
config OF_DEVICE
|
|
def_bool y
|
|
depends on OF && (SPARC || PPC_OF)
|
|
|
|
config OF_GPIO
|
|
def_bool y
|
|
depends on OF && PPC_OF && GPIOLIB
|
|
help
|
|
OpenFirmware GPIO accessors
|
|
|
|
config OF_I2C
|
|
def_tristate I2C
|
|
depends on PPC_OF && I2C
|
|
help
|
|
OpenFirmware I2C accessors
|
|
|
|
config OF_SPI
|
|
def_tristate 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
|