]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mmc: tmio: sdhi: Use 4 tuning taps on M3W up to ES1.2
authorMarek Vasut <marek.vasut@gmail.com>
Sat, 23 Nov 2019 12:36:19 +0000 (13:36 +0100)
committerPeng Fan <peng.fan@nxp.com>
Wed, 27 Nov 2019 08:56:46 +0000 (16:56 +0800)
The M3W up to ES1.2 uses 4 tuning taps for HS400, make it so.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
drivers/mmc/renesas-sdhi.c

index 2f34173d037508d7e42832ad2ab7bf3822419fb0..3f20a690a22d77ad2d7f2ed4795395e289de082d 100644 (file)
@@ -622,9 +622,12 @@ static void renesas_sdhi_filter_caps(struct udevice *dev)
                priv->adjust_hs400_calibrate = 0x2;
        }
 
-       /* H3 ES2.0 uses 4 tuning taps */
-       if ((rmobile_get_cpu_type() == RMOBILE_CPU_TYPE_R8A7795) &&
-           (rmobile_get_cpu_rev_integer() == 2))
+       /* H3 ES1.x, ES2.0 and M3W ES1.0, ES1.1, ES1.2 uses 4 tuning taps */
+       if (((rmobile_get_cpu_type() == RMOBILE_CPU_TYPE_R8A7795) &&
+           (rmobile_get_cpu_rev_integer() <= 2)) ||
+           ((rmobile_get_cpu_type() == RMOBILE_CPU_TYPE_R8A7796) &&
+           (rmobile_get_cpu_rev_integer() == 1) &&
+           (rmobile_get_cpu_rev_fraction() <= 2)))
                priv->nrtaps = 4;
        else
                priv->nrtaps = 8;