From patchwork Tue Mar 15 15:24:31 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [8/8] usb: musb: ux500: add configuration and build options for ux500 dma X-Patchwork-Submitter: Mian Yousaf Kaukab X-Patchwork-Id: 577 Message-Id: <1300202671-12818-9-git-send-email-mian.yousaf.kaukab@stericsson.com> To: Felipe Balbi , Cc: Lee Jones , Mian Yousaf Kaukab Date: Tue, 15 Mar 2011 16:24:31 +0100 From: Mian Yousaf Kaukab Signed-off-by: Mian Yousaf Kaukab --- drivers/usb/musb/Kconfig | 7 +++++++ drivers/usb/musb/Makefile | 5 +++++ 2 files changed, 12 insertions(+), 0 deletions(-) diff --git a/drivers/usb/musb/Kconfig b/drivers/usb/musb/Kconfig index 4cbb7e4..369837d 100644 --- a/drivers/usb/musb/Kconfig +++ b/drivers/usb/musb/Kconfig @@ -176,6 +176,13 @@ config USB_TUSB_OMAP_DMA help Enable DMA transfers on TUSB 6010 when OMAP DMA is available. +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_MUSB_DEBUG depends on USB_MUSB_HDRC bool "Enable debugging messages" diff --git a/drivers/usb/musb/Makefile b/drivers/usb/musb/Makefile index 74df528..4a83d6e 100644 --- a/drivers/usb/musb/Makefile +++ b/drivers/usb/musb/Makefile @@ -39,6 +39,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