[U-Boot] [T-Engine] UBoot configuration for T-Engine/SH7727 MS7727CP02 DevKit
thaoth
thaoth at cybersoft-vn.com
Fri Sep 12 12:58:46 CEST 2008
Hi,
Yoshihiro Shimoda wrote:
>
>
> diff --git a/common/usb.c b/common/usb.c
> index 9502f39..1acf51d 100644
> --- a/common/usb.c
> +++ b/common/usb.c
> @@ -250,7 +250,10 @@ int usb_set_maxpacket(struct usb_device *dev)
>
> for(i=0; i<dev->config.bNumInterfaces;i++) {
> for(ii=0; ii<dev->config.if_desc[i].bNumEndpoints; ii++) {
> - ep = &dev->config.if_desc[i].ep_desc[ii];
> + struct usb_endpoint_descriptor tmp;
> + memcpy(&tmp, &dev->config.if_desc[i].ep_desc[ii],
> + sizeof(struct usb_endpoint_descriptor));
> + ep = &tmp;
> b=ep->bEndpointAddress & USB_ENDPOINT_NUMBER_MASK;
>
> if((ep->bmAttributes &
> USB_ENDPOINT_XFERTYPE_MASK)==USB_ENDPOINT_XFER_CONTROL) { /* Control =>
> bidirectional */
>
Thank you a lot, it worked well. :jumping::jumping::jumping::jumping:
Thank you for good instruction.
Best regards,
--
View this message in context: http://www.nabble.com/-T-Engine--UBoot-configuration-for-T-Engine-SH7727-MS7727CP02-DevKit-tp18868090p19453640.html
Sent from the Uboot - Users mailing list archive at Nabble.com.
More information about the U-Boot
mailing list