diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/usb/musb-omap.h | 30 | ||||
| -rw-r--r-- | include/linux/usb/musb.h | 15 |
2 files changed, 15 insertions, 30 deletions
diff --git a/include/linux/usb/musb-omap.h b/include/linux/usb/musb-omap.h deleted file mode 100644 index 7774c5986f07..000000000000 --- a/include/linux/usb/musb-omap.h +++ /dev/null | |||
| @@ -1,30 +0,0 @@ | |||
| 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 | |||
| 10 | #ifndef __MUSB_OMAP_H__ | ||
| 11 | #define __MUSB_OMAP_H__ | ||
| 12 | |||
| 13 | enum omap_musb_vbus_id_status { | ||
| 14 | OMAP_MUSB_UNKNOWN = 0, | ||
| 15 | OMAP_MUSB_ID_GROUND, | ||
| 16 | OMAP_MUSB_ID_FLOAT, | ||
| 17 | OMAP_MUSB_VBUS_VALID, | ||
| 18 | OMAP_MUSB_VBUS_OFF, | ||
| 19 | }; | ||
| 20 | |||
| 21 | #if (defined(CONFIG_USB_MUSB_OMAP2PLUS) || \ | ||
| 22 | defined(CONFIG_USB_MUSB_OMAP2PLUS_MODULE)) | ||
| 23 | void omap_musb_mailbox(enum omap_musb_vbus_id_status status); | ||
| 24 | #else | ||
| 25 | static inline void omap_musb_mailbox(enum omap_musb_vbus_id_status status) | ||
| 26 | { | ||
| 27 | } | ||
| 28 | #endif | ||
| 29 | |||
| 30 | #endif /* __MUSB_OMAP_H__ */ | ||
diff --git a/include/linux/usb/musb.h b/include/linux/usb/musb.h index fa6dc132bd1b..96ddfb7ab018 100644 --- a/include/linux/usb/musb.h +++ b/include/linux/usb/musb.h | |||
| @@ -133,6 +133,21 @@ struct musb_hdrc_platform_data { | |||
| 133 | const void *platform_ops; | 133 | const void *platform_ops; |
| 134 | }; | 134 | }; |
| 135 | 135 | ||
| 136 | enum musb_vbus_id_status { | ||
| 137 | MUSB_UNKNOWN = 0, | ||
| 138 | MUSB_ID_GROUND, | ||
| 139 | MUSB_ID_FLOAT, | ||
| 140 | MUSB_VBUS_VALID, | ||
| 141 | MUSB_VBUS_OFF, | ||
| 142 | }; | ||
| 143 | |||
| 144 | #if IS_ENABLED(CONFIG_USB_MUSB_HDRC) | ||
| 145 | void musb_mailbox(enum musb_vbus_id_status status); | ||
| 146 | #else | ||
| 147 | static inline void musb_mailbox(enum musb_vbus_id_status status) | ||
| 148 | { | ||
| 149 | } | ||
| 150 | #endif | ||
| 136 | 151 | ||
| 137 | /* TUSB 6010 support */ | 152 | /* TUSB 6010 support */ |
| 138 | 153 | ||
