s3c_udc.h 543 B

12345678910111213141516171819202122232425
  1. /*
  2. * drivers/usb/gadget/s3c_udc.h
  3. * Samsung S3C on-chip full/high speed USB device controllers
  4. * Copyright (C) 2005 for Samsung Electronics
  5. *
  6. * SPDX-License-Identifier: GPL-2.0+
  7. */
  8. #ifndef __S3C_USB_GADGET
  9. #define __S3C_USB_GADGET
  10. #define PHY0_SLEEP (1 << 5)
  11. struct s3c_plat_otg_data {
  12. int (*phy_control)(int on);
  13. unsigned int regs_phy;
  14. unsigned int regs_otg;
  15. unsigned int usb_phy_ctrl;
  16. unsigned int usb_flags;
  17. unsigned int usb_gusbcfg;
  18. };
  19. extern int s3c_udc_probe(struct s3c_plat_otg_data *pdata);
  20. #endif