dwc3-uboot.h 1017 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /* include/dwc3-uboot.h
  2. *
  3. * Copyright (c) 2015 Texas Instruments Incorporated - http://www.ti.com
  4. *
  5. * Designware SuperSpeed USB uboot init
  6. *
  7. * SPDX-License-Identifier: GPL-2.0
  8. */
  9. #ifndef __DWC3_UBOOT_H_
  10. #define __DWC3_UBOOT_H_
  11. #include <linux/usb/otg.h>
  12. struct dwc3_device {
  13. unsigned long base;
  14. enum usb_dr_mode dr_mode;
  15. u32 maximum_speed;
  16. unsigned tx_fifo_resize:1;
  17. unsigned has_lpm_erratum;
  18. u8 lpm_nyet_threshold;
  19. unsigned is_utmi_l1_suspend;
  20. u8 hird_threshold;
  21. unsigned disable_scramble_quirk;
  22. unsigned u2exit_lfps_quirk;
  23. unsigned u2ss_inp3_quirk;
  24. unsigned req_p1p2p3_quirk;
  25. unsigned del_p1p2p3_quirk;
  26. unsigned del_phy_power_chg_quirk;
  27. unsigned lfps_filter_quirk;
  28. unsigned rx_detect_poll_quirk;
  29. unsigned dis_u3_susphy_quirk;
  30. unsigned dis_u2_susphy_quirk;
  31. unsigned tx_de_emphasis_quirk;
  32. unsigned tx_de_emphasis;
  33. int index;
  34. };
  35. int dwc3_uboot_init(struct dwc3_device *dev);
  36. void dwc3_uboot_exit(int index);
  37. void dwc3_uboot_handle_interrupt(int index);
  38. #endif /* __DWC3_UBOOT_H_ */