summaryrefslogtreecommitdiff
path: root/drivers/mmc/renesas-sdhi.c
diff options
context:
space:
mode:
authorMarek Vasut <marek.vasut@gmail.com>2019-11-23 15:36:19 +0300
committerPeng Fan <peng.fan@nxp.com>2019-11-27 11:56:46 +0300
commit810998871aba753b2f233a397981fd4141a8c98c (patch)
treeaabd75e5962cbb41325a755aeb5a269187377894 /drivers/mmc/renesas-sdhi.c
parent37c399066409f0923cbe45b49cf0a12c85afe4f4 (diff)
downloadu-boot-810998871aba753b2f233a397981fd4141a8c98c.tar.xz
mmc: tmio: sdhi: Use 4 tuning taps on M3W up to ES1.2
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>
Diffstat (limited to 'drivers/mmc/renesas-sdhi.c')
-rw-r--r--drivers/mmc/renesas-sdhi.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/mmc/renesas-sdhi.c b/drivers/mmc/renesas-sdhi.c
index 2f34173d03..3f20a690a2 100644
--- a/drivers/mmc/renesas-sdhi.c
+++ b/drivers/mmc/renesas-sdhi.c
@@ -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;