diff options
author | Heiko Stuebner <heiko@sntech.de> | 2013-10-21 05:32:48 +0900 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2013-10-21 05:32:48 +0900 |
commit | 1fecf8958eb7f90791f2c7e99afac393b64fa976 (patch) | |
tree | 9971cafc2f2b710e6e56f1b684ec54bf43a4523b /include/linux/platform_data/dma-s3c24xx.h | |
parent | 681a2fd26065f6147c1382b4f684df71fd5783aa (diff) | |
download | linux-stable-1fecf8958eb7f90791f2c7e99afac393b64fa976.tar.gz linux-stable-1fecf8958eb7f90791f2c7e99afac393b64fa976.tar.bz2 linux-stable-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/linux/platform_data/dma-s3c24xx.h')
-rw-r--r-- | include/linux/platform_data/dma-s3c24xx.h | 3 |
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, |