aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host
diff options
context:
space:
mode:
authorJarkko Lavinen <jarkko.lavinen@nokia.com>2009-03-12 09:30:58 -0400
committerPierre Ossman <drzeus@drzeus.cx>2009-03-24 16:30:06 -0400
commit0683af4887bf61b5285c4e08cad5c7d110fbd605 (patch)
treef95dfa57b174e48cd19381e3a3b3cebc5ebed724 /drivers/mmc/host
parente68fdabc0d27f25428d53d43caae8bc79ed63d32 (diff)
omap_hsmmc: Disable SDBP at suspend
Turn off the bus power at suspend. Signed-off-by: Jarkko Lavinen <jarkko.lavinen@nokia.com> Signed-off-by: Adrian Hunter <adrian.hunter@nokia.com> Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
Diffstat (limited to 'drivers/mmc/host')
-rw-r--r--drivers/mmc/host/omap_hsmmc.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c
index 7a9ca4f22405..283265154944 100644
--- a/drivers/mmc/host/omap_hsmmc.c
+++ b/drivers/mmc/host/omap_hsmmc.c
@@ -1214,20 +1214,8 @@ static int omap_mmc_suspend(struct platform_device *pdev, pm_message_t state)
1214 " level suspend\n"); 1214 " level suspend\n");
1215 } 1215 }
1216 1216
1217 if (host->id == OMAP_MMC1_DEVID 1217 OMAP_HSMMC_WRITE(host->base, HCTL,
1218 && !(OMAP_HSMMC_READ(host->base, HCTL) 1218 OMAP_HSMMC_READ(host->base, HCTL) & ~SDBP);
1219 & SDVSDET)) {
1220 OMAP_HSMMC_WRITE(host->base, HCTL,
1221 OMAP_HSMMC_READ(host->base, HCTL)
1222 & SDVSCLR);
1223 OMAP_HSMMC_WRITE(host->base, HCTL,
1224 OMAP_HSMMC_READ(host->base, HCTL)
1225 | SDVS30);
1226 OMAP_HSMMC_WRITE(host->base, HCTL,
1227 OMAP_HSMMC_READ(host->base, HCTL)
1228 | SDBP);
1229 }
1230
1231 clk_disable(host->fclk); 1219 clk_disable(host->fclk);
1232 clk_disable(host->iclk); 1220 clk_disable(host->iclk);
1233 clk_disable(host->dbclk); 1221 clk_disable(host->dbclk);