S5PC100: DMA: Add platform devices for PL330 DMACs
Subsystems (3)
PATCH 4/7 S5PC100: DMA: Add platform devices for PL330 DMACs
From: Jassi Brar <[email protected]>
Samsung's Soc S5PC100 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 S5PC100 platform.
Signed-off-by Jassi Brar <[email protected]>
--- arch/arm/mach-s5pc100/Kconfig | 1 + arch/arm/mach-s5pc100/Makefile | 2 +- arch/arm/mach-s5pc100/dma.c | 167 ++++++++++++++++++++++++++++++ arch/arm/mach-s5pc100/include/mach/dma.h | 26 +++++ 4 files changed, 195 insertions(+), 1 deletions(-) create mode 100644 arch/arm/mach-s5pc100/dma.c create mode 100644 arch/arm/mach-s5pc100/include/mach/dma.h
arch/arm/mach-s5pc100/Kconfig +1 -0
@@ -7,6 +7,7 @@ config CPU_S5PC100 bool + select S3C_PL330_DMA select CPU_S5PC100_INIT select CPU_S5PC100_CLOCK help
arch/arm/mach-s5pc100/Makefile +1 -1
@@ -11,7 +11,7 @@ obj- := # Core support for S5PC100 system -obj-$(CONFIG_CPU_S5PC100) += cpu.o +obj-$(CONFIG_CPU_S5PC100) += cpu.o dma.o # Helper and device support
arch/arm/mach-s5pc100/dma.c new file +167 -0
167 lines not on this page · raw message
arch/arm/mach-s5pc100/include/mach/dma.h new file +26 -0
@@ -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 */
Signature · 1 line
1.6.2.5