diff --git a/drivers/mmc/host/Kconfig b/drivers/mmc/host/Kconfig index 49ea02c467bf..028d92f11a54 100644 --- a/drivers/mmc/host/Kconfig +++ b/drivers/mmc/host/Kconfig @@ -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. diff --git a/drivers/mmc/host/sdhci-msm.c b/drivers/mmc/host/sdhci-msm.c index e8ccfe414ab7..8f29d6d15a94 100644 --- a/drivers/mmc/host/sdhci-msm.c +++ b/drivers/mmc/host/sdhci-msm.c @@ -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);