net: mdio-gpio: Add support for active low gpio pins

Some systems using mdio-gpio may use active-low gpio pins
(eg with inverters or FETs connected to all or some of the
gpio pins).

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Guenter Roeck 2014-04-15 19:16:41 -07:00 committed by David S. Miller
parent 78cdb07968
commit 1d2514818a
2 changed files with 16 additions and 6 deletions

View file

@ -18,6 +18,9 @@ struct mdio_gpio_platform_data {
unsigned int mdc;
unsigned int mdio;
bool mdc_active_low;
bool mdio_active_low;
unsigned int phy_mask;
int irqs[PHY_MAX_ADDR];
/* reset callback */