summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZiyuan Xu <xzy.xu@rock-chips.com>2017-05-15 09:07:17 +0300
committerKever Yang <kever.yang@rock-chips.com>2017-07-18 17:05:02 +0300
commit34547419ed59910beeff85120a5058ead302765e (patch)
treecfe79fcdbb2337dca477325e025a9cd774955574
parent589aad3ee36a92c531798d28ecc6b4515d7e6547 (diff)
downloadu-boot-34547419ed59910beeff85120a5058ead302765e.tar.xz
mmc: dw_mmc: fix bus width setting
Hosts capable of 8-bit transfers can also do 4 bits. Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
-rw-r--r--drivers/mmc/dw_mmc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mmc/dw_mmc.c b/drivers/mmc/dw_mmc.c
index dcd7fba086..3b89e7ac26 100644
--- a/drivers/mmc/dw_mmc.c
+++ b/drivers/mmc/dw_mmc.c
@@ -559,8 +559,7 @@ void dwmci_setup_cfg(struct mmc_config *cfg, struct dwmci_host *host,
cfg->host_caps = host->caps;
if (host->buswidth == 8) {
- cfg->host_caps |= MMC_MODE_8BIT;
- cfg->host_caps &= ~MMC_MODE_4BIT;
+ cfg->host_caps |= MMC_MODE_8BIT | MMC_MODE_4BIT;
} else {
cfg->host_caps |= MMC_MODE_4BIT;
cfg->host_caps &= ~MMC_MODE_8BIT;