Seems some mailer blockage applies ...

-------- Original Message --------
Subject: [PATCH 2.6.7] usb serial gadget, add omap_udc
Date: Sun, 11 Jul 2004 13:36:57 -0700
From: David Brownell <[EMAIL PROTECTED]>
To: Greg KH <[EMAIL PROTECTED]>,  [EMAIL PROTECTED]

This lets the serial gadget work with another controller.

- Dave



Tell serial about omap_udc.  This driver still needs updating to
use the endpoint autoconfig suppport; like Gadget Zero, it
really shouldn't need _any_ hardware-specific #ifdeffery.

Signed-off-by:  David Brownell <[EMAIL PROTECTED]>


--- a/drivers/usb/gadget/serial.c       Sat Jul 10 12:40:59 2004
+++ b/drivers/usb/gadget/serial.c       Sat Jul 10 12:41:00 2004
@@ -249,6 +249,20 @@
 #define hw_optimize(g)                 do {} while (0)
 #endif
 
+#ifdef CONFIG_USB_GADGET_OMAP
+#define CHIP                   "omap"
+#define EP0_MAXPACKET                  64
+static const char EP_OUT_NAME [] = "ep2out-bulk";
+#define EP_OUT_NUM     2
+static const char EP_IN_NAME [] = "ep1in-bulk";
+#define EP_IN_NUM      1
+#define SELFPOWER                      USB_CONFIG_ATT_SELFPOWER
+/* supports remote wakeup, but this driver doesn't */
+
+/* no hw optimizations to apply */
+#define hw_optimize(g) do {} while (0)
+#endif
+
 
 /*
  * SA-1100 UDC:  widely used in first gen Linux-capable PDAs.


Reply via email to