@@ -69,8 +69,23 @@ static void set_clock(struct sdhci_host *host, unsigned int clock)
}
}
+static unsigned int set_signaling_voltage(struct sdhci_host *host,
+ unsigned int ddr)
+{
+ u16 con;
+ /*
+ * 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 = {
.set_clock = set_clock,
+ .set_signaling_voltage = set_signaling_voltage,
};
/*****************************************************************************\