ret = hdmitx_device.hpd_state;
mutex_unlock(&setclk_mutex);
+ if (hdmitx_device.chip_type == MESON_CPU_ID_TM2)
+ return 1;
return ret;
}
EXPORT_SYMBOL(get_hpd_state);
pr_info(SYS "get hdmi platform data\n");
}
#endif
- pr_info("hdmitx: testtest\n");
- hdmitx_device.irq_hpd = 39;
- // platform_get_irq_byname(pdev, "hdmitx_hpd");
-#if 0
+ hdmitx_device.irq_hpd = platform_get_irq_byname(pdev, "hdmitx_hpd");
+ if (hdmitx_device.chip_type == MESON_CPU_ID_TM2)
+ hdmitx_device.irq_hpd = 39;
if (hdmitx_device.irq_hpd == -ENXIO) {
pr_err("%s: ERROR: hdmitx hpd irq No not found\n",
__func__);
}
pr_info(SYS "hpd irq = %d\n", hdmitx_device.irq_hpd);
-#endif
return ret;
}
hdmitx_wr_reg(HDMITX_TOP_INTR_STAT_CLR, ~0);
hdmitx_wr_reg(HDMITX_DWC_HDCP22REG_STAT, 0xff);
- pr_info(SYS "irq %x\n", dat_top);
- if (dat_dwc)
- pr_info(SYS "irq %x\n", dat_dwc);
+ if (hdev->chip_type != MESON_CPU_ID_TM2) {
+ /*tm2 has a bug, wait to fix*/
+ pr_info(SYS "irq %x\n", dat_top);
+ if (dat_dwc)
+ pr_info(SYS "irq %x\n", dat_dwc);
+ }
+
if (hdev->hpd_lock == 1) {
pr_info(HW "HDMI hpd locked\n");
goto next;