summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-s3c64xx/common.h
diff options
context:
space:
mode:
authorTomasz Figa <tomasz.figa@gmail.com>2013-10-16 21:10:54 +0200
committerMark Brown <broonie@linaro.org>2013-11-24 15:38:24 +0100
commit1db0287ab186637488e51ae43109692624f2d5a3 (patch)
tree13a3fa95b54b8f9b1e56125a5d369cd3d9fb37c5 /arch/arm/mach-s3c64xx/common.h
parentspi: s3c64xx: Do not require legacy DMA API in case of S3C64XX (diff)
downloadlinux-1db0287ab186637488e51ae43109692624f2d5a3.tar.xz
linux-1db0287ab186637488e51ae43109692624f2d5a3.zip
ARM: s3c64xx: Add support for DMA using generic amba-pl08x driver
This patch adds all required platform-specific data and initialization code to support the generic amba-pl08x driver on S3C64xx SoCs. Also some compatibility definitions are added to make the transition from legacy API to DMA engine easier. The biggest hack here is passing const char * pointers through DMA resource, casted to unsigned long, but this is how Samsung DMA wrappers (used to support both s3c-dma and DMA engine in drivers) are designed. Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'arch/arm/mach-s3c64xx/common.h')
-rw-r--r--arch/arm/mach-s3c64xx/common.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/mach-s3c64xx/common.h b/arch/arm/mach-s3c64xx/common.h
index bd3bd562011e..7043e7a3a67e 100644
--- a/arch/arm/mach-s3c64xx/common.h
+++ b/arch/arm/mach-s3c64xx/common.h
@@ -58,4 +58,9 @@ int __init s3c64xx_pm_late_initcall(void);
static inline int s3c64xx_pm_late_initcall(void) { return 0; }
#endif
+#ifdef CONFIG_S3C64XX_PL080
+extern struct pl08x_platform_data s3c64xx_dma0_plat_data;
+extern struct pl08x_platform_data s3c64xx_dma1_plat_data;
+#endif
+
#endif /* __ARCH_ARM_MACH_S3C64XX_COMMON_H */