diff options
author | Heiko Stuebner <heiko@sntech.de> | 2013-10-20 16:32:48 -0400 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2013-10-20 16:32:48 -0400 |
commit | 681a2fd26065f6147c1382b4f684df71fd5783aa (patch) | |
tree | 628e1b89ecbf8df2f6436fea455aa344e62e7901 /drivers/dma/s3c24xx-dma.c | |
parent | da2f5f4852fb44fe66f164c3d531aef7521af701 (diff) |
dmaengine: s3c24xx-dma: add support for the s3c2410 type of controller
The earliest variants of the dma controller did not contain support for
controlling clocks.
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Reviewed-by: Tomasz Figa <t.figa@samsung.com>
Acked-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'drivers/dma/s3c24xx-dma.c')
-rw-r--r-- | drivers/dma/s3c24xx-dma.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/dma/s3c24xx-dma.c b/drivers/dma/s3c24xx-dma.c index 56c92538bc4c..4cb127978636 100644 --- a/drivers/dma/s3c24xx-dma.c +++ b/drivers/dma/s3c24xx-dma.c | |||
@@ -1078,6 +1078,13 @@ static void s3c24xx_dma_free_virtual_channels(struct dma_device *dmadev) | |||
1078 | list_del(&chan->vc.chan.device_node); | 1078 | list_del(&chan->vc.chan.device_node); |
1079 | } | 1079 | } |
1080 | 1080 | ||
1081 | /* s3c2410, s3c2440 and s3c2442 have a 0x40 stride without separate clocks */ | ||
1082 | static struct soc_data soc_s3c2410 = { | ||
1083 | .stride = 0x40, | ||
1084 | .has_reqsel = false, | ||
1085 | .has_clocks = false, | ||
1086 | }; | ||
1087 | |||
1081 | /* s3c2412 and s3c2413 have a 0x40 stride and dmareqsel mechanism */ | 1088 | /* s3c2412 and s3c2413 have a 0x40 stride and dmareqsel mechanism */ |
1082 | static struct soc_data soc_s3c2412 = { | 1089 | static struct soc_data soc_s3c2412 = { |
1083 | .stride = 0x40, | 1090 | .stride = 0x40, |
@@ -1094,6 +1101,9 @@ static struct soc_data soc_s3c2443 = { | |||
1094 | 1101 | ||
1095 | static struct platform_device_id s3c24xx_dma_driver_ids[] = { | 1102 | static struct platform_device_id s3c24xx_dma_driver_ids[] = { |
1096 | { | 1103 | { |
1104 | .name = "s3c2410-dma", | ||
1105 | .driver_data = (kernel_ulong_t)&soc_s3c2410, | ||
1106 | }, { | ||
1097 | .name = "s3c2412-dma", | 1107 | .name = "s3c2412-dma", |
1098 | .driver_data = (kernel_ulong_t)&soc_s3c2412, | 1108 | .driver_data = (kernel_ulong_t)&soc_s3c2412, |
1099 | }, { | 1109 | }, { |