ARM: s3c24xx: Remove S3C24XX_DMA dependency from S3C2410_DMA
Subsystems (3)
PATCH 1/6 ARM: s3c24xx: Remove S3C24XX_DMA dependency from S3C2410_DMA
S3C24XX_DMA enables legacy DMA driver, and since we want to move to introduced generic dmaengine s3c24xx-dma driver, it's necessary to remove this redundant dependency.
--- arch/arm/mach-s3c24xx/Kconfig | 1 - 1 file changed, 1 deletion(-)
arch/arm/mach-s3c24xx/Kconfig +0 -1
@@ -133,7 +133,6 @@ config S3C2410_DMA_DEBUG config S3C2410_DMA bool - depends on S3C24XX_DMA && (CPU_S3C2410 || CPU_S3C2442) help DMA device selection for S3C2410 and compatible CPUs
Signature · 1 line
2.0.0
PATCH 2/6 ARM: s3c24xx: add dma_coherent_mask for DMA devices
Otherwise dma_alloc_coherent() fails.
--- arch/arm/mach-s3c24xx/common.c | 2 ++ 1 file changed, 2 insertions(+)
arch/arm/mach-s3c24xx/common.c +2 -0
@@ -358,6 +358,7 @@ struct platform_device s3c2410_device_dma = { .resource = s3c2410_dma_resource, .dev = { .platform_data = &s3c2410_dma_platdata, + .coherent_dma_mask = ~0, }, };#endif
@@ -455,6 +456,7 @@ struct platform_device s3c2440_device_dma = { .resource = s3c2410_dma_resource, .dev = { .platform_data = &s3c2440_dma_platdata, + .coherent_dma_mask = ~0, }, };#endif
Signature · 1 line
2.0.0
PATCH 3/6 ARM: s3c24xx: h1940: Add DMA device
In reply to Vasily KhoruzhickAdd a corresponding device for a new dmaengine driver.
--- arch/arm/mach-s3c24xx/mach-h1940.c | 1 + 1 file changed, 1 insertion(+)
arch/arm/mach-s3c24xx/mach-h1940.c +1 -0
@@ -623,6 +623,7 @@ static struct platform_device h1940_dev_buttons = {static struct platform_device *h1940_devices[]__initdata = { &h1940_dev_buttons, + &s3c2410_device_dma, &s3c_device_ohci, &s3c_device_lcd, &s3c_device_wdt,
Signature · 1 line
2.0.0
PATCH 4/6 ARM: s3c24xx: DMA: SDI channel requires handshake
In reply to Vasily KhoruzhickAt least Windows Mobile driver enables it.
--- arch/arm/mach-s3c24xx/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-s3c24xx/common.c +1 -1
@@ -322,7 +322,7 @@ static struct resource s3c2410_dma_resource[] = {static struct s3c24xx_dma_channel s3c2410_dma_channels[DMACH_MAX ] = { [DMACH_XD0 ] = {S3C24XX_DMA_AHB , true,S3C24XX_DMA_CHANREQ (0 ,0 ), }, [DMACH_XD1 ] = {S3C24XX_DMA_AHB , true,S3C24XX_DMA_CHANREQ (0 ,1 ), }, - [DMACH_SDI ] = {S3C24XX_DMA_APB , false,S3C24XX_DMA_CHANREQ (2 ,0 ) | + [DMACH_SDI ] = {S3C24XX_DMA_APB , true,S3C24XX_DMA_CHANREQ (2 ,0 ) |S3C24XX_DMA_CHANREQ (2 ,2 ) |S3C24XX_DMA_CHANREQ (1 ,3 ), },
Signature · 1 line
2.0.0
PATCH 5/6 ARM: s3c24xx: Kconfig: Fix unmet dependency on S3C2440_PLL_* symbols for S3C2442
In reply to Vasily KhoruzhickIt's possible to build kernel with S3C2442, but without S3C2440 support, and some S3C2442 machines depend on CONFIG_S3C2440_PLL_16934400
--- arch/arm/mach-s3c24xx/Kconfig | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-)
arch/arm/mach-s3c24xx/Kconfig +9 -6
@@ -437,12 +437,7 @@ config MACH_S3C2416_DT endif # CPU_S3C2416 -if CPU_S3C2440 - -config S3C2440_DMA - bool - help - Support for S3C2440 specific DMA code5A +if CPU_S3C2440 || CPU_S3C2442 config S3C2440_XTAL_12000000 bool
@@ -469,6 +464,14 @@ config S3C2440_PLL_16934400 default y if S3C24XX_PLL help PLL tables for S3C2440 or S3C2442 CPUs with 16.934MHz crystals. +endif + +if CPU_S3C2440 + +config S3C2440_DMA + bool + help + Support for S3C2440 specific DMA code5A comment "S3C2440 Boards"
Signature · 1 line
2.0.0
PATCH 6/6 ARM: s3c24xx: RX1950: Add DMA device
In reply to Vasily KhoruzhickAdd a corresponding device for a new dmaengine driver.
--- arch/arm/mach-s3c24xx/mach-rx1950.c | 1 + 1 file changed, 1 insertion(+)
arch/arm/mach-s3c24xx/mach-rx1950.c +1 -0
@@ -710,6 +710,7 @@ static struct i2c_board_info rx1950_i2c_devices[] = {static struct platform_device *rx1950_devices[]__initdata = { &s3c2410_device_dclk, + &s3c2410_device_dma, &s3c_device_lcd, &s3c_device_wdt, &s3c_device_i2c0,
Signature · 1 line
2.0.0