]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mmc: tmio: sdhi: Adjust DT2FF settings for HS400 mode
authorMarek Vasut <marek.vasut@gmail.com>
Sat, 23 Nov 2019 12:36:20 +0000 (13:36 +0100)
committerPeng Fan <peng.fan@nxp.com>
Wed, 27 Nov 2019 08:56:46 +0000 (16:56 +0800)
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>
drivers/mmc/renesas-sdhi.c

index 3f20a690a22d77ad2d7f2ed4795395e289de082d..8c96e5c8a4e75c65ffb6e63f37134f913e045955 100644 (file)
@@ -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);