ChangeSet 1.1560, 2003/12/29 12:29:37-08:00, david-b@pacbell.net [PATCH] USB: ethernet gadget supports goku_udc This patch just adds TC86c001 (goku) UDC support to the "ether.c" gadget driver. This hardware supports a full speed CDC Ethernet interface. drivers/usb/gadget/ether.c | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+) diff -Nru a/drivers/usb/gadget/ether.c b/drivers/usb/gadget/ether.c --- a/drivers/usb/gadget/ether.c Mon Dec 29 14:20:29 2003 +++ b/drivers/usb/gadget/ether.c Mon Dec 29 14:20:29 2003 @@ -226,6 +226,27 @@ #define hw_optimize(g) do {} while (0) #endif +/* + * Toshiba TC86C001 ("Goku-S") UDC + * + * This has three semi-configurable full speed bulk/interrupt endpoints. + */ +#ifdef CONFIG_USB_ETH_GOKU +#define CHIP "goku" +#define DRIVER_VERSION_NUM 0x0106 +#define EP0_MAXPACKET 8 +static const char EP_OUT_NAME [] = "ep1-bulk"; +#define EP_OUT_NUM 1 +static const char EP_IN_NAME [] = "ep2-bulk"; +#define EP_IN_NUM 2 +static const char EP_STATUS_NAME [] = "ep3-bulk"; +#define EP_STATUS_NUM 3 +#define SELFPOWER USB_CONFIG_ATT_SELFPOWER +/* doesn't support remote wakeup */ + +#define hw_optimize(g) do {} while (0) +#endif + /*-------------------------------------------------------------------------*/ #ifndef EP0_MAXPACKET