summaryrefslogtreecommitdiff
path: root/drivers/mmc/host/dw_mmc.c
diff options
context:
space:
mode:
authorSeungwon Jeon <tgih.jun@samsung.com>2011-12-09 05:55:52 (GMT)
committerChris Ball <cjb@laptop.org>2012-01-12 04:58:44 (GMT)
commit4f408cc67a0613f969d1e02fff6de74d31a29fb3 (patch)
treef2e88972eccf39a607245eeabb0e20141f1e4f44 /drivers/mmc/host/dw_mmc.c
parent6fe8890d0200ea0c2b7d83936d58f97d7ba7c1ff (diff)
downloadlinux-4f408cc67a0613f969d1e02fff6de74d31a29fb3.tar.xz
mmc: dw_mmc: Add more capabilities field
This patch adds another capabilities field for MMC_CAPS2_XXX. Signed-off-by: Seungwon Jeon <tgih.jun@samsung.com> Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc/host/dw_mmc.c')
-rw-r--r--drivers/mmc/host/dw_mmc.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c
index 44bc11e..69e5889 100644
--- a/drivers/mmc/host/dw_mmc.c
+++ b/drivers/mmc/host/dw_mmc.c
@@ -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;