diff options
author | Paulius Zaleckas <paulius.zaleckas@teltonika.lt> | 2008-11-13 19:24:34 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-11-16 21:59:45 -0500 |
commit | f004f3ea34209d8b836426b26ade3dc502631b18 (patch) | |
tree | bf58002618bc3dd98db2416bb20cbeb016ecdd23 /drivers/net/phy/Kconfig | |
parent | 72af187f216ed83c77ca3e6f22dfc9caf72e9347 (diff) |
phylib: make mdio-gpio work without OF (v4)
make mdio-gpio work with non OpenFirmware gpio implementation.
Aditional changes to mdio-gpio:
- use gpio_request() and gpio_free()
- place irq[] array in struct mdio_gpio_info
- add module description, author and license
- add note about compiling this driver as module
- rename mdc and mdio function (were ugly names)
- change MII to MDIO in bus name
- add __init __exit to module (un)loading functions
- probe fails if no phys added to the bus
- kzalloc bitbang with sizeof(*bitbang)
Changes since v3:
- keep bus naming "%x" to be compatible with existing drivers.
Changes since v2:
- more #ifdefs reduction
- platform driver will be registered on OF platforms also
- unified platform and OF bus_id to phy%i
Changes since v1:
- removed NO_IRQ
- reduced #idefs
Laurent, please test this driver under OF.
Signed-off-by: Paulius Zaleckas <paulius.zaleckas@teltonika.lt>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy/Kconfig')
-rw-r--r-- | drivers/net/phy/Kconfig | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/phy/Kconfig b/drivers/net/phy/Kconfig index 031807751991..c4c5a2f8ec74 100644 --- a/drivers/net/phy/Kconfig +++ b/drivers/net/phy/Kconfig | |||
@@ -86,8 +86,11 @@ config MDIO_BITBANG | |||
86 | 86 | ||
87 | config MDIO_GPIO | 87 | config MDIO_GPIO |
88 | tristate "Support for GPIO lib-based bitbanged MDIO buses" | 88 | tristate "Support for GPIO lib-based bitbanged MDIO buses" |
89 | depends on MDIO_BITBANG && OF_GPIO | 89 | depends on MDIO_BITBANG && GENERIC_GPIO |
90 | ---help--- | 90 | ---help--- |
91 | Supports GPIO lib-based MDIO busses. | 91 | Supports GPIO lib-based MDIO busses. |
92 | 92 | ||
93 | To compile this driver as a module, choose M here: the module | ||
94 | will be called mdio-gpio. | ||
95 | |||
93 | endif # PHYLIB | 96 | endif # PHYLIB |