From patchwork Tue Aug 24 11:04:16 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: manjugk manjugk X-Patchwork-Id: 126191 X-Patchwork-Delegate: khilman@deeprootsystems.com 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 o7OB5Rrf021244 for ; Tue, 24 Aug 2010 11:05:30 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754749Ab0HXLF3 (ORCPT ); Tue, 24 Aug 2010 07:05:29 -0400 Received: from bear.ext.ti.com ([192.94.94.41]:56900 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751710Ab0HXLF3 (ORCPT ); Tue, 24 Aug 2010 07:05:29 -0400 Received: from dlep33.itg.ti.com ([157.170.170.112]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id o7OB5SXS032487 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 24 Aug 2010 06:05:28 -0500 Received: from legion.dal.design.ti.com (localhost [127.0.0.1]) by dlep33.itg.ti.com (8.13.7/8.13.7) with ESMTP id o7OB5OIN023470; Tue, 24 Aug 2010 06:05:24 -0500 (CDT) Received: from localhost (dfl-61.apr.dhcp.ti.com [172.24.136.151]) by legion.dal.design.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id o7OB5Mf18025; Tue, 24 Aug 2010 06:05:22 -0500 (CDT) From: Manjunatha GK To: linux-omap@vger.kernel.org Cc: Benoit Cousson , Kevin Hilman , Santosh Shilimkar Subject: [PATCH v2 01/11] OMAP: DMA: Introduce DMA device attributes Date: Tue, 24 Aug 2010 16:34:16 +0530 Message-Id: <1282647866-6918-2-git-send-email-manjugk@ti.com> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1282647866-6918-1-git-send-email-manjugk@ti.com> References: <1282647866-6918-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]); Tue, 24 Aug 2010 11:05:30 +0000 (UTC) diff --git a/arch/arm/plat-omap/include/plat/dma.h b/arch/arm/plat-omap/include/plat/dma.h index af3a039..67b9489 100644 --- a/arch/arm/plat-omap/include/plat/dma.h +++ b/arch/arm/plat-omap/include/plat/dma.h @@ -399,6 +399,22 @@ #define DMA_CH_PRIO_HIGH 0x1 #define DMA_CH_PRIO_LOW 0x0 /* Def */ +/* Attributes for OMAP DMA Contrllers */ +#define ENABLE_1510_MODE (1 << 0x0) +#define DMA_LINKED_LCH (1 << 0x1) +#define GLOBAL_PRIORITY (1 << 0x2) +#define RESERVE_CHANNEL (1 << 0x3) +#define SRC_PORT (1 << 0x4) +#define DST_PORT (1 << 0x5) +#define IS_CSSA_32 (1 << 0x6) +#define IS_CDSA_32 (1 << 0x7) +#define SRC_INDEX (1 << 0x8) +#define DST_INDEX (1 << 0x9) +#define IS_BURST_ONLY4 (1 << 0xA) +#define CLEAR_CSR_ON_READ (1 << 0xB) +#define IS_WORD_16 (1 << 0xC) +#define IS_RW_PRIORIY (1 << 0xD) + enum omap_dma_burst_mode { OMAP_DMA_DATA_BURST_DIS = 0, OMAP_DMA_DATA_BURST_4, @@ -464,6 +480,12 @@ struct omap_dma_channel_params { #endif }; +struct omap_dma_dev_attr { + u32 dev_caps; + u16 lch_count; + u16 chan_count; + struct omap_dma_lch *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,