aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mdio-gpio.h
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2014-04-15 22:16:41 -0400
committerDavid S. Miller <davem@davemloft.net>2014-04-16 15:09:51 -0400
commit1d2514818a2c3d94dd250e6027cb928a4e192548 (patch)
treec4ff94f2b9df1d5b96c5c46b2bc4d02b1167ed04 /include/linux/mdio-gpio.h
parent78cdb079685cd8365acaf9fce896137e7d60e1c1 (diff)
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>
Diffstat (limited to 'include/linux/mdio-gpio.h')
-rw-r--r--include/linux/mdio-gpio.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/mdio-gpio.h b/include/linux/mdio-gpio.h
index 7c9fe3c2be73..57e57fe6055c 100644
--- a/include/linux/mdio-gpio.h
+++ b/include/linux/mdio-gpio.h
@@ -18,6 +18,9 @@ struct mdio_gpio_platform_data {
18 unsigned int mdc; 18 unsigned int mdc;
19 unsigned int mdio; 19 unsigned int mdio;
20 20
21 bool mdc_active_low;
22 bool mdio_active_low;
23
21 unsigned int phy_mask; 24 unsigned int phy_mask;
22 int irqs[PHY_MAX_ADDR]; 25 int irqs[PHY_MAX_ADDR];
23 /* reset callback */ 26 /* reset callback */