From: Zongdong Jiao Date: Tue, 29 Jan 2019 11:17:26 +0000 (+0800) Subject: hdmitx: correct g12 rx_sense detect setting [1/1] X-Git-Tag: khadas-vims-v0.9.6-release~284 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=25255ddcadf2a8d4edaa1d822c33151a95f52f04;p=platform%2Fkernel%2Flinux-amlogic.git hdmitx: correct g12 rx_sense detect setting [1/1] PD#SWPL-4684 Problem: g12 rx_sense can't work well Solution: correct g12 rx_sense detect setting Verify: G12/U212 Change-Id: I26ae578bdf278592956dff092e60d13faf4905bf Signed-off-by: Zongdong Jiao --- 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 13e5f54..b93ab08 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 @@ -4991,6 +4991,14 @@ static int hdmitx_tmds_rxsense(void) struct hdmitx_dev *hdev = get_hdmitx_device(); switch (hdev->chip_type) { + case MESON_CPU_ID_G12A: + case MESON_CPU_ID_G12B: + hd_set_reg_bits(P_HHI_HDMI_PHY_CNTL0, 1, 16, 1); + hd_set_reg_bits(P_HHI_HDMI_PHY_CNTL3, 1, 23, 1); + hd_set_reg_bits(P_HHI_HDMI_PHY_CNTL3, 0, 24, 1); + hd_set_reg_bits(P_HHI_HDMI_PHY_CNTL3, 7, 20, 3); + ret = hd_read_reg(P_HHI_HDMI_PHY_CNTL2) & 0x1; + break; case MESON_CPU_ID_GXBB: curr0 = hd_read_reg(P_HHI_HDMI_PHY_CNTL0); curr3 = hd_read_reg(P_HHI_HDMI_PHY_CNTL3);