dwc2_udc.h 684 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * drivers/usb/gadget/dwc2_udc.h
  3. * Designware DWC2 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 __DWC2_USB_GADGET
  9. #define __DWC2_USB_GADGET
  10. #define PHY0_SLEEP (1 << 5)
  11. struct dwc2_plat_otg_data {
  12. void *priv;
  13. int phy_of_node;
  14. int (*phy_control)(int on);
  15. unsigned int regs_phy;
  16. unsigned int regs_otg;
  17. unsigned int usb_phy_ctrl;
  18. unsigned int usb_flags;
  19. unsigned int usb_gusbcfg;
  20. unsigned int rx_fifo_sz;
  21. unsigned int np_tx_fifo_sz;
  22. unsigned int tx_fifo_sz;
  23. };
  24. int dwc2_udc_probe(struct dwc2_plat_otg_data *pdata);
  25. #endif /* __DWC2_USB_GADGET */