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-qsd8x50.c b/arch/arm/mach-msm/devices-qsd8x50.c
index c0caf70..901e777 100644
--- a/arch/arm/mach-msm/devices-qsd8x50.c
+++ b/arch/arm/mach-msm/devices-qsd8x50.c
@@ -469,10 +469,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[] = {
@@ -487,10 +494,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[] = {
@@ -505,8 +519,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,
},
};
@@ -523,8 +544,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,
},
};