mdio-gpio.h 758 B

123456789101112131415161718192021222324252627282930313233
  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. #ifndef __LINUX_MDIO_GPIO_H
  11. #define __LINUX_MDIO_GPIO_H
  12. #include <linux/mdio-bitbang.h>
  13. struct mdio_gpio_platform_data {
  14. /* GPIO numbers for bus pins */
  15. unsigned int mdc;
  16. unsigned int mdio;
  17. unsigned int mdo;
  18. bool mdc_active_low;
  19. bool mdio_active_low;
  20. bool mdo_active_low;
  21. u32 phy_mask;
  22. u32 phy_ignore_ta_mask;
  23. int irqs[PHY_MAX_ADDR];
  24. /* reset callback */
  25. int (*reset)(struct mii_bus *bus);
  26. };
  27. #endif /* __LINUX_MDIO_GPIO_H */