usb-omap1.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*
  2. * Platform data for OMAP1 USB
  3. *
  4. * This file is subject to the terms and conditions of the GNU General Public
  5. * License. See the file "COPYING" in the main directory of this archive for
  6. * more details.
  7. */
  8. #ifndef __LINUX_USB_OMAP1_H
  9. #define __LINUX_USB_OMAP1_H
  10. #include <linux/platform_device.h>
  11. struct omap_usb_config {
  12. /* Configure drivers according to the connectors on your board:
  13. * - "A" connector (rectagular)
  14. * ... for host/OHCI use, set "register_host".
  15. * - "B" connector (squarish) or "Mini-B"
  16. * ... for device/gadget use, set "register_dev".
  17. * - "Mini-AB" connector (very similar to Mini-B)
  18. * ... for OTG use as device OR host, initialize "otg"
  19. */
  20. unsigned register_host:1;
  21. unsigned register_dev:1;
  22. u8 otg; /* port number, 1-based: usb1 == 2 */
  23. const char *extcon; /* extcon device for OTG */
  24. u8 hmc_mode;
  25. /* implicitly true if otg: host supports remote wakeup? */
  26. u8 rwc;
  27. /* signaling pins used to talk to transceiver on usbN:
  28. * 0 == usbN unused
  29. * 2 == usb0-only, using internal transceiver
  30. * 3 == 3 wire bidirectional
  31. * 4 == 4 wire bidirectional
  32. * 6 == 6 wire unidirectional (or TLL)
  33. */
  34. u8 pins[3];
  35. struct platform_device *udc_device;
  36. struct platform_device *ohci_device;
  37. struct platform_device *otg_device;
  38. u32 (*usb0_init)(unsigned nwires, unsigned is_device);
  39. u32 (*usb1_init)(unsigned nwires);
  40. u32 (*usb2_init)(unsigned nwires, unsigned alt_pingroup);
  41. int (*ocpi_enable)(void);
  42. };
  43. #endif /* __LINUX_USB_OMAP1_H */