]> git.hungrycats.org Git - linux/commitdiff
[PATCH] USB: usb serial gadget, add omap_udc
authorDavid Brownell <david-b@pacbell.net>
Wed, 14 Jul 2004 07:59:25 +0000 (00:59 -0700)
committerGreg Kroah-Hartman <greg@kroah.com>
Wed, 14 Jul 2004 07:59:25 +0000 (00:59 -0700)
This lets the serial gadget work with another controller.

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 <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/usb/gadget/serial.c

index 80f2b9d712d857930bfeebb0ea945a0f5ea5f475..ebfc22b2a19f4dad4c67a49ff4eb47f1baa9880f 100644 (file)
@@ -249,6 +249,20 @@ static const char EP_IN_NAME[] =   "ep1in-bulk";
 #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.