projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d941de
)
usb: musb: setup TXCOUNT for Blackfin musb
author
Bryan Wu
<
[email protected]
>
Mon, 9 Aug 2010 18:57:41 +0000
(14:57 -0400)
committer
Remy Bohmer
<
[email protected]
>
Sat, 11 Sep 2010 07:49:21 +0000
(09:49 +0200)
The Blackfin implementation of musb has a TXCOUNT register that needs to
be programmed when transmitting data.
Signed-off-by: Bryan Wu <
[email protected]
>
Signed-off-by: Cliff Cai <
[email protected]
>
Signed-off-by: Mike Frysinger <
[email protected]
>
drivers/usb/musb/musb_hcd.c
patch
|
blob
|
history
diff --git
a/drivers/usb/musb/musb_hcd.c
b/drivers/usb/musb/musb_hcd.c
index dd2aa7f27c1be2c231acbc857336fde6f4def0c3..f14e12ffaf61a3152bbfbac2d8c33921ce7dd944 100644
(file)
--- a/
drivers/usb/musb/musb_hcd.c
+++ b/
drivers/usb/musb/musb_hcd.c
@@
-987,6
+987,11
@@
int submit_bulk_msg(struct usb_device *dev, unsigned long pipe,
nextlen = ((len-txlen) < dev->epmaxpacketout[ep]) ?
(len-txlen) : dev->epmaxpacketout[ep];
+#ifdef CONFIG_USB_BLACKFIN
+ /* Set the transfer data size */
+ writew(nextlen, &musbr->txcount);
+#endif
+
/* Write the data to the FIFO */
write_fifo(MUSB_BULK_EP, nextlen,
(void *)(((u8 *)buffer) + txlen));