aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/core/host.c
diff options
context:
space:
mode:
authorSeungwon Jeon <tgih.jun@samsung.com>2014-04-23 04:15:08 -0400
committerChris Ball <chris@printf.net>2014-05-12 18:08:10 -0400
commitc373eb489b27b268c9b8c267b212d10864bc8cdd (patch)
tree4b12ba22b66763b392c0ab1b9e8335fa74b17cee /drivers/mmc/core/host.c
parent0a5b6438ee482696360bb013e67b8488f63d3e9e (diff)
mmc: core: add DT bindings for eMMC HS400 1.8/1.2V
Provide the option to configure these speed modes per host, for those host driver's that can't distinguish this in runtime. Specially, if host can support HS400, it means that host can also support HS200. Signed-off-by: Seungwon Jeon <tgih.jun@samsung.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Chris Ball <chris@printf.net>
Diffstat (limited to 'drivers/mmc/core/host.c')
-rw-r--r--drivers/mmc/core/host.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/mmc/core/host.c b/drivers/mmc/core/host.c
index fdea825dbb24..95cceae96944 100644
--- a/drivers/mmc/core/host.c
+++ b/drivers/mmc/core/host.c
@@ -447,6 +447,10 @@ int mmc_of_parse(struct mmc_host *host)
447 host->caps2 |= MMC_CAP2_HS200_1_8V_SDR; 447 host->caps2 |= MMC_CAP2_HS200_1_8V_SDR;
448 if (of_find_property(np, "mmc-hs200-1_2v", &len)) 448 if (of_find_property(np, "mmc-hs200-1_2v", &len))
449 host->caps2 |= MMC_CAP2_HS200_1_2V_SDR; 449 host->caps2 |= MMC_CAP2_HS200_1_2V_SDR;
450 if (of_find_property(np, "mmc-hs400-1_8v", &len))
451 host->caps2 |= MMC_CAP2_HS400_1_8V | MMC_CAP2_HS200_1_8V_SDR;
452 if (of_find_property(np, "mmc-hs400-1_2v", &len))
453 host->caps2 |= MMC_CAP2_HS400_1_2V | MMC_CAP2_HS200_1_2V_SDR;
450 454
451 return 0; 455 return 0;
452 456