Skip to contentSkip to conversation

dmaengine: add CSR SiRFprimaII DMAC driver

PATCH In review Barry Song 2 participants 2 messages Oct 28, 2011 – Oct 31, 2011 dmaengine

lore
Share & tools
lore

Barry Song

author
#0 lore raw

PATCH v5 1/1 dmaengine: add CSR SiRFprimaII DMAC driver

From: Rongjun Ying <[email protected]>

Cc Jassi Brar <[email protected]>
Cc Arnd Bergmann <[email protected]>
Cc Linus Walleij <[email protected]>

---
-v5:
fix checkpatch issues;
fix compile warinings;
Note: This tree
git://gitorious.org/sirfprima2-kernel/sirfprima2-kernel.git prima2-dma-for-Vinod merge both slave_dma interleaved branch and prima2 defconfig.

 MAINTAINERS                 |    1 +
 drivers/dma/Kconfig         |    7 +
 drivers/dma/Makefile        |    1 +
 drivers/dma/sirf-dma.c      |  717 +++++++++++++++++++++++++++++++++++++++++++
 include/linux/sirfsoc_dma.h |    6 +
 5 files changed, 732 insertions(+), 0 deletions(-)
 create mode 100644 drivers/dma/sirf-dma.c
 create mode 100644 include/linux/sirfsoc_dma.h
MAINTAINERS +1 -0
index b3bc88d..d423930 100644
@@ -739,6 +739,7 @@ M:	Barry Song <[email protected]>
 L:	linux-arm-kernel at lists.infradead.org (moderated for non-subscribers)
 S:	Maintained
 F:	arch/arm/mach-prima2/
+F:	drivers/dma/sirf-dma*
 
 ARM/EBSA110 MACHINE SUPPORT
 M:	Russell King <[email protected]>
drivers/dma/Kconfig +7 -0
index ab8f469..88b93c0 100644
@@ -187,6 +187,13 @@ config TIMB_DMA
 	help
 	  Enable support for the Timberdale FPGA DMA engine.
 
+config SIRF_DMA
+	tristate "CSR SiRFprimaII DMA support"
+	depends on ARCH_PRIMA2
+	select DMA_ENGINE
+	help
+	  Enable support for the CSR SiRFprimaII DMA engine.
+
 config ARCH_HAS_ASYNC_TX_FIND_CHANNEL
 	bool
 
drivers/dma/Makefile +1 -0
index 30cf3b1..009a222 100644
@@ -21,6 +21,7 @@ obj-$(CONFIG_IMX_SDMA) += imx-sdma.o
 obj-$(CONFIG_IMX_DMA) += imx-dma.o
 obj-$(CONFIG_MXS_DMA) += mxs-dma.o
 obj-$(CONFIG_TIMB_DMA) += timb_dma.o
+obj-$(CONFIG_SIRF_DMA) += sirf-dma.o
 obj-$(CONFIG_STE_DMA40) += ste_dma40.o ste_dma40_ll.o
 obj-$(CONFIG_PL330_DMA) += pl330.o
 obj-$(CONFIG_PCH_DMA) += pch_dma.o
drivers/dma/sirf-dma.c new file +717 -0

717 lines not on this page · raw message

include/linux/sirfsoc_dma.h new file +6 -0
new file mode 100644
index 0000000..29d9593
@@ -0,0 +1,6 @@
+#ifndef _SIRFSOC_DMA_H_
+#define _SIRFSOC_DMA_H_
+
+bool sirfsoc_dma_filter_id(struct dma_chan *chan, void *chan_id);
+
+#endif
Signature · 6 lines
1.7.1



Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom
More information can be found at www.csr.com. Follow CSR on Twitter at http://twitter.com/CSR_PLC and read our blog at www.csr.com/blog
#1 lore raw
Quoted 7 lines · Barry Song

From: Rongjun Ying <[email protected]>

Cc Jassi Brar <[email protected]>
Cc Arnd Bergmann <[email protected]>
Cc Linus Walleij <[email protected]>
Quoted 7 lines

---
-v5:
fix checkpatch issues;
fix compile warinings;
Note: This tree
git://gitorious.org/sirfprima2-kernel/sirfprima2-kernel.git prima2-dma-for-Vinod merge both slave_dma interleaved branch and prima2 defconfig.

Applied thanks.
I will merge these after merging direction fixes.

Signature · 1 line
~Vinod