Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 284501
b: refs/heads/master
c: 4f408cc
h: refs/heads/master
i:
  284499: 34ce9b2
v: v3
  • Loading branch information
Seungwon Jeon authored and Chris Ball committed Jan 12, 2012
1 parent 079ba8e commit 67431f6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6fe8890d0200ea0c2b7d83936d58f97d7ba7c1ff
refs/heads/master: 4f408cc67a0613f969d1e02fff6de74d31a29fb3
6 changes: 6 additions & 0 deletions trunk/drivers/mmc/host/dw_mmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1681,6 +1681,12 @@ static int __init dw_mci_init_slot(struct dw_mci *host, unsigned int id)
else
mmc->caps = 0;

if (host->pdata->caps2)
mmc->caps2 = host->pdata->caps2;
else
mmc->caps2 = 0;


if (host->pdata->get_bus_wd)
if (host->pdata->get_bus_wd(slot->id) >= 4)
mmc->caps |= MMC_CAP_4_BIT_DATA;
Expand Down
1 change: 1 addition & 0 deletions trunk/include/linux/mmc/dw_mmc.h
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ struct dw_mci_board {
unsigned int bus_hz; /* Bus speed */

unsigned int caps; /* Capabilities */
unsigned int caps2; /* More capabilities */
/*
* Override fifo depth. If 0, autodetect it from the FIFOTH register,
* but note that this may not be reliable after a bootloader has used
Expand Down

0 comments on commit 67431f6

Please sign in to comment.