mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-03-16 23:07:00 +00:00
mmc: tmio: sdhi: Touch SCC only when UHS capable
Add check to avoid touching the SCC tuning registers in case the IP doesn't support them or if the support isn't in place yet. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
This commit is contained in:
parent
c83da2ebc0
commit
52e1796883
1 changed files with 3 additions and 2 deletions
|
@ -294,7 +294,8 @@ static int renesas_sdhi_set_ios(struct udevice *dev)
|
|||
#if CONFIG_IS_ENABLED(MMC_HS200_SUPPORT)
|
||||
struct tmio_sd_priv *priv = dev_get_priv(dev);
|
||||
|
||||
renesas_sdhi_reset_tuning(priv);
|
||||
if (priv->caps & TMIO_SD_CAP_RCAR_UHS)
|
||||
renesas_sdhi_reset_tuning(priv);
|
||||
#endif
|
||||
|
||||
return ret;
|
||||
|
@ -373,7 +374,7 @@ static int renesas_sdhi_probe(struct udevice *dev)
|
|||
|
||||
ret = tmio_sd_probe(dev, quirks);
|
||||
#if CONFIG_IS_ENABLED(MMC_HS200_SUPPORT)
|
||||
if (!ret)
|
||||
if (!ret && (priv->caps & TMIO_SD_CAP_RCAR_UHS))
|
||||
renesas_sdhi_reset_tuning(priv);
|
||||
#endif
|
||||
return ret;
|
||||
|
|
Loading…
Add table
Reference in a new issue