dwc3-omap.h 734 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Copyright (C) 2013 by Texas Instruments
  3. *
  4. * The Inventra Controller Driver for Linux is free software; you
  5. * can redistribute it and/or modify it under the terms of the GNU
  6. * General Public License version 2 as published by the Free Software
  7. * Foundation.
  8. */
  9. #ifndef __DWC3_OMAP_H__
  10. #define __DWC3_OMAP_H__
  11. enum omap_dwc3_vbus_id_status {
  12. OMAP_DWC3_UNKNOWN = 0,
  13. OMAP_DWC3_ID_GROUND,
  14. OMAP_DWC3_ID_FLOAT,
  15. OMAP_DWC3_VBUS_VALID,
  16. OMAP_DWC3_VBUS_OFF,
  17. };
  18. #if (defined(CONFIG_USB_DWC3) || defined(CONFIG_USB_DWC3_MODULE))
  19. extern void dwc3_omap_mailbox(enum omap_dwc3_vbus_id_status status);
  20. #else
  21. static inline void dwc3_omap_mailbox(enum omap_dwc3_vbus_id_status status)
  22. {
  23. return;
  24. }
  25. #endif
  26. #endif /* __DWC3_OMAP_H__ */