summaryrefslogtreecommitdiff
path: root/include/linux/usb/otg.h
diff options
context:
space:
mode:
authorKishon Vijay Abraham I <kishon@ti.com>2015-02-23 18:39:54 +0530
committerMarek Vasut <marex@denx.de>2015-04-14 05:48:09 +0200
commit9848e5740af12e1c81efb940d9503ebfb266d8de (patch)
tree126c6fbe816edac4d1e8be91a463815c4a45a803 /include/linux/usb/otg.h
parent9de1115de72106fb0e8dfbfe98f337a1c7a8dc11 (diff)
downloadu-boot-imx-9848e5740af12e1c81efb940d9503ebfb266d8de.zip
u-boot-imx-9848e5740af12e1c81efb940d9503ebfb266d8de.tar.gz
u-boot-imx-9848e5740af12e1c81efb940d9503ebfb266d8de.tar.bz2
usb: dwc3: fix dwc3 header files
Changed the header files included in core.h and io.h to the u-boot header files so that these files can be included in other dwc3 source files and be compiled in uboot. Also added otg.h which has the defines for dr_mode. Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com> Reviewed-by: Lukasz Majewski <l.majewski@samsung.com>
Diffstat (limited to 'include/linux/usb/otg.h')
-rw-r--r--include/linux/usb/otg.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/linux/usb/otg.h b/include/linux/usb/otg.h
new file mode 100644
index 0000000..7ec5550
--- /dev/null
+++ b/include/linux/usb/otg.h
@@ -0,0 +1,20 @@
+/* include/linux/usb/otg.h
+ *
+ * Copyright (c) 2015 Texas Instruments Incorporated - http://www.ti.com
+ *
+ * USB OTG (On The Go) defines
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+
+#ifndef __LINUX_USB_OTG_H
+#define __LINUX_USB_OTG_H
+
+enum usb_dr_mode {
+ USB_DR_MODE_UNKNOWN,
+ USB_DR_MODE_HOST,
+ USB_DR_MODE_PERIPHERAL,
+ USB_DR_MODE_OTG,
+};
+
+#endif /* __LINUX_USB_OTG_H */