diff options
Diffstat (limited to 'drivers/mmc/host/sdhci.c')
-rw-r--r-- | drivers/mmc/host/sdhci.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 8da164bef048..f34ec5d6bccf 100644 --- a/drivers/mmc/host/sdhci.c +++ b/drivers/mmc/host/sdhci.c | |||
@@ -1159,6 +1159,11 @@ static void sdhci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) | |||
1159 | 1159 | ||
1160 | ctrl = sdhci_readb(host, SDHCI_HOST_CONTROL); | 1160 | ctrl = sdhci_readb(host, SDHCI_HOST_CONTROL); |
1161 | 1161 | ||
1162 | if (ios->bus_width == MMC_BUS_WIDTH_8) | ||
1163 | ctrl |= SDHCI_CTRL_8BITBUS; | ||
1164 | else | ||
1165 | ctrl &= ~SDHCI_CTRL_8BITBUS; | ||
1166 | |||
1162 | if (ios->bus_width == MMC_BUS_WIDTH_4) | 1167 | if (ios->bus_width == MMC_BUS_WIDTH_4) |
1163 | ctrl |= SDHCI_CTRL_4BITBUS; | 1168 | ctrl |= SDHCI_CTRL_4BITBUS; |
1164 | else | 1169 | else |