S5P6440: DMA: Add platform devices for PL330 DMACs
Subsystems (3)
PATCH 5/7 S5P6440: DMA: Add platform devices for PL330 DMACs
From: Jassi Brar <[email protected]>
Samsung's Soc S5P6440 has one PL330 DMAC. Define and add the PL330 DMAC as platform device on the S5P6440 platform.
Signed-off-by Jassi Brar <[email protected]>
--- arch/arm/mach-s5p6440/Kconfig | 1 + arch/arm/mach-s5p6440/Makefile | 2 +- arch/arm/mach-s5p6440/dma.c | 105 ++++++++++++++++++++++++++++++ arch/arm/mach-s5p6440/include/mach/dma.h | 26 +++++++ arch/arm/mach-s5p6440/include/mach/map.h | 2 + 5 files changed, 135 insertions(+), 1 deletions(-) create mode 100644 arch/arm/mach-s5p6440/dma.c create mode 100644 arch/arm/mach-s5p6440/include/mach/dma.h
arch/arm/mach-s5p6440/Kconfig +1 -0
@@ -9,6 +9,7 @@ if ARCH_S5P6440 config CPU_S5P6440 bool + select S3C_PL330_DMA help Enable S5P6440 CPU support
arch/arm/mach-s5p6440/Makefile +1 -1
@@ -12,7 +12,7 @@ obj- := # Core support for S5P6440 system -obj-$(CONFIG_CPU_S5P6440) += cpu.o init.o clock.o gpio.o +obj-$(CONFIG_CPU_S5P6440) += cpu.o init.o clock.o gpio.o dma.o # machine support
arch/arm/mach-s5p6440/dma.c new file +105 -0
105 lines not on this page · raw message
arch/arm/mach-s5p6440/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 */
arch/arm/mach-s5p6440/include/mach/map.h +2 -0
@@ -29,6 +29,8 @@#define S5P6440_PA_VIC0 (0xE4000000)#define S5P_PA_VIC0 S5P6440_PA_VIC0 +#define S5P6440_PA_PDMA 0xE9000000 +#define S5P6440_PA_VIC1 (0xE4100000)#define S5P_PA_VIC1 S5P6440_PA_VIC1
Signature · 1 line
1.6.2.5