|
@@ -51,7 +51,7 @@ static struct s3c24xx_dma_map __initdata s3c2443_dma_mappings[] = {
|
|
.name = "xdreq1",
|
|
.name = "xdreq1",
|
|
.channels = MAP(S3C2443_DMAREQSEL_XDREQ1),
|
|
.channels = MAP(S3C2443_DMAREQSEL_XDREQ1),
|
|
},
|
|
},
|
|
- [DMACH_SDI] = {
|
|
|
|
|
|
+ [DMACH_SDI] = { /* only on S3C2443 */
|
|
.name = "sdi",
|
|
.name = "sdi",
|
|
.channels = MAP(S3C2443_DMAREQSEL_SDI),
|
|
.channels = MAP(S3C2443_DMAREQSEL_SDI),
|
|
},
|
|
},
|
|
@@ -59,7 +59,7 @@ static struct s3c24xx_dma_map __initdata s3c2443_dma_mappings[] = {
|
|
.name = "spi0",
|
|
.name = "spi0",
|
|
.channels = MAP(S3C2443_DMAREQSEL_SPI0TX),
|
|
.channels = MAP(S3C2443_DMAREQSEL_SPI0TX),
|
|
},
|
|
},
|
|
- [DMACH_SPI1] = {
|
|
|
|
|
|
+ [DMACH_SPI1] = { /* only on S3C2443/S3C2450 */
|
|
.name = "spi1",
|
|
.name = "spi1",
|
|
.channels = MAP(S3C2443_DMAREQSEL_SPI1TX),
|
|
.channels = MAP(S3C2443_DMAREQSEL_SPI1TX),
|
|
},
|
|
},
|
|
@@ -141,6 +141,23 @@ static int __init s3c2443_dma_add(struct device *dev)
|
|
return s3c24xx_dma_init_map(&s3c2443_dma_sel);
|
|
return s3c24xx_dma_init_map(&s3c2443_dma_sel);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+#ifdef CONFIG_CPU_S3C2416
|
|
|
|
+/* S3C2416 DMA contains the same selection table as the S3C2443 */
|
|
|
|
+static struct subsys_interface s3c2416_dma_interface = {
|
|
|
|
+ .name = "s3c2416_dma",
|
|
|
|
+ .subsys = &s3c2416_subsys,
|
|
|
|
+ .add_dev = s3c2443_dma_add,
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+static int __init s3c2416_dma_init(void)
|
|
|
|
+{
|
|
|
|
+ return subsys_interface_register(&s3c2416_dma_interface);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+arch_initcall(s3c2416_dma_init);
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
+#ifdef CONFIG_CPU_S3C2443
|
|
static struct subsys_interface s3c2443_dma_interface = {
|
|
static struct subsys_interface s3c2443_dma_interface = {
|
|
.name = "s3c2443_dma",
|
|
.name = "s3c2443_dma",
|
|
.subsys = &s3c2443_subsys,
|
|
.subsys = &s3c2443_subsys,
|
|
@@ -153,3 +170,4 @@ static int __init s3c2443_dma_init(void)
|
|
}
|
|
}
|
|
|
|
|
|
arch_initcall(s3c2443_dma_init);
|
|
arch_initcall(s3c2443_dma_init);
|
|
|
|
+#endif
|