dwc3-omap-uboot.h 734 B

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