max3421-hcd.h 769 B

123456789101112131415161718192021222324
  1. /*
  2. * Copyright (c) 2014 eGauge Systems LLC
  3. * Contributed by David Mosberger-Tang <davidm@egauge.net>
  4. *
  5. * Platform-data structure for MAX3421 USB HCD driver.
  6. *
  7. */
  8. #ifndef MAX3421_HCD_PLAT_H_INCLUDED
  9. #define MAX3421_HCD_PLAT_H_INCLUDED
  10. /*
  11. * This structure defines the mapping of certain auxiliary functions to the
  12. * MAX3421E GPIO pins. The chip has eight GP inputs and eight GP outputs.
  13. * A value of 0 indicates that the pin is not used/wired to anything.
  14. *
  15. * At this point, the only control the max3421-hcd driver cares about is
  16. * to control Vbus (5V to the peripheral).
  17. */
  18. struct max3421_hcd_platform_data {
  19. u8 vbus_gpout; /* pin controlling Vbus */
  20. u8 vbus_active_level; /* level that turns on power */
  21. };
  22. #endif /* MAX3421_HCD_PLAT_H_INCLUDED */