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>
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;