mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 14:41:31 +00:00
usb: musb: setup TXCOUNT for Blackfin musb
The Blackfin implementation of musb has a TXCOUNT register that needs to be programmed when transmitting data. Signed-off-by: Bryan Wu <bryan.wu@analog.com> Signed-off-by: Cliff Cai <cliff.cai@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
parent
2d941de9d5
commit
8dd7a23007
1 changed files with 5 additions and 0 deletions
|
@ -987,6 +987,11 @@ int submit_bulk_msg(struct usb_device *dev, unsigned long pipe,
|
||||||
nextlen = ((len-txlen) < dev->epmaxpacketout[ep]) ?
|
nextlen = ((len-txlen) < dev->epmaxpacketout[ep]) ?
|
||||||
(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 the data to the FIFO */
|
||||||
write_fifo(MUSB_BULK_EP, nextlen,
|
write_fifo(MUSB_BULK_EP, nextlen,
|
||||||
(void *)(((u8 *)buffer) + txlen));
|
(void *)(((u8 *)buffer) + txlen));
|
||||||
|
|
Loading…
Add table
Reference in a new issue