Merge "platform: msm_shared: Use ddr config value from target"
diff --git a/platform/msm_shared/sdhci_msm.c b/platform/msm_shared/sdhci_msm.c
index 5a7795f..a54752b 100644
--- a/platform/msm_shared/sdhci_msm.c
+++ b/platform/msm_shared/sdhci_msm.c
@@ -478,8 +478,8 @@
DBG("\n CM_DLL_SDC4 Calibration Start\n");
- /*1.Write the default value to SDCC_HC_REG_DDR_CONFIG register*/
- REG_WRITE32(host, DDR_CONFIG_VAL, SDCC_HC_REG_DDR_CONFIG);
+ /*1.Write the DDR config value to SDCC_HC_REG_DDR_CONFIG register*/
+ REG_WRITE32(host, target_ddr_cfg_val(), SDCC_HC_REG_DDR_CONFIG);
/*2. Write DDR_CAL_EN to '1' */
REG_WRITE32(host, (REG_READ32(host, SDCC_HC_REG_DLL_CONFIG_2) | DDR_CAL_EN), SDCC_HC_REG_DLL_CONFIG_2);