/*
* Change data bus width and DDR mode of a host.
*/
-void mmc_set_bus_width_ddr(struct mmc_host *host, unsigned int width, int ddr)
+void mmc_set_bus_width_ddr(struct mmc_host *host, unsigned int width,
+ unsigned int ddr)
{
host->ios.bus_width = width;
- host->ios.ddr = ddr ? MMC_DDR_MODE : MMC_SDR_MODE;
+ host->ios.ddr = ddr;
mmc_set_ios(host);
}
*/
void mmc_set_bus_width(struct mmc_host *host, unsigned int width)
{
- mmc_set_bus_width_ddr(host, width, 0);
+ mmc_set_bus_width_ddr(host, width, MMC_SDR_MODE);
}
/**