musb-omap.h 749 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Copyright (C) 2011-2012 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 __MUSB_OMAP_H__
  10. #define __MUSB_OMAP_H__
  11. enum omap_musb_vbus_id_status {
  12. OMAP_MUSB_UNKNOWN = 0,
  13. OMAP_MUSB_ID_GROUND,
  14. OMAP_MUSB_ID_FLOAT,
  15. OMAP_MUSB_VBUS_VALID,
  16. OMAP_MUSB_VBUS_OFF,
  17. };
  18. #if (defined(CONFIG_USB_MUSB_OMAP2PLUS) || \
  19. defined(CONFIG_USB_MUSB_OMAP2PLUS_MODULE))
  20. void omap_musb_mailbox(enum omap_musb_vbus_id_status status);
  21. #else
  22. static inline void omap_musb_mailbox(enum omap_musb_vbus_id_status status)
  23. {
  24. }
  25. #endif
  26. #endif /* __MUSB_OMAP_H__ */