public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
From: "G, Manjunath Kondaiah" <manjugk@ti.com>
To: linux-omap@vger.kernel.org
Cc: linux-arm-kernel@lists.infradead.org,
	Benoit Cousson <b-cousson@ti.com>,
	Kevin Hilman <khilman@deeprootsystems.com>,
	Santosh Shilimkar <santosh.shilimkar@ti.com>
Subject: [PATCH v4 03/13] OMAP: DMA: Introduce DMA device attributes
Date: Mon,  8 Nov 2010 19:37:42 +0530	[thread overview]
Message-ID: <1289225272-9767-4-git-send-email-manjugk@ti.com> (raw)
In-Reply-To: <1289225272-9767-1-git-send-email-manjugk@ti.com>

Introduce OMAP DMA device attributes for using the same in DMA
platform driver for all OMAP's and hwmod database(OMAP2+ onwards)

Signed-off-by: G, Manjunath Kondaiah <manjugk@ti.com>
Cc: Benoit Cousson <b-cousson@ti.com>
Cc: Kevin Hilman <khilman@deeprootsystems.com>
Cc: Santosh Shilimkar <santosh.shilimkar@ti.com>
---
 arch/arm/plat-omap/include/plat/dma.h |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)

diff --git a/arch/arm/plat-omap/include/plat/dma.h b/arch/arm/plat-omap/include/plat/dma.h
index 5e28d26..9757b22 100644
--- a/arch/arm/plat-omap/include/plat/dma.h
+++ b/arch/arm/plat-omap/include/plat/dma.h
@@ -296,6 +296,22 @@
 #define DMA_ERRATA_i88			(1 << 4)
 #define DMA_ERRATA_3_3			(1 << 5)
 
+/* 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_PRIORITY			(1 << 0xD)
+
 enum omap_dma_burst_mode {
 	OMAP_DMA_DATA_BURST_DIS = 0,
 	OMAP_DMA_DATA_BURST_4,
@@ -361,6 +377,10 @@ struct omap_dma_channel_params {
 #endif
 };
 
+struct omap_dma_dev_attr {
+	u32 dev_caps;
+	u16 lch_count;
+};
 
 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,
-- 
1.7.1


  parent reply	other threads:[~2010-11-08 14:07 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-08 14:07 [PATCH v4 00/13] OMAP: DMA: hwmod and DMA as platform device G, Manjunath Kondaiah
2010-11-08 14:07 ` [PATCH v4 01/13] OMAP: DMA: Replace read/write macros with functions G, Manjunath Kondaiah
2010-11-09  0:40   ` Tony Lindgren
2010-11-10 14:01     ` G, Manjunath Kondaiah
2010-11-08 14:07 ` [PATCH v4 02/13] OMAP: DMA: Introduce errata handling feature G, Manjunath Kondaiah
2010-12-02 19:59   ` Tony Lindgren
2010-11-08 14:07 ` G, Manjunath Kondaiah [this message]
2010-11-08 14:07 ` [PATCH v4 04/13] OMAP2420: DMA: hwmod: add system DMA G, Manjunath Kondaiah
2010-11-08 14:07 ` [PATCH v4 05/13] OMAP2430: " G, Manjunath Kondaiah
2010-11-08 14:07 ` [PATCH v4 06/13] OMAP3: " G, Manjunath Kondaiah
2010-11-08 14:07 ` [PATCH v4 07/13] OMAP4: " G, Manjunath Kondaiah
2010-11-09  5:02   ` Varadarajan, Charulatha
2010-11-08 14:07 ` [PATCH v4 08/13] OMAP1: DMA: Introduce DMA driver as platform device G, Manjunath Kondaiah
2010-11-08 14:07 ` [PATCH v4 09/13] OMAP2+: DMA: hwmod: Device registration G, Manjunath Kondaiah
2010-11-08 14:07 ` [PATCH v4 10/13] OMAP: DMA: Convert DMA library into DMA platform Driver G, Manjunath Kondaiah
2010-11-08 14:07 ` [PATCH v4 12/13] OMAP2+: DMA: descriptor autoloading feature G, Manjunath Kondaiah
2010-11-08 14:07 ` [PATCH v4 13/13] OMAP: PM: DMA: Enable runtime pm G, Manjunath Kondaiah

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1289225272-9767-4-git-send-email-manjugk@ti.com \
    --to=manjugk@ti.com \
    --cc=b-cousson@ti.com \
    --cc=khilman@deeprootsystems.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=santosh.shilimkar@ti.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox