[U-Boot] [PATCH] mmc: sh_mmcif: RZ/A1 does not support HS mode

Chris Brandt chris.brandt at renesas.com
Mon Nov 13 20:41:39 UTC 2017


Since RZ/A1 (R7S72100) does not support HS mode, remove it from the
host caps.

Signed-off-by: Chris Brandt <chris.brandt at renesas.com>
---
 drivers/mmc/sh_mmcif.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/mmc/sh_mmcif.c b/drivers/mmc/sh_mmcif.c
index 1ff59f06d5..4b62795044 100644
--- a/drivers/mmc/sh_mmcif.c
+++ b/drivers/mmc/sh_mmcif.c
@@ -576,8 +576,12 @@ static const struct mmc_ops sh_mmcif_ops = {
 static struct mmc_config sh_mmcif_cfg = {
 	.name		= DRIVER_NAME,
 	.ops		= &sh_mmcif_ops,
+#if defined(CONFIG_R7S72100)
+	.host_caps	= MMC_MODE_4BIT | MMC_MODE_8BIT,
+#else
 	.host_caps	= MMC_MODE_HS | MMC_MODE_HS_52MHz | MMC_MODE_4BIT |
 			  MMC_MODE_8BIT,
+#endif
 	.voltages	= MMC_VDD_32_33 | MMC_VDD_33_34,
 	.b_max		= CONFIG_SYS_MMC_MAX_BLK_COUNT,
 };
-- 
2.14.1




More information about the U-Boot mailing list