diff options
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/host/sdhci.c | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 579142a7904b..a57f6a3d48d3 100644 --- a/drivers/mmc/host/sdhci.c +++ b/drivers/mmc/host/sdhci.c | |||
@@ -658,20 +658,17 @@ static void sdhci_set_power(struct sdhci_host *host, unsigned short power) | |||
658 | 658 | ||
659 | pwr = SDHCI_POWER_ON; | 659 | pwr = SDHCI_POWER_ON; |
660 | 660 | ||
661 | switch (power) { | 661 | switch (1 << power) { |
662 | case MMC_VDD_170: | 662 | case MMC_VDD_17_18: |
663 | case MMC_VDD_180: | 663 | case MMC_VDD_18_19: |
664 | case MMC_VDD_190: | ||
665 | pwr |= SDHCI_POWER_180; | 664 | pwr |= SDHCI_POWER_180; |
666 | break; | 665 | break; |
667 | case MMC_VDD_290: | 666 | case MMC_VDD_29_30: |
668 | case MMC_VDD_300: | 667 | case MMC_VDD_30_31: |
669 | case MMC_VDD_310: | ||
670 | pwr |= SDHCI_POWER_300; | 668 | pwr |= SDHCI_POWER_300; |
671 | break; | 669 | break; |
672 | case MMC_VDD_320: | 670 | case MMC_VDD_32_33: |
673 | case MMC_VDD_330: | 671 | case MMC_VDD_33_34: |
674 | case MMC_VDD_340: | ||
675 | pwr |= SDHCI_POWER_330; | 672 | pwr |= SDHCI_POWER_330; |
676 | break; | 673 | break; |
677 | default: | 674 | default: |