mmc: Add MMC clock scaling support for sdhci-msm layer

Add the clock scaling support for SD card in the
sdhci-msm layger.

Change-Id: I17a279bea4ee589121785006e1887a6f39e3ce6a
Signed-off-by: Bao D. Nguyen <nguyenb@codeaurora.org>
This commit is contained in:
Bao D. Nguyen 2020-05-06 18:00:03 -07:00
commit 13cb7ecffb
2 changed files with 11 additions and 0 deletions

View file

@ -1019,3 +1019,11 @@ config MMC_SDHCI_AM654
If you have a controller with this interface, say Y or M here.
If unsure, say N.
config SDC_QTI
tristate "Enable QTI specific code in MMC upstream driver"
depends on QGKI && MMC_SDHCI_MSM
default n
help
This configuration flag allows adding QTI code in
MMC upstream driver.

View file

@ -3217,6 +3217,9 @@ static int sdhci_msm_probe(struct platform_device *pdev)
msm_host->pltfm_init_done = true;
#if defined(CONFIG_SDC_QTI)
msm_host->mmc->caps2 |= MMC_CAP2_CLK_SCALE;
#endif
pm_runtime_get_noresume(&pdev->dev);
pm_runtime_set_active(&pdev->dev);
pm_runtime_enable(&pdev->dev);