[U-Boot] [PATCH 06/10] mmc: uniphier-sd: Handle bus width 0
Marek Vasut
marek.vasut at gmail.com
Wed Jan 31 15:21:21 UTC 2018
Handle bus width 0 as 1-bit bus to assure valid content of
UNIPHIER_SD_OPTION register WIDTH field.
Signed-off-by: Marek Vasut <marek.vasut+renesas at gmail.com>
Cc: Jaehoon Chung <jh80.chung at samsung.com>
Cc: Masahiro Yamada <yamada.masahiro at socionext.com>
---
drivers/mmc/uniphier-sd.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/mmc/uniphier-sd.c b/drivers/mmc/uniphier-sd.c
index c327ab3ace..5603c43813 100644
--- a/drivers/mmc/uniphier-sd.c
+++ b/drivers/mmc/uniphier-sd.c
@@ -603,6 +603,7 @@ static int uniphier_sd_set_bus_width(struct uniphier_sd_priv *priv,
u32 val, tmp;
switch (mmc->bus_width) {
+ case 0:
case 1:
val = UNIPHIER_SD_OPTION_WIDTH_1;
break;
--
2.15.1
More information about the U-Boot
mailing list