summaryrefslogtreecommitdiff
path: root/drivers/mmc/host/sdhci.c
diff options
context:
space:
mode:
authorDong Aisheng <aisheng.dong@nxp.com>2017-05-11 16:08:08 +0800
committerLeonard Crestez <leonard.crestez@nxp.com>2018-08-24 12:41:33 +0300
commit58d23ce76adc15b04cd61012bd7e0b397aa40e4d (patch)
treee663b1fc31c6a5fc7a1d8c3243505f99e3f23280 /drivers/mmc/host/sdhci.c
parentabb3293ce692bb0b589f7c81e3de1456b65e40d0 (diff)
MLK-14884 mmc: sdhci: make DDR50 tuning optionally
DDR50 tuning is optinally defined in sd 3.0 spec. Per IC guys suggestion, it internally already uses a fixed optimized timing and normally does not require tuning. Make it optionally and platform can claim SDHCI_DDR50_NEEDS_TUNING support if it wants tuning. Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
Diffstat (limited to 'drivers/mmc/host/sdhci.c')
-rw-r--r--drivers/mmc/host/sdhci.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c
index 57ffee3b01a7..6fa993846f30 100644
--- a/drivers/mmc/host/sdhci.c
+++ b/drivers/mmc/host/sdhci.c
@@ -2005,11 +2005,12 @@ static int sdhci_execute_tuning(struct mmc_host *mmc, u32 opcode)
break;
case MMC_TIMING_UHS_SDR104:
- case MMC_TIMING_UHS_DDR50:
break;
case MMC_TIMING_UHS_SDR50:
- if (host->flags & SDHCI_SDR50_NEEDS_TUNING)
+ case MMC_TIMING_UHS_DDR50:
+ if ((host->flags & SDHCI_SDR50_NEEDS_TUNING) ||
+ (host->flags & SDHCI_DDR50_NEEDS_TUNING))
break;
/* FALLTHROUGH */