diff options
author | San Mehat <san@google.com> | 2010-02-03 15:59:29 -0500 |
---|---|---|
committer | Daniel Walker <dwalker@codeaurora.org> | 2010-03-18 16:37:24 -0400 |
commit | 1cd2296909e77702c68021ede9d87a1d967a6a99 (patch) | |
tree | bfd7f91e16d7384cb8b09e287e6e5923909ce729 /drivers/mmc | |
parent | d0719e59f4ad96616f7c02ef0201667e41778c88 (diff) |
drivers: mmc: msm_sdcc: Add EMBEDDED_SDIO support
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/host/msm_sdcc.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/drivers/mmc/host/msm_sdcc.c b/drivers/mmc/host/msm_sdcc.c index 47b1f2526521..b40558e18e87 100644 --- a/drivers/mmc/host/msm_sdcc.c +++ b/drivers/mmc/host/msm_sdcc.c | |||
@@ -616,7 +616,7 @@ msmsdcc_spin_on_status(struct msmsdcc_host *host, uint32_t mask, int maxspin) | |||
616 | return -ETIMEDOUT; | 616 | return -ETIMEDOUT; |
617 | } | 617 | } |
618 | 618 | ||
619 | static int | 619 | static irqreturn_t |
620 | msmsdcc_pio_irq(int irq, void *dev_id) | 620 | msmsdcc_pio_irq(int irq, void *dev_id) |
621 | { | 621 | { |
622 | struct msmsdcc_host *host = dev_id; | 622 | struct msmsdcc_host *host = dev_id; |
@@ -801,7 +801,6 @@ msmsdcc_irq(int irq, void *dev_id) | |||
801 | spin_lock(&host->lock); | 801 | spin_lock(&host->lock); |
802 | 802 | ||
803 | do { | 803 | do { |
804 | struct mmc_data *data; | ||
805 | status = msmsdcc_readl(host, MMCISTATUS); | 804 | status = msmsdcc_readl(host, MMCISTATUS); |
806 | status &= (msmsdcc_readl(host, MMCIMASK0) | | 805 | status &= (msmsdcc_readl(host, MMCIMASK0) | |
807 | MCI_DATABLOCKENDMASK); | 806 | MCI_DATABLOCKENDMASK); |
@@ -1145,6 +1144,15 @@ msmsdcc_probe(struct platform_device *pdev) | |||
1145 | host->dmares = dmares; | 1144 | host->dmares = dmares; |
1146 | spin_lock_init(&host->lock); | 1145 | spin_lock_init(&host->lock); |
1147 | 1146 | ||
1147 | #ifdef CONFIG_MMC_EMBEDDED_SDIO | ||
1148 | if (plat->embedded_sdio) | ||
1149 | mmc_set_embedded_sdio_data(mmc, | ||
1150 | &plat->embedded_sdio->cis, | ||
1151 | &plat->embedded_sdio->cccr, | ||
1152 | plat->embedded_sdio->funcs, | ||
1153 | plat->embedded_sdio->num_funcs); | ||
1154 | #endif | ||
1155 | |||
1148 | /* | 1156 | /* |
1149 | * Setup DMA | 1157 | * Setup DMA |
1150 | */ | 1158 | */ |