controller needs to have 1.8V signaling voltage bit set even if not doing 1.8V signaling for DDR to work. The bit does not change the i/o signaling voltage Signed-off-by: Philip Rakity <prakity@xxxxxxxxxxx> --- drivers/mmc/host/sdhci-pxa.c | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/drivers/mmc/host/sdhci-pxa.c b/drivers/mmc/host/sdhci-pxa.c index 3d01f94..8527ac1 100644 --- a/drivers/mmc/host/sdhci-pxa.c +++ b/drivers/mmc/host/sdhci-pxa.c @@ -101,8 +101,25 @@ static unsigned int get_f_max_clock(struct sdhci_host *host) return pxa->pdata->max_speed; } +static unsigned int set_signaling_voltage(struct sdhci_host *host, + unsigned int ddr) +{ + u16 con; + + pr_debug("%s:%s\n", __func__, mmc_hostname(host->mmc)); + /* + * Set V18_EN -- DDR does not work without this. + * does not change signaling voltage + */ + con = readw(host->ioaddr + SDHCI_HOST_CONTROL_2); + con |= SDCTRL_2_SDH_V18_EN; + writew(con, host->ioaddr + SDHCI_HOST_CONTROL_2); + return 0; +} + static struct sdhci_ops sdhci_pxa_ops = { .platform_reset_exit = platform_reset_exit, + .set_signaling_voltage = set_signaling_voltage, .get_f_max_clock = NULL, }; -- 1.7.0.4 -- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html