Paulius Zaleckas | f004f3e | 2008-11-14 00:24:34 +0000 | [diff] [blame] | 1 | /* |
| 2 | * MDIO-GPIO bus platform data structures |
| 3 | * |
| 4 | * Copyright (C) 2008, Paulius Zaleckas <paulius.zaleckas@teltonika.lt> |
| 5 | * |
| 6 | * This file is licensed under the terms of the GNU General Public License |
| 7 | * version 2. This program is licensed "as is" without any warranty of any |
| 8 | * kind, whether express or implied. |
| 9 | */ |
| 10 | |
| 11 | #ifndef __LINUX_MDIO_GPIO_H |
| 12 | #define __LINUX_MDIO_GPIO_H |
| 13 | |
| 14 | #include <linux/mdio-bitbang.h> |
| 15 | |
| 16 | struct mdio_gpio_platform_data { |
| 17 | /* GPIO numbers for bus pins */ |
| 18 | unsigned int mdc; |
| 19 | unsigned int mdio; |
Guenter Roeck | f1d54c4 | 2014-04-15 19:16:42 -0700 | [diff] [blame] | 20 | unsigned int mdo; |
Paulius Zaleckas | f004f3e | 2008-11-14 00:24:34 +0000 | [diff] [blame] | 21 | |
Guenter Roeck | 1d25148 | 2014-04-15 19:16:41 -0700 | [diff] [blame] | 22 | bool mdc_active_low; |
| 23 | bool mdio_active_low; |
Guenter Roeck | f1d54c4 | 2014-04-15 19:16:42 -0700 | [diff] [blame] | 24 | bool mdo_active_low; |
Guenter Roeck | 1d25148 | 2014-04-15 19:16:41 -0700 | [diff] [blame] | 25 | |
Bert Vermeulen | ef7f3a5 | 2015-05-13 13:35:39 +0200 | [diff] [blame] | 26 | u32 phy_mask; |
| 27 | u32 phy_ignore_ta_mask; |
Paulius Zaleckas | f004f3e | 2008-11-14 00:24:34 +0000 | [diff] [blame] | 28 | int irqs[PHY_MAX_ADDR]; |
Srinivas Kandagatla | 6488270 | 2011-11-15 11:54:15 +0000 | [diff] [blame] | 29 | /* reset callback */ |
| 30 | int (*reset)(struct mii_bus *bus); |
Paulius Zaleckas | f004f3e | 2008-11-14 00:24:34 +0000 | [diff] [blame] | 31 | }; |
| 32 | |
| 33 | #endif /* __LINUX_MDIO_GPIO_H */ |