aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/core/core.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mmc/core/core.c')
-rw-r--r--drivers/mmc/core/core.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c
index 7cb352b3b247..3eb7a9be6d8d 100644
--- a/drivers/mmc/core/core.c
+++ b/drivers/mmc/core/core.c
@@ -653,10 +653,11 @@ void mmc_set_bus_mode(struct mmc_host *host, unsigned int mode)
653/* 653/*
654 * Change data bus width and DDR mode of a host. 654 * Change data bus width and DDR mode of a host.
655 */ 655 */
656void mmc_set_bus_width_ddr(struct mmc_host *host, unsigned int width, int ddr) 656void mmc_set_bus_width_ddr(struct mmc_host *host, unsigned int width,
657 unsigned int ddr)
657{ 658{
658 host->ios.bus_width = width; 659 host->ios.bus_width = width;
659 host->ios.ddr = ddr ? MMC_DDR_MODE : MMC_SDR_MODE; 660 host->ios.ddr = ddr;
660 mmc_set_ios(host); 661 mmc_set_ios(host);
661} 662}
662 663
@@ -665,7 +666,7 @@ void mmc_set_bus_width_ddr(struct mmc_host *host, unsigned int width, int ddr)
665 */ 666 */
666void mmc_set_bus_width(struct mmc_host *host, unsigned int width) 667void mmc_set_bus_width(struct mmc_host *host, unsigned int width)
667{ 668{
668 mmc_set_bus_width_ddr(host, width, 0); 669 mmc_set_bus_width_ddr(host, width, MMC_SDR_MODE);
669} 670}
670 671
671/** 672/**