ARM: SAMSUNG: set s3c24xx_dma_filter for s3c64xx-spi0 device
From: Heiko Stuebner <heiko@...> Date: Sat, 11 May 2013 13:32:35 +0200
Commit-Message
The spi-s3c64xx device is also used on the s3c2416 and s3c2443 SoCs. The driver also already uses only generic dma-engine operations. Therefore add another elif to set the s3c24xx filter. Signed-off-by: Heiko Stuebner <heiko@...>
Patch-Comment
arch/arm/plat-samsung/devs.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
Statistics
- 4 lines added
- 1 lines removed
Changes
------------------------- arch/arm/plat-samsung/devs.c -------------------------
index 0f9c3f4..fab458f 100644
@@ -32,6 +32,7 @@
#include <linux/ioport.h>
#include <linux/platform_data/s3c-hsudc.h>
#include <linux/platform_data/s3c-hsotg.h>
+#include <linux/platform_data/dma-s3c24xx.h>
#include <media/s5p_hdmi.h>
@@ -1513,8 +1514,10 @@ void __init s3c64xx_spi0_set_platdata(int (*cfg_gpio)(void), int src_clk_nr,
pd.num_cs = num_cs;
pd.src_clk_nr = src_clk_nr;
pd.cfg_gpio = (cfg_gpio) ? cfg_gpio : s3c64xx_spi0_cfg_gpio;
+#if defined(CONFIG_PL330_DMA)
pd.filter = pl330_filter;
+#elif defined(CONFIG_S3C24XX_DMAC)
+ pd.filter = s3c24xx_dma_filter;
#endif
s3c_set_platdata(&pd, sizeof(pd), &s3c64xx_device_spi0);