summaryrefslogtreecommitdiffstats
path: root/include/usb/usbserial.h
diff options
context:
space:
mode:
authorEric Bénard <eric@eukrea.com>2012-01-04 10:36:47 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2012-01-04 14:18:46 +0100
commitf7aaa2249325c963b80654a7c2de14223b8e4165 (patch)
tree83e9ff43334cefdfde37e396062b0845ca933b59 /include/usb/usbserial.h
parenteb98425068297fc26a07e3acf889f38cac4045cf (diff)
downloadbarebox-f7aaa2249325c963b80654a7c2de14223b8e4165.tar.gz
barebox-f7aaa2249325c963b80654a7c2de14223b8e4165.tar.xz
serial gadget: enable/disable on request
- add a usbserial command to enable/disable the serial gadget - allow dfu and usbserial to cohexist in the same barebox - add a timeout in u_serial so that we don't get locked if the user enable usbserial from a UART console but doesn't consume the data on the usbserial port created on the PC - remove debug or verbose printf - tested on i.MX25 & i.MX35 & usb-a926x Signed-off-by: Eric Bénard <eric@eukrea.com> Tested-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/usb/usbserial.h')
-rw-r--r--include/usb/usbserial.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/usb/usbserial.h b/include/usb/usbserial.h
new file mode 100644
index 0000000000..43c839c4d6
--- /dev/null
+++ b/include/usb/usbserial.h
@@ -0,0 +1,19 @@
+#ifndef _USB_SERIAL_H
+#define _USB_SERIAL_H
+
+struct usb_serial_pdata {
+ char *manufacturer;
+ char *productname;
+ u16 idVendor;
+ u16 idProduct;
+ int mode;
+};
+
+int usb_serial_register(struct usb_serial_pdata *pdata);
+void usb_serial_unregister(void);
+
+/* OBEX support is missing in barebox */
+/* #define HAVE_OBEX */
+
+#endif /* _USB_SERIAL_H */
+