mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 04:48:04 +09:00
eARCrx: add hdmitx hpd notify [1/1]
PD#SWPL-6861 Problem: Wrong val for init bandgap Solution: If PHY_CNTL0 is 0, then enable it, otherwise no need. Verify: SM1/AC200 Change-Id: I9e4a7bbe5d4b02cd8e9b2d5da87b4e572bdeb67e Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
This commit is contained in:
@@ -644,12 +644,17 @@ void HDMITX_Meson_Init(struct hdmitx_dev *hdev)
|
||||
|
||||
static void hdmitx_phy_bandgap_en(struct hdmitx_dev *hdev)
|
||||
{
|
||||
unsigned int val = 0;
|
||||
switch (hdev->chip_type) {
|
||||
case MESON_CPU_ID_TM2:
|
||||
hd_write_reg(P_TM2_HHI_HDMI_PHY_CNTL0, 0x0b4242);
|
||||
val = hd_read_reg(P_TM2_HHI_HDMI_PHY_CNTL0);
|
||||
if (val == 0)
|
||||
hd_write_reg(P_TM2_HHI_HDMI_PHY_CNTL0, 0x0b4242);
|
||||
break;
|
||||
case MESON_CPU_ID_SM1:
|
||||
hd_write_reg(P_HHI_HDMI_PHY_CNTL0, 0x0b4242);
|
||||
val = hd_read_reg(P_HHI_HDMI_PHY_CNTL0);
|
||||
if (val == 0)
|
||||
hd_write_reg(P_HHI_HDMI_PHY_CNTL0, 0x0b4242);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user