summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWolfram Sang2016-12-12 20:51:26 +0100
committerUlf Hansson2017-02-13 13:19:52 +0100
commitb1c95170f97ef19ff63a6da1eb2c70899186aecc (patch)
tree3d36c2449f117a1ff4ae0f82db2bc208d262e37e
parentmmc: sh_mobile_sdhi: remove superfluous check in SCC error check (diff)
downloadkernel-qcow2-linux-b1c95170f97ef19ff63a6da1eb2c70899186aecc.tar.gz
kernel-qcow2-linux-b1c95170f97ef19ff63a6da1eb2c70899186aecc.tar.xz
kernel-qcow2-linux-b1c95170f97ef19ff63a6da1eb2c70899186aecc.zip
mmc: sh_mobile_sdhi: enable HS200
Setup tuning when the board is HS200 enabled. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
-rw-r--r--drivers/mmc/host/sh_mobile_sdhi.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/mmc/host/sh_mobile_sdhi.c b/drivers/mmc/host/sh_mobile_sdhi.c
index 72c2dbc74c9f..59db14b4827c 100644
--- a/drivers/mmc/host/sh_mobile_sdhi.c
+++ b/drivers/mmc/host/sh_mobile_sdhi.c
@@ -651,7 +651,9 @@ static int sh_mobile_sdhi_probe(struct platform_device *pdev)
goto efree;
/* Enable tuning iff we have an SCC and a supported mode */
- if (of_data && of_data->scc_offset && host->mmc->caps & MMC_CAP_UHS_SDR104) {
+ if (of_data && of_data->scc_offset &&
+ (host->mmc->caps & MMC_CAP_UHS_SDR104 ||
+ host->mmc->caps2 & MMC_CAP2_HS200_1_8V_SDR)) {
const struct sh_mobile_sdhi_scc *taps = of_data->taps;
bool hit = false;