diff options
author | Marek Vasut <marek.vasut@gmail.com> | 2019-11-23 13:36:20 +0100 |
---|---|---|
committer | Peng Fan <peng.fan@nxp.com> | 2019-11-27 16:56:46 +0800 |
commit | dc419fc6e134b52b66945ab63324271f788d4d46 (patch) | |
tree | 9228ea202e2fd95a03505df89c1d3019582202d3 | |
parent | 810998871aba753b2f233a397981fd4141a8c98c (diff) | |
download | u-boot-dc419fc6e134b52b66945ab63324271f788d4d46.zip u-boot-dc419fc6e134b52b66945ab63324271f788d4d46.tar.gz u-boot-dc419fc6e134b52b66945ab63324271f788d4d46.tar.bz2 |
mmc: tmio: sdhi: Adjust DT2FF settings for HS400 mode
Adjust the DT2FF offsets in HS400 according to latest information
from the chip vendor.
Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
-rw-r--r-- | drivers/mmc/renesas-sdhi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/mmc/renesas-sdhi.c b/drivers/mmc/renesas-sdhi.c index 3f20a69..8c96e5c 100644 --- a/drivers/mmc/renesas-sdhi.c +++ b/drivers/mmc/renesas-sdhi.c @@ -253,13 +253,13 @@ static int renesas_sdhi_hs400(struct udevice *dev) if (taps == 4) { tmio_sd_writel(priv, priv->tap_set >> 1, RENESAS_SDHI_SCC_TAPSET); + tmio_sd_writel(priv, hs400 ? 0x100 : 0x300, + RENESAS_SDHI_SCC_DT2FF); } else { tmio_sd_writel(priv, priv->tap_set, RENESAS_SDHI_SCC_TAPSET); + tmio_sd_writel(priv, 0x300, RENESAS_SDHI_SCC_DT2FF); } - tmio_sd_writel(priv, hs400 ? 0x704 : 0x300, - RENESAS_SDHI_SCC_DT2FF); - reg = tmio_sd_readl(priv, RENESAS_SDHI_SCC_CKSEL); reg |= RENESAS_SDHI_SCC_CKSEL_DTSEL; tmio_sd_writel(priv, reg, RENESAS_SDHI_SCC_CKSEL); |