Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 13cb7ecf authored by Bao D. Nguyen's avatar Bao D. Nguyen
Browse files

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: default avatarBao D. Nguyen <nguyenb@codeaurora.org>
parent c4944193
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -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.
+3 −0
Original line number Diff line number Diff line
@@ -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);