projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7435bb7
)
mmc: dw_mmc: Fix DDR mode support.
author
Seungwon Jeon
<
[email protected]
>
Fri, 5 Aug 2011 03:35:03 +0000
(12:35 +0900)
committer
Chris Ball
<
[email protected]
>
Sat, 13 Aug 2011 18:50:32 +0000
(14:50 -0400)
Host driver can't get a hint of DDR mode through ios->ddr flag anymore.
ios->timing is currently used to inform DDR mode as a substitute.
And capability of MMC_CAP_MMC_HIGHSPEED is added for DDR support.
Signed-off-by: Seungwon Jeon <
[email protected]
>
Acked-by: Will Newton <
[email protected]
>
Signed-off-by: Chris Ball <
[email protected]
>
drivers/mmc/host/dw_mmc.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/host/dw_mmc.c
b/drivers/mmc/host/dw_mmc.c
index f13bb49dbc71734ec5aa5672e128741f6793bd14..ff0f714b012c0babf2b9faddcc36fe4647c87892 100644
(file)
--- a/
drivers/mmc/host/dw_mmc.c
+++ b/
drivers/mmc/host/dw_mmc.c
@@
-699,7
+699,7
@@
static void dw_mci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
}
/* DDR mode set */
- if (ios->
ddr
) {
+ if (ios->
timing == MMC_TIMING_UHS_DDR50
) {
regs = mci_readl(slot->host, UHS_REG);
regs |= (0x1 << slot->id) << 16;
mci_writel(slot->host, UHS_REG, regs);
@@
-1646,7
+1646,7
@@
static int __init dw_mci_init_slot(struct dw_mci *host, unsigned int id)
mmc->caps |= MMC_CAP_4_BIT_DATA;
if (host->pdata->quirks & DW_MCI_QUIRK_HIGHSPEED)
- mmc->caps |= MMC_CAP_SD_HIGHSPEED;
+ mmc->caps |= MMC_CAP_SD_HIGHSPEED
| MMC_CAP_MMC_HIGHSPEED
;
#ifdef CONFIG_MMC_DW_IDMAC
mmc->max_segs = host->ring_size;