s3c-hsudc.h 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * S3C24XX USB 2.0 High-speed USB controller gadget driver
  4. *
  5. * Copyright (c) 2010 Samsung Electronics Co., Ltd.
  6. * http://www.samsung.com/
  7. *
  8. * The S3C24XX USB 2.0 high-speed USB controller supports upto 9 endpoints.
  9. * Each endpoint can be configured as either in or out endpoint. Endpoints
  10. * can be configured for Bulk or Interrupt transfer mode.
  11. */
  12. #ifndef __LINUX_USB_S3C_HSUDC_H
  13. #define __LINUX_USB_S3C_HSUDC_H
  14. /**
  15. * s3c24xx_hsudc_platdata - Platform data for USB High-Speed gadget controller.
  16. * @epnum: Number of endpoints to be instantiated by the controller driver.
  17. * @gpio_init: Platform specific USB related GPIO initialization.
  18. * @gpio_uninit: Platform specific USB releted GPIO uninitialzation.
  19. *
  20. * Representation of platform data for the S3C24XX USB 2.0 High Speed gadget
  21. * controllers.
  22. */
  23. struct s3c24xx_hsudc_platdata {
  24. unsigned int epnum;
  25. void (*gpio_init)(void);
  26. void (*gpio_uninit)(void);
  27. void (*phy_init)(void);
  28. void (*phy_uninit)(void);
  29. };
  30. #endif /* __LINUX_USB_S3C_HSUDC_H */