aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/pxamci.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mmc/host/pxamci.c')
-rw-r--r--drivers/mmc/host/pxamci.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/drivers/mmc/host/pxamci.c b/drivers/mmc/host/pxamci.c
index 67acc6a00895..6549f546df55 100644
--- a/drivers/mmc/host/pxamci.c
+++ b/drivers/mmc/host/pxamci.c
@@ -284,7 +284,7 @@ static int pxamci_data_done(struct pxamci_host *host, unsigned int stat)
284 host->data = NULL; 284 host->data = NULL;
285 if (host->mrq->stop) { 285 if (host->mrq->stop) {
286 pxamci_stop_clock(host); 286 pxamci_stop_clock(host);
287 pxamci_start_cmd(host, host->mrq->stop, 0); 287 pxamci_start_cmd(host, host->mrq->stop, host->cmdat);
288 } else { 288 } else {
289 pxamci_finish_request(host, host->mrq); 289 pxamci_finish_request(host, host->mrq);
290 } 290 }
@@ -382,6 +382,11 @@ static void pxamci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
382 host->cmdat |= CMDAT_INIT; 382 host->cmdat |= CMDAT_INIT;
383 } 383 }
384 384
385 if (ios->bus_width == MMC_BUS_WIDTH_4)
386 host->cmdat |= CMDAT_SD_4DAT;
387 else
388 host->cmdat &= ~CMDAT_SD_4DAT;
389
385 pr_debug("PXAMCI: clkrt = %x cmdat = %x\n", 390 pr_debug("PXAMCI: clkrt = %x cmdat = %x\n",
386 host->clkrt, host->cmdat); 391 host->clkrt, host->cmdat);
387} 392}
@@ -460,6 +465,9 @@ static int pxamci_probe(struct platform_device *pdev)
460 mmc->ocr_avail = host->pdata ? 465 mmc->ocr_avail = host->pdata ?
461 host->pdata->ocr_mask : 466 host->pdata->ocr_mask :
462 MMC_VDD_32_33|MMC_VDD_33_34; 467 MMC_VDD_32_33|MMC_VDD_33_34;
468 mmc->caps = 0;
469 if (!cpu_is_pxa21x() && !cpu_is_pxa25x())
470 mmc->caps |= MMC_CAP_4_BIT_DATA;
463 471
464 host->sg_cpu = dma_alloc_coherent(&pdev->dev, PAGE_SIZE, &host->sg_dma, GFP_KERNEL); 472 host->sg_cpu = dma_alloc_coherent(&pdev->dev, PAGE_SIZE, &host->sg_dma, GFP_KERNEL);
465 if (!host->sg_cpu) { 473 if (!host->sg_cpu) {