diff options
author | Ryan QIAN <b32804@freescale.com> | 2012-07-24 12:33:40 +0800 |
---|---|---|
committer | Nitin Garg <nitin.garg@freescale.com> | 2014-06-03 22:54:48 -0500 |
commit | f907a5b715b17287f7a594a4570d7ca68fc35b53 (patch) | |
tree | 74551fae048a5432fc23063c0d0b11a085b593bd /drivers/mmc | |
parent | 66b45b90dda6c9e66197ff8471f3719f3c941872 (diff) |
ENGR00217936-02 mmc: esdhc: fix unknown controller version for usdhc
- Add cpu_is_mx6dq, cpu_is_mx6dl to strengthen the condition.
Note: mx6sl has no such issue because it's fixed by IC, in other word,
mx6sl aligns with sdhc specification.
Signed-off-by: Ryan QIAN <b32804@freescale.com>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/host/sdhci-esdhc-imx.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c b/drivers/mmc/host/sdhci-esdhc-imx.c index 11111855bb8b..3f809a6c87f3 100644 --- a/drivers/mmc/host/sdhci-esdhc-imx.c +++ b/drivers/mmc/host/sdhci-esdhc-imx.c @@ -364,8 +364,9 @@ static u16 esdhc_readw_le(struct sdhci_host *host, int reg) case SDHCI_HOST_VERSION: reg ^= 2; val = readl(host->ioaddr + reg); - if (((val & SDHCI_SPEC_VER_MASK) >> SDHCI_SPEC_VER_SHIFT) - == SDHCI_FSL_SVN_300) { + if ((cpu_is_mx6q() || cpu_is_mx6dl()) && + ((val & SDHCI_SPEC_VER_MASK) >> SDHCI_SPEC_VER_SHIFT) + == SDHCI_FSL_SVN_300) { val &= ~SDHCI_SPEC_VER_MASK; val |= SDHCI_SPEC_300; } |