aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com>2013-05-15 08:03:24 -0400
committerFelipe Balbi <balbi@ti.com>2013-05-28 12:58:57 -0400
commitaee5500f4fe5fec7ba1c371e6538d791ca294bd8 (patch)
tree4574898c7f839d5ed673c7c8482cc61957b70aba /drivers
parentdbbafe666c47d2e3d59cea66066f98c946a1e2de (diff)
usb: musb: enable ux500 host side dma support
Host side dma support for ux500 is enabled by piggybacking on Inventra dma support. Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Mian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com> Signed-off-by: Fabio Baltieri <fabio.baltieri@linaro.org> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/musb/musb_host.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/usb/musb/musb_host.c b/drivers/usb/musb/musb_host.c
index f15d114572d5..1e370eec9100 100644
--- a/drivers/usb/musb/musb_host.c
+++ b/drivers/usb/musb/musb_host.c
@@ -629,7 +629,7 @@ static bool musb_tx_dma_program(struct dma_controller *dma,
629 u16 csr; 629 u16 csr;
630 u8 mode; 630 u8 mode;
631 631
632#ifdef CONFIG_USB_INVENTRA_DMA 632#if defined(CONFIG_USB_INVENTRA_DMA) || defined(CONFIG_USB_UX500_DMA)
633 if (length > channel->max_len) 633 if (length > channel->max_len)
634 length = channel->max_len; 634 length = channel->max_len;
635 635
@@ -1663,7 +1663,7 @@ void musb_host_rx(struct musb *musb, u8 epnum)
1663 1663
1664 /* FIXME this is _way_ too much in-line logic for Mentor DMA */ 1664 /* FIXME this is _way_ too much in-line logic for Mentor DMA */
1665 1665
1666#ifndef CONFIG_USB_INVENTRA_DMA 1666#if !defined(CONFIG_USB_INVENTRA_DMA) && !defined(CONFIG_USB_UX500_DMA)
1667 if (rx_csr & MUSB_RXCSR_H_REQPKT) { 1667 if (rx_csr & MUSB_RXCSR_H_REQPKT) {
1668 /* REVISIT this happened for a while on some short reads... 1668 /* REVISIT this happened for a while on some short reads...
1669 * the cleanup still needs investigation... looks bad... 1669 * the cleanup still needs investigation... looks bad...
@@ -1695,7 +1695,7 @@ void musb_host_rx(struct musb *musb, u8 epnum)
1695 | MUSB_RXCSR_RXPKTRDY); 1695 | MUSB_RXCSR_RXPKTRDY);
1696 musb_writew(hw_ep->regs, MUSB_RXCSR, val); 1696 musb_writew(hw_ep->regs, MUSB_RXCSR, val);
1697 1697
1698#ifdef CONFIG_USB_INVENTRA_DMA 1698#if defined(CONFIG_USB_INVENTRA_DMA) || defined(CONFIG_USB_UX500_DMA)
1699 if (usb_pipeisoc(pipe)) { 1699 if (usb_pipeisoc(pipe)) {
1700 struct usb_iso_packet_descriptor *d; 1700 struct usb_iso_packet_descriptor *d;
1701 1701
@@ -1751,7 +1751,7 @@ void musb_host_rx(struct musb *musb, u8 epnum)
1751 } 1751 }
1752 1752
1753 /* we are expecting IN packets */ 1753 /* we are expecting IN packets */
1754#ifdef CONFIG_USB_INVENTRA_DMA 1754#if defined(CONFIG_USB_INVENTRA_DMA) || defined(CONFIG_USB_UX500_DMA)
1755 if (dma) { 1755 if (dma) {
1756 struct dma_controller *c; 1756 struct dma_controller *c;
1757 u16 rx_count; 1757 u16 rx_count;