msm_fb: HDMI: Support for clock stretching

HDMI Sink may hold off the DDC transaction by stretching the SCL line
during the SCL-low period following the Acknowledge bit as permitted
by the I2C specification. All HDMI Sources shall delay the DDC transaction
while the SCL line is being held low. HDMI_DDC_SETUP register field
<TIME_LIMIT> should be set.

Change-Id: If58ee3f81b5f89ab22c5e74104ba5ad07ff6094d
CRs-Fixed: 296256
Signed-off-by: Manoj Rao <manojraj@codeaurora.org>
Signed-off-by: Ramakrishna Prasad N <crpn@codeaurora.org>
diff --git a/drivers/video/msm/hdmi_msm.c b/drivers/video/msm/hdmi_msm.c
index 63c2147..9805b6c 100644
--- a/drivers/video/msm/hdmi_msm.c
+++ b/drivers/video/msm/hdmi_msm.c
@@ -1231,8 +1231,12 @@
 	 * Configure the Threshold */
 	HDMI_OUTP_ND(0x0220, (10 << 16) | (2 << 0));
 
-	/* 0x0224 HDMI_DDC_SETUP */
-	HDMI_OUTP_ND(0x0224, 0);
+	/*
+	 * 0x0224 HDMI_DDC_SETUP
+	 * Setting 31:24 bits : Time units to wait before timeout
+	 * when clock is being stalled by external sink device
+	 */
+	HDMI_OUTP_ND(0x0224, 0xff000000);
 
 	/* 0x027C HDMI_DDC_REF
 	   [6] REFTIMER_ENABLE	Enable the timer