From patchwork Tue Mar 22 14:55:59 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mian Yousaf Kaukab X-Patchwork-Id: 732 Return-Path: Delivered-To: unknown Received: from imap.gmail.com (74.125.159.109) by localhost6.localdomain6 with IMAP4-SSL; 08 Jun 2011 14:45:15 -0000 Delivered-To: patches@linaro.org Received: by 10.204.113.5 with SMTP id y5cs536bkp; Tue, 22 Mar 2011 07:56:45 -0700 (PDT) Received: by 10.213.20.213 with SMTP id g21mr340626ebb.44.1300805805484; Tue, 22 Mar 2011 07:56:45 -0700 (PDT) Received: from eu1sys200aog110.obsmtp.com (eu1sys200aog110.obsmtp.com [207.126.144.129]) by mx.google.com with SMTP id p50si9091898eei.71.2011.03.22.07.56.41 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 22 Mar 2011 07:56:45 -0700 (PDT) Received-SPF: neutral (google.com: 207.126.144.129 is neither permitted nor denied by best guess record for domain of mian.yousaf.kaukab@stericsson.com) client-ip=207.126.144.129; Authentication-Results: mx.google.com; spf=neutral (google.com: 207.126.144.129 is neither permitted nor denied by best guess record for domain of mian.yousaf.kaukab@stericsson.com) smtp.mail=mian.yousaf.kaukab@stericsson.com Received: from source ([164.129.1.35]) (using TLSv1) by eu1sys200aob110.postini.com ([207.126.147.11]) with SMTP ID DSNKTYi4qQ/c/cQRssr64DrnqJAOqMMgN5NF@postini.com; Tue, 22 Mar 2011 14:56:45 UTC Received: from zeta.dmz-eu.st.com (ns2.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 68E7D279; Tue, 22 Mar 2011 14:56:40 +0000 (GMT) Received: from relay2.stm.gmessaging.net (unknown [10.230.100.18]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id E0D1426DB; Tue, 22 Mar 2011 14:56:39 +0000 (GMT) Received: from exdcvycastm003.EQ1STM.local (alteon-source-exch [10.230.100.61]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (Client CN "exdcvycastm003", Issuer "exdcvycastm003" (not verified)) by relay2.stm.gmessaging.net (Postfix) with ESMTPS id 07E15A807B; Tue, 22 Mar 2011 15:56:04 +0100 (CET) Received: from localhost.localdomain (10.230.100.153) by smtp.stericsson.com (10.230.100.1) with Microsoft SMTP Server (TLS) id 8.2.254.0; Tue, 22 Mar 2011 15:56:09 +0100 From: Mian Yousaf Kaukab To: Felipe Balbi , Cc: Lee Jones , Mian Yousaf Kaukab Subject: [PATCHv2 4/4] usb: musb: ux500: add configuration and build options for ux500 dma Date: Tue, 22 Mar 2011 15:55:59 +0100 Message-ID: <1300805759-26016-4-git-send-email-mian.yousaf.kaukab@stericsson.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1300805759-26016-1-git-send-email-mian.yousaf.kaukab@stericsson.com> References: <1300805759-26016-1-git-send-email-mian.yousaf.kaukab@stericsson.com> MIME-Version: 1.0 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 74073b3..ca64f75 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