Skip to contentSkip to conversation

ARM: S5PC100: add dma platform resources for s5pc100

PATCH New Joonyoung Shim 1 participant 1 message Sep 16, 2009

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/3 ARM: S5PC100: add dma platform resources for s5pc100

The S5PC100 has three the pl330 dma controller. The mdma is for memory to memory transfer, and the pdma0 and pdma1 are for peripheral to memory transfer. Also this can be used on the S5PC110 later.

---
 arch/arm/mach-s5pc100/include/mach/map.h     |    5 +
 arch/arm/plat-s5pc1xx/Makefile               |    1 +
 arch/arm/plat-s5pc1xx/dev-dma.c              |  110 +++++++++++++++++++++++++
 arch/arm/plat-s5pc1xx/include/plat/dma.h     |  112 ++++++++++++++++++++++++++
 arch/arm/plat-s5pc1xx/include/plat/s5pc100.h |    3 +
 5 files changed, 231 insertions(+), 0 deletions(-)
 create mode 100644 arch/arm/plat-s5pc1xx/dev-dma.c
 create mode 100644 arch/arm/plat-s5pc1xx/include/plat/dma.h
arch/arm/mach-s5pc100/include/mach/map.h +5 -0
index 4f82430..477b50c 100644
@@ -40,6 +40,11 @@
 #define S5PC1XX_PA_VIC(x)	(S5PC100_PA_VIC + ((x) * S5PC100_PA_VIC_OFFSET))
 #define S5PC1XX_VA_VIC(x)	(S5PC100_VA_VIC + ((x) * S5PC100_VA_VIC_OFFSET))
 
+/* DMA */
+#define S5PC100_PA_MDMA		(0xE8100000)
+#define S5PC100_PA_PDMA0	(0xE9000000)
+#define S5PC100_PA_PDMA1	(0xE9200000)
+
 /* Timer */
 #define S5PC100_PA_TIMER	(0xEA000000)
 #define S5PC1XX_PA_TIMER	S5PC100_PA_TIMER
arch/arm/plat-s5pc1xx/Makefile +1 -0
index f1ecb2c..7dd3e74 100644
@@ -11,6 +11,7 @@ obj-				:=
 
 # Core files
 
+obj-y				+= dev-dma.o
 obj-y				+= dev-uart.o
 obj-y				+= cpu.o
 obj-y				+= irq.o
arch/arm/plat-s5pc1xx/dev-dma.c new file +110 -0

110 lines not on this page · raw message

arch/arm/plat-s5pc1xx/include/plat/dma.h new file +112 -0

112 lines not on this page · raw message

arch/arm/plat-s5pc1xx/include/plat/s5pc100.h +3 -0
index 45e2751..5f67447 100644
@@ -63,3 +63,6 @@ extern struct platform_device s3c_device_fimc0;
 extern struct platform_device s3c_device_fimc1;
 extern struct platform_device s3c_device_fimc2;
 
+extern struct platform_device s5pc1xx_device_mdma;
+extern struct platform_device s5pc1xx_device_pdma0;
+extern struct platform_device s5pc1xx_device_pdma1;
Signature · 1 line
1.6.0.4