]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00162792-1 [IMX6Q] mmc host pm caps should be board specific
authorRyan QIAN <b32804@freescale.com>
Tue, 22 Nov 2011 02:38:32 +0000 (10:38 +0800)
committerOliver Wendt <ow@karo-electronics.de>
Mon, 30 Sep 2013 12:10:08 +0000 (14:10 +0200)
- move mmc host pm caps into board specific section

Signed-off-by: Ryan QIAN <b32804@freescale.com>
drivers/mmc/host/sdhci-esdhc-imx.c

index 31c63ed50cc6773922b7442cb250f6ba5f90c928..acf291f13e2f0354e7896c36652019fa5c82d4b5 100644 (file)
@@ -469,13 +469,14 @@ static int esdhc_pltfm_init(struct sdhci_host *host, struct sdhci_pltfm_data *pd
                host->ocr_avail_sd |= MMC_VDD_165_195;
        if (boarddata->support_8bit)
                host->mmc->caps |= MMC_CAP_8_BIT_DATA;
+       if (boarddata->keep_power_at_suspend)
+               host->mmc->pm_caps |= MMC_PM_KEEP_POWER;
        if (cpu_is_mx6q()) {
                host->mmc->caps |= MMC_CAP_1_8V_DDR;
                host->tuning_min = SDHCI_TUNE_CTRL_MIN;
                host->tuning_max = SDHCI_TUNE_CTRL_MAX;
                host->tuning_step = SDHCI_TUNE_CTRL_STEP;
                host->clk_mgr_en = true;
-               host->mmc->pm_caps = MMC_PM_KEEP_POWER;
        }
 
        /* disable card interrupt enable bit, and clear status bit