On Wed, 21 Mar 2007, nesta wrote:

> thanks a lot Alan for your help but 
> i wanna tell u somthing:
> it is about usb.c did u take a look at this file?  u will find in the 
> function 
> named by
>  autoconfig,
> that
> it does not contain any case for omap_udc but it only contains cases for 
> net2280,  pxa2xx_udc,   goku_udc and sh_udc
> so i have increased a case for omap_udc as follows:
>  
> ********************************* 
> else if (stat (DEVNAME = "omap_udc", &statb) == 0) {
> 
> HIGHSPEED = 0;
> 
> device_desc.bcdDevice = __constant_cpu_to_le16 (0x0106),
> 
> fs_source_desc.bEndpointAddress = USB_DIR_IN | 1;
> 
> EP_IN_NAME = "ep1in";
> 
> 
> fs_sink_desc.bEndpointAddress = USB_DIR_OUT | 2;
> 
> EP_OUT_NAME = "ep1out";
> 
> source_sink_intf.bNumEndpoints = 3;
> 
> fs_status_desc.bEndpointAddress = USB_DIR_IN | 3;
> 
> EP_STATUS_NAME = "ep3in";
> 
> 
> }
> 
> ***************************************************************
> 
> do u have any suggestion about above part  that i have increased?

You must have gotten hold of an old version of usb.c.  The version I have
and the version available on the web site:

        http://www.linux-usb.org/gadget/usb.c

both contain this code in autoconfig():

        /* OMAP 1610 and newer devices, full speed only, fifo mode 0 or 3 */
        } else if (stat (DEVNAME = "omap_udc", &statb) == 0) {
                HIGHSPEED = 0;
                device_desc.bcdDevice = __constant_cpu_to_le16 (0x0106),

                fs_source_desc.bEndpointAddress = USB_DIR_IN | 1;
                EP_IN_NAME = "ep1in-bulk";
                fs_sink_desc.bEndpointAddress = USB_DIR_OUT | 2;
                EP_OUT_NAME = "ep2out-bulk";

                source_sink_intf.bNumEndpoints = 3;
                fs_status_desc.bEndpointAddress = USB_DIR_IN | 3;
                EP_STATUS_NAME = "ep3in-int";

Alan Stern


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to