platform: msm8974: Add platform changes for sdhci
Add support to set clock speed & macros needed for sdhci
support.
Change-Id: I6d3f4627d7878069aae7d321dd92dbf01c00619c
diff --git a/platform/msm8974/acpuclock.c b/platform/msm8974/acpuclock.c
index 9392c69..c913d5f 100644
--- a/platform/msm8974/acpuclock.c
+++ b/platform/msm8974/acpuclock.c
@@ -120,7 +120,9 @@
snprintf(clk_name, 64, "sdc%u_core_clk", interface);
/* Disalbe MCI_CLK before changing the sdcc clock */
+#ifndef MMC_SDHCI_SUPPORT
mmc_boot_mci_clk_disable();
+#endif
if(freq == MMC_CLK_400KHZ)
{
@@ -134,6 +136,10 @@
{
ret = clk_get_set_enable(clk_name, 100000000, 1);
}
+ else if(freq == MMC_CLK_200MHZ)
+ {
+ ret = clk_get_set_enable(clk_name, 200000000, 1);
+ }
else
{
dprintf(CRITICAL, "sdc frequency (%d) is not supported\n", freq);
@@ -148,7 +154,9 @@
}
/* Enalbe MCI clock */
+#ifndef MMC_SDHCI_SUPPORT
mmc_boot_mci_clk_enable();
+#endif
}
/* Configure UART clock based on the UART block id*/