From patchwork Wed May 12 11:49:37 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ajay Kumar Gupta X-Patchwork-Id: 98993 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o4CBnqv9030306 for ; Wed, 12 May 2010 11:49:52 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755794Ab0ELLtt (ORCPT ); Wed, 12 May 2010 07:49:49 -0400 Received: from comal.ext.ti.com ([198.47.26.152]:35022 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755699Ab0ELLtp (ORCPT ); Wed, 12 May 2010 07:49:45 -0400 Received: from dbdp31.itg.ti.com ([172.24.170.98]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id o4CBnf9p020760 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 12 May 2010 06:49:44 -0500 Received: from psplinux050.india.ti.com (localhost [127.0.0.1]) by dbdp31.itg.ti.com (8.13.8/8.13.8) with ESMTP id o4CBndvC016175; Wed, 12 May 2010 17:19:40 +0530 (IST) Received: from psplinux050.india.ti.com (localhost [127.0.0.1]) by psplinux050.india.ti.com (8.13.1/8.13.1) with ESMTP id o4CBnd81000543; Wed, 12 May 2010 17:19:39 +0530 Received: (from a0393629@localhost) by psplinux050.india.ti.com (8.13.1/8.13.1/Submit) id o4CBndav000540; Wed, 12 May 2010 17:19:39 +0530 From: Ajay Kumar Gupta To: linux-usb@vger.kernel.org Cc: linux-omap@vger.kernel.org, Ajay Kumar Gupta Subject: [PATCH 3/5] musb: add function to check if Inventra DMA used Date: Wed, 12 May 2010 17:19:37 +0530 Message-Id: <1273664979-493-3-git-send-email-ajay.gupta@ti.com> X-Mailer: git-send-email 1.6.2.4 In-Reply-To: <1273664979-493-2-git-send-email-ajay.gupta@ti.com> References: <1273664979-493-1-git-send-email-ajay.gupta@ti.com> <1273664979-493-2-git-send-email-ajay.gupta@ti.com> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Wed, 12 May 2010 11:49:52 +0000 (UTC) diff --git a/drivers/usb/musb/musb_dma.h b/drivers/usb/musb/musb_dma.h index 916065b..b8b385e 100644 --- a/drivers/usb/musb/musb_dma.h +++ b/drivers/usb/musb/musb_dma.h @@ -80,6 +80,12 @@ struct musb_hw_ep; #define tusb_dma_omap() 0 #endif +#ifdef CONFIG_USB_INVENTRA_DMA +#define is_inventra_dma_enabled() 1 +#else +#define is_inventra_dma_enabled() 0 +#endif + /* Anomaly 05000456 - USB Receive Interrupt Is Not Generated in DMA Mode 1 * Only allow DMA mode 1 to be used when the USB will actually generate the * interrupts we expect.