From patchwork Thu Jul 29 09:58:55 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: manjugk manjugk X-Patchwork-Id: 115033 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o6TA56aS005543 for ; Thu, 29 Jul 2010 10:07:42 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756496Ab0G2KBK (ORCPT ); Thu, 29 Jul 2010 06:01:10 -0400 Received: from comal.ext.ti.com ([198.47.26.152]:59290 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756400Ab0G2KBC (ORCPT ); Thu, 29 Jul 2010 06:01:02 -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 o6TA0tF5008949 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 29 Jul 2010 05:00:58 -0500 Received: from localhost.localdomain (localhost [127.0.0.1]) by dbdp31.itg.ti.com (8.13.8/8.13.8) with ESMTP id o6TA0qYg006167; Thu, 29 Jul 2010 15:30:53 +0530 (IST) From: Manjunatha GK To: linux-omap@vger.kernel.org Cc: Benoit Cousson , Kevin Hilman , Paul Walmsley , Tony Lindgren , Anand Sawant , Santosh Shilimkar , Rajendra Nayak , Basak Partha , Charulatha V Subject: [PATCH 01/11] OMAP: DMA: Introduce DMA device attributes Date: Thu, 29 Jul 2010 15:28:55 +0530 Message-Id: <1280397545-27323-2-git-send-email-manjugk@ti.com> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1280397545-27323-1-git-send-email-manjugk@ti.com> References: <1280397545-27323-1-git-send-email-manjugk@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]); Thu, 29 Jul 2010 10:07:42 +0000 (UTC) diff --git a/arch/arm/plat-omap/include/plat/dma.h b/arch/arm/plat-omap/include/plat/dma.h index 02232ca..ff60f11 100644 --- a/arch/arm/plat-omap/include/plat/dma.h +++ b/arch/arm/plat-omap/include/plat/dma.h @@ -398,6 +398,22 @@ #define DMA_CH_PRIO_HIGH 0x1 #define DMA_CH_PRIO_LOW 0x0 /* Def */ +/* Attributes for OMAP DMA Contrllers */ +#define ENABLE_1510_MODE (1 << 0) +#define DMA_LINKED_LCH (1 << 1) +#define GLOBAL_PRIORITY (1 << 2) +#define RESERVE_CHANNEL (1 << 3) +#define SRC_PORT (2 << 3) +#define DST_PORT (2 << 4) +#define IS_CSSA_32 (2 << 5) +#define IS_CDSA_32 (2 << 6) +#define SRC_INDEX (4 << 6) +#define DST_INDEX (4 << 7) +#define IS_BURST_ONLY4 (4 << 8) +#define CLEAR_CSR_ON_READ (4 << 9) +#define IS_WORD_16 (8 << 9) +#define IS_RW_PRIORIY (8 << 0xA) + enum omap_dma_burst_mode { OMAP_DMA_DATA_BURST_DIS = 0, OMAP_DMA_DATA_BURST_4, @@ -463,6 +479,12 @@ struct omap_dma_channel_params { #endif }; +struct omap_dma_dev_attr { + u32 dma_dev_attr; + u16 dma_lch_count; + u16 dma_chan_count; + struct omap_dma_lch *dma_chan; +}; extern void omap_set_dma_priority(int lch, int dst_port, int priority); extern int omap_request_dma(int dev_id, const char *dev_name,