mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 10:58:48 +09:00
drm/bridge: synopsys: dw-hdmi: check if hdmi is enabled in uboot
Include the following commit: 1.update mc_clkdis in dw_hdmi_bind. 2.update more hdmi status in dw_hdmi_bind. 3.Fix hdmi can't display in android. 4.Update criteria to determine whether uboot logo is on. 5.disable phy in dw_hdmi_bind. Signed-off-by: Algea Cao <algea.cao@rock-chips.com> Change-Id: I4d1269062b0a4c01d0e82923bf9bb6dad3411387
This commit is contained in:
@@ -3789,6 +3789,17 @@ struct dw_hdmi *dw_hdmi_probe(struct platform_device *pdev,
|
||||
prod_id1 & HDMI_PRODUCT_ID1_HDCP ? "with" : "without",
|
||||
hdmi->phy.name);
|
||||
|
||||
ret = hdmi_readb(hdmi, HDMI_PHY_STAT0);
|
||||
if ((ret & HDMI_PHY_TX_PHY_LOCK) && (ret & HDMI_PHY_HPD) &&
|
||||
hdmi_readb(hdmi, HDMI_FC_EXCTRLDUR)) {
|
||||
hdmi->mc_clkdis = hdmi_readb(hdmi, HDMI_MC_CLKDIS);
|
||||
hdmi->disabled = false;
|
||||
hdmi->bridge_is_on = true;
|
||||
hdmi->phy.enabled = true;
|
||||
} else if (ret & HDMI_PHY_TX_PHY_LOCK) {
|
||||
hdmi->phy.ops->disable(hdmi, hdmi->phy.data);
|
||||
}
|
||||
|
||||
init_hpd_work(hdmi);
|
||||
dw_hdmi_init_hw(hdmi);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user