Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 65646
b: refs/heads/master
c: df456f4
h: refs/heads/master
v: v3
  • Loading branch information
Bridge Wu authored and Pierre Ossman committed Sep 25, 2007
1 parent 81605f1 commit caaeae4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fe2dc44eac1223a0e92859242f58fd2a58a6f8fa
refs/heads/master: df456f479aa6fdc812df51627c6f2c21d8a1aed8
10 changes: 9 additions & 1 deletion trunk/drivers/mmc/host/pxamci.c
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ static int pxamci_data_done(struct pxamci_host *host, unsigned int stat)
host->data = NULL;
if (host->mrq->stop) {
pxamci_stop_clock(host);
pxamci_start_cmd(host, host->mrq->stop, 0);
pxamci_start_cmd(host, host->mrq->stop, host->cmdat);
} else {
pxamci_finish_request(host, host->mrq);
}
Expand Down Expand Up @@ -382,6 +382,11 @@ static void pxamci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
host->cmdat |= CMDAT_INIT;
}

if (ios->bus_width == MMC_BUS_WIDTH_4)
host->cmdat |= CMDAT_SD_4DAT;
else
host->cmdat &= ~CMDAT_SD_4DAT;

pr_debug("PXAMCI: clkrt = %x cmdat = %x\n",
host->clkrt, host->cmdat);
}
Expand Down Expand Up @@ -460,6 +465,9 @@ static int pxamci_probe(struct platform_device *pdev)
mmc->ocr_avail = host->pdata ?
host->pdata->ocr_mask :
MMC_VDD_32_33|MMC_VDD_33_34;
mmc->caps = 0;
if (!cpu_is_pxa21x() && !cpu_is_pxa25x())
mmc->caps |= MMC_CAP_4_BIT_DATA;

host->sg_cpu = dma_alloc_coherent(&pdev->dev, PAGE_SIZE, &host->sg_dma, GFP_KERNEL);
if (!host->sg_cpu) {
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/mmc/host/pxamci.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#define SPI_EN (1 << 0)

#define MMC_CMDAT 0x0010
#define CMDAT_SD_4DAT (1 << 8)
#define CMDAT_DMAEN (1 << 7)
#define CMDAT_INIT (1 << 6)
#define CMDAT_BUSY (1 << 5)
Expand Down

0 comments on commit caaeae4

Please sign in to comment.