diff options
author | Marek Vasut <marek.vasut+renesas@gmail.com> | 2019-02-19 19:20:14 +0100 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2019-02-25 16:07:41 +0100 |
commit | 5d6888418c1185a00eda01349b03b56b03cefda5 (patch) | |
tree | cd50d12d12b83aae4681fada5df544645217024b /drivers/mmc | |
parent | d9dcf9da9619f80985c1bd77c8b251dd3a3a1b48 (diff) | |
download | u-boot-5d6888418c1185a00eda01349b03b56b03cefda5.tar.gz |
mmc: tmio: Clear BUSWIDTH bit when WMODE bit is set
According to latest specification rev.0026, when HOST_MODE bit 0
(WMODE) is not set, HOST_MODE bit 8 (BUSWIDTH) is ignored. Clear
HOST_MODE bit 8 in such case and align the code with Linux and
avoid possible unforeseen issues.
Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/tmio-common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/tmio-common.c b/drivers/mmc/tmio-common.c index 6e656e5a9b..01d8c2b925 100644 --- a/drivers/mmc/tmio-common.c +++ b/drivers/mmc/tmio-common.c @@ -707,7 +707,7 @@ static void tmio_sd_host_init(struct tmio_sd_priv *priv) */ if (priv->version >= 0x10) { if (priv->caps & TMIO_SD_CAP_64BIT) - tmio_sd_writel(priv, 0x100, TMIO_SD_HOST_MODE); + tmio_sd_writel(priv, 0x000, TMIO_SD_HOST_MODE); else tmio_sd_writel(priv, 0x101, TMIO_SD_HOST_MODE); } else { |