summaryrefslogtreecommitdiffstats
path: root/include/usb/fsl_usb2.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2013-02-05 15:50:31 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2013-02-15 16:19:56 +0100
commit0a643b3d426e606dd42678b87a1fe205aea2b9e7 (patch)
tree6ae97b9c6cb335c41dcc6936b0311336e245179f /include/usb/fsl_usb2.h
parent8139fa78b9ab7c53e194679ec9855bfcd92b1f80 (diff)
downloadbarebox-0a643b3d426e606dd42678b87a1fe205aea2b9e7.tar.gz
barebox-0a643b3d426e606dd42678b87a1fe205aea2b9e7.tar.xz
USB i.MX: Add chipidea gadget support
This adds USB gadget support to the i.MX chipidea driver. Basically we have to add a register function to the fsl udc driver and call this from the chipidea driver if device mode is selected. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/usb/fsl_usb2.h')
-rw-r--r--include/usb/fsl_usb2.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/usb/fsl_usb2.h b/include/usb/fsl_usb2.h
index fd37adebc8..dec3933d82 100644
--- a/include/usb/fsl_usb2.h
+++ b/include/usb/fsl_usb2.h
@@ -1,3 +1,6 @@
+#ifndef __USB_FSL_USB2_H
+#define __USB_FSL_USB2_H
+
enum fsl_usb2_operating_modes {
FSL_USB2_MPH_HOST,
FSL_USB2_DR_HOST,
@@ -20,3 +23,6 @@ struct fsl_usb2_platform_data {
unsigned int port_enables;
};
+int ci_udc_register(struct device_d *dev, void __iomem *regs);
+
+#endif /* __USB_FSL_USB2_H */