target: msm8974: Set pull-down on rclk tlmm pin
CRs-Fixed: 501718
Change-Id: I4f7b9ce10818114574074c4e744f8ac7690b9fb6
diff --git a/target/msm8974/init.c b/target/msm8974/init.c
index 9334710..afb6486 100644
--- a/target/msm8974/init.c
+++ b/target/msm8974/init.c
@@ -755,9 +755,20 @@
{ SDC1_DATA_PULL_CTL_OFF, TLMM_PULL_UP, TLMM_PULL_MASK },
};
+ struct tlmm_cfgs sdc1_rclk_cfg[] =
+ {
+ { SDC1_RCLK_PULL_CTL_OFF, TLMM_PULL_DOWN, TLMM_PULL_MASK },
+ };
+
/* Set the drive strength & pull control values */
tlmm_set_hdrive_ctrl(sdc1_hdrv_cfg, ARRAY_SIZE(sdc1_hdrv_cfg));
tlmm_set_pull_ctrl(sdc1_pull_cfg, ARRAY_SIZE(sdc1_pull_cfg));
+
+ /* RCLK is supported only with 8974 pro, set rclk to pull down
+ * only for 8974 pro targets
+ */
+ if (!platform_is_8974())
+ tlmm_set_pull_ctrl(sdc1_rclk_cfg, ARRAY_SIZE(sdc1_rclk_cfg));
}
int emmc_recovery_init(void)