usb-pxa3xx-ulpi.h 675 B

1234567891011121314151617181920212223242526272829303132
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * PXA3xx U2D header
  4. *
  5. * Copyright (C) 2010 CompuLab Ltd.
  6. *
  7. * Igor Grinberg <[email protected]>
  8. */
  9. #ifndef __PXA310_U2D__
  10. #define __PXA310_U2D__
  11. #include <linux/usb/ulpi.h>
  12. struct pxa3xx_u2d_platform_data {
  13. #define ULPI_SER_6PIN (1 << 0)
  14. #define ULPI_SER_3PIN (1 << 1)
  15. unsigned int ulpi_mode;
  16. int (*init)(struct device *);
  17. void (*exit)(struct device *);
  18. };
  19. /* Start PXA3xx U2D host */
  20. int pxa3xx_u2d_start_hc(struct usb_bus *host);
  21. /* Stop PXA3xx U2D host */
  22. void pxa3xx_u2d_stop_hc(struct usb_bus *host);
  23. extern void pxa3xx_set_u2d_info(struct pxa3xx_u2d_platform_data *info);
  24. #endif /* __PXA310_U2D__ */