Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 336322
b: refs/heads/master
c: b2f7cb4
h: refs/heads/master
v: v3
  • Loading branch information
Jaehoon Chung authored and Chris Ball committed Dec 6, 2012
1 parent f5867ef commit 651a7dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 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: bf7cb2244c80b1390c51dfc33a88b56ce88a8986
refs/heads/master: b2f7cb45c0ac0852b4b0ba938388ab24c91d6b2d
9 changes: 3 additions & 6 deletions trunk/drivers/mmc/host/dw_mmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -773,19 +773,16 @@ static void dw_mci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
const struct dw_mci_drv_data *drv_data = slot->host->drv_data;
u32 regs;

/* set default 1 bit mode */
slot->ctype = SDMMC_CTYPE_1BIT;

switch (ios->bus_width) {
case MMC_BUS_WIDTH_1:
slot->ctype = SDMMC_CTYPE_1BIT;
break;
case MMC_BUS_WIDTH_4:
slot->ctype = SDMMC_CTYPE_4BIT;
break;
case MMC_BUS_WIDTH_8:
slot->ctype = SDMMC_CTYPE_8BIT;
break;
default:
/* set default 1 bit mode */
slot->ctype = SDMMC_CTYPE_1BIT;
}

regs = mci_readl(slot->host, UHS_REG);
Expand Down

0 comments on commit 651a7dd

Please sign in to comment.