diff options
Diffstat (limited to 'drivers/mmc/host/omap.c')
-rw-r--r-- | drivers/mmc/host/omap.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/mmc/host/omap.c b/drivers/mmc/host/omap.c index 1b232c6dd016..fc044a5ed64e 100644 --- a/drivers/mmc/host/omap.c +++ b/drivers/mmc/host/omap.c | |||
@@ -969,8 +969,10 @@ static void mmc_omap_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) | |||
969 | mmc_omap_power(host, 0); | 969 | mmc_omap_power(host, 0); |
970 | break; | 970 | break; |
971 | case MMC_POWER_UP: | 971 | case MMC_POWER_UP: |
972 | case MMC_POWER_ON: | 972 | /* Cannot touch dsor yet, just power up MMC */ |
973 | mmc_omap_power(host, 1); | 973 | mmc_omap_power(host, 1); |
974 | return; | ||
975 | case MMC_POWER_ON: | ||
974 | dsor |= 1 << 11; | 976 | dsor |= 1 << 11; |
975 | break; | 977 | break; |
976 | } | 978 | } |
@@ -986,7 +988,7 @@ static void mmc_omap_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) | |||
986 | * Writing to the CON register twice seems to do the trick. */ | 988 | * Writing to the CON register twice seems to do the trick. */ |
987 | for (i = 0; i < 2; i++) | 989 | for (i = 0; i < 2; i++) |
988 | OMAP_MMC_WRITE(host, CON, dsor); | 990 | OMAP_MMC_WRITE(host, CON, dsor); |
989 | if (ios->power_mode == MMC_POWER_UP) { | 991 | if (ios->power_mode == MMC_POWER_ON) { |
990 | /* Send clock cycles, poll completion */ | 992 | /* Send clock cycles, poll completion */ |
991 | OMAP_MMC_WRITE(host, IE, 0); | 993 | OMAP_MMC_WRITE(host, IE, 0); |
992 | OMAP_MMC_WRITE(host, STAT, 0xffff); | 994 | OMAP_MMC_WRITE(host, STAT, 0xffff); |