Skip to contentSkip to conversation

S5PV210: DMA: Add platform devices for PL330 DMACs

PATCH New jassisinghbrar at gmail.com 1 participant 1 message Apr 21, 2010

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

PATCH 7/7 S5PV210: DMA: Add platform devices for PL330 DMACs

From: Jassi Brar <[email protected]>

Samsung's Soc S5PV210 has three PL330 DMACs. First is dedicated for Memory->Memory data transfer while the other two meant for data transfer with peripherals.
Define and add latter two PL330 DMACs as platform devices on the S5PV210 platform.

---
 arch/arm/mach-s5pv210/Kconfig            |    1 +
 arch/arm/mach-s5pv210/Makefile           |    2 +-
 arch/arm/mach-s5pv210/dma.c              |  168 ++++++++++++++++++++++++++++++
 arch/arm/mach-s5pv210/include/mach/dma.h |   26 +++++
 arch/arm/mach-s5pv210/include/mach/map.h |    4 +
 5 files changed, 200 insertions(+), 1 deletions(-)
 create mode 100644 arch/arm/mach-s5pv210/dma.c
 create mode 100644 arch/arm/mach-s5pv210/include/mach/dma.h
arch/arm/mach-s5pv210/Kconfig +1 -0
index af33a1a..7601c28 100644
@@ -12,6 +12,7 @@ if ARCH_S5PV210
 config CPU_S5PV210
 	bool
 	select PLAT_S5P
+	select S3C_PL330_DMA
 	help
 	  Enable S5PV210 CPU support
 
arch/arm/mach-s5pv210/Makefile +1 -1
index 8ebf51c..f7f1cdc 100644
@@ -12,7 +12,7 @@ obj-				:=
 
 # Core support for S5PV210 system
 
-obj-$(CONFIG_CPU_S5PV210)	+= cpu.o init.o clock.o
+obj-$(CONFIG_CPU_S5PV210)	+= cpu.o init.o clock.o dma.o
 
 # machine support
 
arch/arm/mach-s5pv210/dma.c new file +168 -0

168 lines not on this page · raw message

arch/arm/mach-s5pv210/include/mach/dma.h new file +26 -0
new file mode 100644
index 0000000..81209eb
@@ -0,0 +1,26 @@
+/*
+ * Copyright (C) 2010 Samsung Electronics Co. Ltd.
+ *	Jaswinder Singh <[email protected]>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+
+#ifndef __MACH_DMA_H
+#define __MACH_DMA_H
+
+/* This platform uses the common S3C DMA API driver for PL330 */
+#include <plat/s3c-dma-pl330.h>
+
+#endif /* __MACH_DMA_H */
arch/arm/mach-s5pv210/include/mach/map.h +4 -0
index c22694c..c038585 100644
@@ -43,6 +43,10 @@
 
 #define S5PV210_PA_SROMC	(0xE8000000)
 
+#define S5PV210_PA_MDMA		0xFA200000
+#define S5PV210_PA_PDMA0	0xE0900000
+#define S5PV210_PA_PDMA1	0xE0A00000
+
 #define S5PV210_PA_VIC0		(0xF2000000)
 #define S5P_PA_VIC0		S5PV210_PA_VIC0
 
Signature · 1 line
1.6.2.5