summaryrefslogtreecommitdiff
authorhang cheng <hang.cheng@amlogic.com>2020-04-24 13:37:17 (GMT)
committer Shen Liu <shen.liu@amlogic.com>2020-07-31 11:33:08 (GMT)
commit866837d305e8efbf1ee4e52116eeed48b8ab5e6e (patch)
treeda76530741fa809798a4d5a35d4284e518f248dd
parent169ca03cc93b1c9dbd67ad590767bd8387372070 (diff)
downloadcommon-866837d305e8efbf1ee4e52116eeed48b8ab5e6e.zip
common-866837d305e8efbf1ee4e52116eeed48b8ab5e6e.tar.gz
common-866837d305e8efbf1ee4e52116eeed48b8ab5e6e.tar.bz2
hdmitx: avoid ddc filter reset affect edid reading [1/1]
PD#SWPL-24627 Problem: i2c may hangup when reading edid during system power up. it's caused by ddc filter reset Solution: move ddc filter reset to place which no ddc operation Verify: S805Y(P244) Change-Id: I624dee1ae0ff338b7d6a357fad4b98337378a304 Signed-off-by: hang cheng <hang.cheng@amlogic.com>
Diffstat
-rw-r--r--drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hw/hdmi_tx_hw.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hw/hdmi_tx_hw.c b/drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hw/hdmi_tx_hw.c
index 455ad31..8f9327e 100644
--- a/drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hw/hdmi_tx_hw.c
+++ b/drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hw/hdmi_tx_hw.c
@@ -3802,6 +3802,9 @@ static void hdmitx_debug(struct hdmitx_dev *hdev, const char *buf)
hdev->HWOp.CntlDDC(hdev, DDC_RESET_EDID, 0);
hdev->HWOp.CntlDDC(hdev, DDC_EDID_READ_DATA, 0);
return;
+ } else if (strncmp(tmpbuf, "i2creactive", 11) == 0) {
+ hdev->HWOp.CntlMisc(hdev, MISC_I2C_REACTIVE, 0);
+ return;
} else if (strncmp(tmpbuf, "bist", 4) == 0) {
if (strncmp(tmpbuf + 4, "off", 3) == 0) {
hd_set_reg_bits(P_ENCP_VIDEO_MODE_ADV, 1, 3, 1);