summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHeiko Stuebner <heiko@sntech.de>2013-10-20 22:32:48 +0200
committerKukjin Kim <kgene.kim@samsung.com>2013-10-20 22:32:48 +0200
commit1fecf8958eb7f90791f2c7e99afac393b64fa976 (patch)
tree9971cafc2f2b710e6e56f1b684ec54bf43a4523b /include
parentdmaengine: s3c24xx-dma: add support for the s3c2410 type of controller (diff)
downloadlinux-1fecf8958eb7f90791f2c7e99afac393b64fa976.tar.xz
linux-1fecf8958eb7f90791f2c7e99afac393b64fa976.zip
ARM: S3C24XX: add dma pdata for s3c2410, s3c2440 and s3c2442
s3c2410 and s3c2442 share the same dma channels while s3c2440 has slight differences. But on all three the reachable sources per dma channel has constraints attached and thus encodes the usable combinations using the S3C24XX_DMA_CHANREQ macro. This also fixes the warning about s3c2410_dma_resource being unused as reported by Olof Johansson. Reported-by: Olof Johansson <olof@lixom.net> Signed-off-by: Heiko Stuebner <heiko@sntech.de> Reviewed-by: Tomasz Figa <t.figa@samsung.com> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/platform_data/dma-s3c24xx.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/platform_data/dma-s3c24xx.h b/include/linux/platform_data/dma-s3c24xx.h
index 5a0cfffe3bbb..89ba1b0c90e4 100644
--- a/include/linux/platform_data/dma-s3c24xx.h
+++ b/include/linux/platform_data/dma-s3c24xx.h
@@ -9,6 +9,9 @@
* any later version.
*/
+/* Helper to encode the source selection constraints for early s3c socs. */
+#define S3C24XX_DMA_CHANREQ(src, chan) ((BIT(3) | src) << chan * 4)
+
enum s3c24xx_dma_bus {
S3C24XX_DMA_APB,
S3C24XX_DMA_AHB,