platform: msm_shared: Fix clock supply to emmc

While enabling HS400 mode the SDC clock runs at 382 MHZ, we need
to set clock divider before enabling the clock otherwise card would
receive 382MHZ until the divider is set.

CRs-Fixed: 579248
Change-Id: I69b34cebb0c77722a64db3efff55dfdd2a26930d
diff --git a/platform/msm_shared/mmc_sdhci.c b/platform/msm_shared/mmc_sdhci.c
index 262d8a1..c3ecaac 100644
--- a/platform/msm_shared/mmc_sdhci.c
+++ b/platform/msm_shared/mmc_sdhci.c
@@ -838,6 +838,9 @@
 		return mmc_ret;
 	}
 
+	/* Enable SDR104 mode in controller */
+	sdhci_set_uhs_mode(host, SDHCI_SDR104_MODE);
+
 	/* Run the clock @ 400 Mhz */
 	if (mmc_card_supports_hs400_mode(card))
 	{
@@ -851,9 +854,6 @@
 		MMC_SAVE_TIMING(host, MMC_HS200_TIMING);
 	}
 
-	/* Enable SDR104 mode in controller */
-	sdhci_set_uhs_mode(host, SDHCI_SDR104_MODE);
-
 	/* Execute Tuning for hs200 mode */
 	if ((mmc_ret = sdhci_msm_execute_tuning(host, width)))
 		dprintf(CRITICAL, "Tuning for hs200 failed\n");