diff options
author | Kishon Vijay Abraham I <kishon@ti.com> | 2012-06-22 12:10:52 (GMT) |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2012-06-25 11:07:39 (GMT) |
commit | c9721438c009adf8e81d376839ed037c53b9b8d9 (patch) | |
tree | 3144ac8f042bd8366352e03eab530de3f9676f00 /include/linux/usb/musb-omap.h | |
parent | 1e5acb8d6113a0f159257845e153d5b870ca618a (diff) | |
download | linux-fsl-qoriq-c9721438c009adf8e81d376839ed037c53b9b8d9.tar.xz |
usb: musb: twl: use mailbox API to send VBUS or ID events
The atomic notifier from twl4030/twl6030 to notifiy VBUS and ID events,
is replaced by a direct call to omap musb blue.
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'include/linux/usb/musb-omap.h')
-rw-r--r-- | include/linux/usb/musb-omap.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/include/linux/usb/musb-omap.h b/include/linux/usb/musb-omap.h new file mode 100644 index 0000000..7774c59 --- /dev/null +++ b/include/linux/usb/musb-omap.h @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2011-2012 by Texas Instruments + * + * The Inventra Controller Driver for Linux is free software; you + * can redistribute it and/or modify it under the terms of the GNU + * General Public License version 2 as published by the Free Software + * Foundation. + */ + +#ifndef __MUSB_OMAP_H__ +#define __MUSB_OMAP_H__ + +enum omap_musb_vbus_id_status { + OMAP_MUSB_UNKNOWN = 0, + OMAP_MUSB_ID_GROUND, + OMAP_MUSB_ID_FLOAT, + OMAP_MUSB_VBUS_VALID, + OMAP_MUSB_VBUS_OFF, +}; + +#if (defined(CONFIG_USB_MUSB_OMAP2PLUS) || \ + defined(CONFIG_USB_MUSB_OMAP2PLUS_MODULE)) +void omap_musb_mailbox(enum omap_musb_vbus_id_status status); +#else +static inline void omap_musb_mailbox(enum omap_musb_vbus_id_status status) +{ +} +#endif + +#endif /* __MUSB_OMAP_H__ */ |