]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
usb: musb: ux500: add configuration and build options for ux500 dma
authorMian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com>
Tue, 22 Mar 2011 14:55:59 +0000 (15:55 +0100)
committerFelipe Balbi <balbi@ti.com>
Wed, 18 May 2011 11:43:16 +0000 (14:43 +0300)
Signed-off-by: Mian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/musb/Kconfig
drivers/usb/musb/Makefile

index dbb13bd8cb0bd221373c7e3754c5389b8da2e6f3..13093481f9180ae67d41dcc503d80d6572eb0548 100644 (file)
@@ -153,6 +153,13 @@ config MUSB_PIO_ONLY
          you can still disable it at run time using the "use_dma=n" module
          parameter.
 
+config USB_UX500_DMA
+       bool
+       depends on USB_MUSB_HDRC && !MUSB_PIO_ONLY
+       default USB_MUSB_UX500
+       help
+         Enable DMA transfers on UX500 platforms.
+
 config USB_INVENTRA_DMA
        bool
        depends on USB_MUSB_HDRC && !MUSB_PIO_ONLY
index 4e15281b9e02bde2b824d51e3d665bc94628323c..c4d228b6ef8a5e2e752782e09d312c8cc526d732 100644 (file)
@@ -37,6 +37,11 @@ ifneq ($(CONFIG_MUSB_PIO_ONLY),y)
       ifeq ($(CONFIG_USB_TUSB_OMAP_DMA),y)
        musb_hdrc-y             += tusb6010_omap.o
 
+      else
+        ifeq ($(CONFIG_USB_UX500_DMA),y)
+         musb_hdrc-y           += ux500_dma.o
+
+        endif
       endif
     endif
   endif