usb-pxa3xx-ulpi.h 821 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * PXA3xx U2D header
  3. *
  4. * Copyright (C) 2010 CompuLab Ltd.
  5. *
  6. * Igor Grinberg <grinberg@compulab.co.il>
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License version 2 as
  10. * published by the Free Software Foundation.
  11. */
  12. #ifndef __PXA310_U2D__
  13. #define __PXA310_U2D__
  14. #include <linux/usb/ulpi.h>
  15. struct pxa3xx_u2d_platform_data {
  16. #define ULPI_SER_6PIN (1 << 0)
  17. #define ULPI_SER_3PIN (1 << 1)
  18. unsigned int ulpi_mode;
  19. int (*init)(struct device *);
  20. void (*exit)(struct device *);
  21. };
  22. /* Start PXA3xx U2D host */
  23. int pxa3xx_u2d_start_hc(struct usb_bus *host);
  24. /* Stop PXA3xx U2D host */
  25. void pxa3xx_u2d_stop_hc(struct usb_bus *host);
  26. extern void pxa3xx_set_u2d_info(struct pxa3xx_u2d_platform_data *info);
  27. #endif /* __PXA310_U2D__ */