dwc3-omap-uboot.h 730 B

12345678910111213141516171819202122232425262728293031
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /* include/dwc3_omap_uboot.h
  3. *
  4. * Copyright (c) 2015 Texas Instruments Incorporated - http://www.ti.com
  5. *
  6. * Designware SuperSpeed OMAP Glue uboot init
  7. */
  8. #ifndef __DWC3_OMAP_UBOOT_H_
  9. #define __DWC3_OMAP_UBOOT_H_
  10. #include <linux/usb/dwc3-omap.h>
  11. enum omap_dwc3_vbus_id_status {
  12. OMAP_DWC3_ID_FLOAT,
  13. OMAP_DWC3_ID_GROUND,
  14. OMAP_DWC3_VBUS_OFF,
  15. OMAP_DWC3_VBUS_VALID,
  16. };
  17. struct dwc3_omap_device {
  18. void *base;
  19. int index;
  20. enum dwc3_omap_utmi_mode utmi_mode;
  21. enum omap_dwc3_vbus_id_status vbus_id_status;
  22. };
  23. int dwc3_omap_uboot_init(struct dwc3_omap_device *dev);
  24. void dwc3_omap_uboot_exit(int index);
  25. int dwc3_omap_uboot_interrupt_status(int index);
  26. #endif /* __DWC3_OMAP_UBOOT_H_ */