|
@@ -241,28 +241,7 @@ static int omap_hsmmc_resume_cdirq(struct device *dev, int slot)
|
|
|
|
|
|
#ifdef CONFIG_REGULATOR
|
|
|
|
|
|
-static int omap_hsmmc_1_set_power(struct device *dev, int slot, int power_on,
|
|
|
- int vdd)
|
|
|
-{
|
|
|
- struct omap_hsmmc_host *host =
|
|
|
- platform_get_drvdata(to_platform_device(dev));
|
|
|
- int ret;
|
|
|
-
|
|
|
- if (mmc_slot(host).before_set_reg)
|
|
|
- mmc_slot(host).before_set_reg(dev, slot, power_on, vdd);
|
|
|
-
|
|
|
- if (power_on)
|
|
|
- ret = mmc_regulator_set_ocr(host->mmc, host->vcc, vdd);
|
|
|
- else
|
|
|
- ret = mmc_regulator_set_ocr(host->mmc, host->vcc, 0);
|
|
|
-
|
|
|
- if (mmc_slot(host).after_set_reg)
|
|
|
- mmc_slot(host).after_set_reg(dev, slot, power_on, vdd);
|
|
|
-
|
|
|
- return ret;
|
|
|
-}
|
|
|
-
|
|
|
-static int omap_hsmmc_235_set_power(struct device *dev, int slot, int power_on,
|
|
|
+static int omap_hsmmc_set_power(struct device *dev, int slot, int power_on,
|
|
|
int vdd)
|
|
|
{
|
|
|
struct omap_hsmmc_host *host =
|
|
@@ -332,14 +311,11 @@ static int omap_hsmmc_reg_get(struct omap_hsmmc_host *host)
|
|
|
|
|
|
switch (host->id) {
|
|
|
case OMAP_MMC1_DEVID:
|
|
|
- /* On-chip level shifting via PBIAS0/PBIAS1 */
|
|
|
- mmc_slot(host).set_power = omap_hsmmc_1_set_power;
|
|
|
- break;
|
|
|
case OMAP_MMC2_DEVID:
|
|
|
case OMAP_MMC3_DEVID:
|
|
|
case OMAP_MMC5_DEVID:
|
|
|
- /* Off-chip level shifting, or none */
|
|
|
- mmc_slot(host).set_power = omap_hsmmc_235_set_power;
|
|
|
+ /* On-chip level shifting via PBIAS0/PBIAS1 */
|
|
|
+ mmc_slot(host).set_power = omap_hsmmc_set_power;
|
|
|
break;
|
|
|
case OMAP_MMC4_DEVID:
|
|
|
mmc_slot(host).set_power = omap_hsmmc_4_set_power;
|