mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
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:
parent
78cdb07968
commit
1d2514818a
2 changed files with 16 additions and 6 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue