mmc: msm_sdcc: Move DMA CRCIs to device resources.
Instead of using the CRCIs directly in the MMC driver, pass them
to the driver via device resources.
Signed-off-by: Krishna Konda <kkonda@codeaurora.org>
diff --git a/arch/arm/mach-msm/devices-msm7x25.c b/arch/arm/mach-msm/devices-msm7x25.c
index 748229e..f0b24d7 100644
--- a/arch/arm/mach-msm/devices-msm7x25.c
+++ b/arch/arm/mach-msm/devices-msm7x25.c
@@ -438,10 +438,17 @@
.flags = IORESOURCE_IRQ,
},
{
- .start = 8,
- .end = 8,
+ .name = "sdcc_dma_chnl",
+ .start = DMOV_SDC1_CHAN,
+ .end = DMOV_SDC1_CHAN,
.flags = IORESOURCE_DMA,
},
+ {
+ .name = "sdcc_dma_crci",
+ .start = DMOV_SDC1_CRCI,
+ .end = DMOV_SDC1_CRCI,
+ .flags = IORESOURCE_DMA,
+ }
};
static struct resource resources_sdc2[] = {
@@ -456,10 +463,17 @@
.flags = IORESOURCE_IRQ,
},
{
- .start = 8,
- .end = 8,
+ .name = "sdcc_dma_chnl",
+ .start = DMOV_SDC2_CHAN,
+ .end = DMOV_SDC2_CHAN,
.flags = IORESOURCE_DMA,
},
+ {
+ .name = "sdcc_dma_crci",
+ .start = DMOV_SDC2_CRCI,
+ .end = DMOV_SDC2_CRCI,
+ .flags = IORESOURCE_DMA,
+ }
};
static struct resource resources_sdc3[] = {
@@ -474,8 +488,15 @@
.flags = IORESOURCE_IRQ,
},
{
- .start = 8,
- .end = 8,
+ .name = "sdcc_dma_chnl",
+ .start = DMOV_SDC3_CHAN,
+ .end = DMOV_SDC3_CHAN,
+ .flags = IORESOURCE_DMA,
+ },
+ {
+ .name = "sdcc_dma_crci",
+ .start = DMOV_SDC3_CRCI,
+ .end = DMOV_SDC3_CRCI,
.flags = IORESOURCE_DMA,
},
};
@@ -492,8 +513,15 @@
.flags = IORESOURCE_IRQ,
},
{
- .start = 8,
- .end = 8,
+ .name = "sdcc_dma_chnl",
+ .start = DMOV_SDC4_CHAN,
+ .end = DMOV_SDC4_CHAN,
+ .flags = IORESOURCE_DMA,
+ },
+ {
+ .name = "sdcc_dma_crci",
+ .start = DMOV_SDC4_CRCI,
+ .end = DMOV_SDC4_CRCI,
.flags = IORESOURCE_DMA,
},
};