summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Vasut <marek.vasut+renesas@gmail.com>2018-01-30 00:41:42 +0100
committerMarek Vasut <marek.vasut+renesas@gmail.com>2018-04-11 23:11:58 +0200
commita7b7401c786871ec65572e1cd66703a0eb461060 (patch)
tree8d72061349c6ff6232530bbd3e1c02f2f30336b9
parent635ae6fefa0945fa5361de6f460d3dde93b143f7 (diff)
downloadu-boot-a7b7401c786871ec65572e1cd66703a0eb461060.tar.gz
u-boot-a7b7401c786871ec65572e1cd66703a0eb461060.tar.xz
u-boot-a7b7401c786871ec65572e1cd66703a0eb461060.zip
mmc: matsushita-common: Handle bus width 0
Handle bus width 0 as 1-bit bus to assure valid content of MATSU_SD_OPTION register WIDTH field. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Jaehoon Chung <jh80.chung@samsung.com> Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
-rw-r--r--drivers/mmc/matsushita-common.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mmc/matsushita-common.c b/drivers/mmc/matsushita-common.c
index 11e4553d87..377f349b41 100644
--- a/drivers/mmc/matsushita-common.c
+++ b/drivers/mmc/matsushita-common.c
@@ -504,6 +504,7 @@ static int matsu_sd_set_bus_width(struct matsu_sd_priv *priv,
u32 val, tmp;
switch (mmc->bus_width) {
+ case 0:
case 1:
val = MATSU_SD_OPTION_WIDTH_1;
break;