22 #include <mach/adma.h>
25 #ifdef CONFIG_ARCH_IOP32X
26 #define IRQ_DMA0_EOT IRQ_IOP32X_DMA0_EOT
27 #define IRQ_DMA0_EOC IRQ_IOP32X_DMA0_EOC
28 #define IRQ_DMA0_ERR IRQ_IOP32X_DMA0_ERR
30 #define IRQ_DMA1_EOT IRQ_IOP32X_DMA1_EOT
31 #define IRQ_DMA1_EOC IRQ_IOP32X_DMA1_EOC
32 #define IRQ_DMA1_ERR IRQ_IOP32X_DMA1_ERR
34 #define IRQ_AA_EOT IRQ_IOP32X_AA_EOT
35 #define IRQ_AA_EOC IRQ_IOP32X_AA_EOC
36 #define IRQ_AA_ERR IRQ_IOP32X_AA_ERR
38 #ifdef CONFIG_ARCH_IOP33X
39 #define IRQ_DMA0_EOT IRQ_IOP33X_DMA0_EOT
40 #define IRQ_DMA0_EOC IRQ_IOP33X_DMA0_EOC
41 #define IRQ_DMA0_ERR IRQ_IOP33X_DMA0_ERR
43 #define IRQ_DMA1_EOT IRQ_IOP33X_DMA1_EOT
44 #define IRQ_DMA1_EOC IRQ_IOP33X_DMA1_EOC
45 #define IRQ_DMA1_ERR IRQ_IOP33X_DMA1_ERR
47 #define IRQ_AA_EOT IRQ_IOP33X_AA_EOT
48 #define IRQ_AA_EOC IRQ_IOP33X_AA_EOC
49 #define IRQ_AA_ERR IRQ_IOP33X_AA_ERR
52 static struct resource iop3xx_dma_0_resources[] = {
59 .start = IRQ_DMA0_EOT,
64 .start = IRQ_DMA0_EOC,
69 .start = IRQ_DMA0_ERR,
75 static struct resource iop3xx_dma_1_resources[] = {
82 .start = IRQ_DMA1_EOT,
87 .start = IRQ_DMA1_EOC,
92 .start = IRQ_DMA1_ERR,
99 static struct resource iop3xx_aau_resources[] = {
143 .resource = iop3xx_dma_0_resources,
145 .dma_mask = &iop3xx_adma_dmamask,
147 .platform_data = (
void *) &iop3xx_dma_0_data,
155 .resource = iop3xx_dma_1_resources,
157 .dma_mask = &iop3xx_adma_dmamask,
159 .platform_data = (
void *) &iop3xx_dma_1_data,
167 .resource = iop3xx_aau_resources,
169 .dma_mask = &iop3xx_adma_dmamask,
171 .platform_data = (
void *) &iop3xx_aau_data,
175 static int __init iop3xx_adma_cap_init(
void)
177 #ifdef CONFIG_ARCH_IOP32X
185 #ifdef CONFIG_ARCH_IOP32X
193 #ifdef CONFIG_ARCH_IOP32X