mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-29 16:10:58 +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]) ?
|
||||
(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));
|
||||
|
|
Loading…
Reference in a new issue