drm: bridge: synopsys: update more hdmi status in dw_hdmi_bind

If hdmi is enabled in uboot, hdmi->disabled and bridge_is_on and
phy status need to be updated.

Change-Id: Ib21d894b673bf12b46a271c91d3e08fe7475ea89
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
This commit is contained in:
Zheng Yang 2018-02-02 12:21:36 +08:00 committed by Tao Huang
parent 3726b810fe
commit ea56866919

View File

@ -2650,8 +2650,6 @@ dw_hdmi_connector_atomic_flush(struct drm_connector *connector,
if (hdmi_bus_fmt_is_yuv420(hdmi->hdmi_data.enc_out_bus_format))
vmode->mtmdsclock /= 2;
hdmi->phy.enabled = true;
hdmi->bridge_is_on = true;
if (in_bus_format != hdmi->hdmi_data.enc_in_bus_format ||
out_bus_format != hdmi->hdmi_data.enc_out_bus_format)
hdmi->hdmi_data.update = true;
@ -3599,8 +3597,12 @@ int dw_hdmi_bind(struct device *dev, struct device *master,
hdmi->phy.name);
ret = hdmi_readb(hdmi, HDMI_PHY_STAT0);
if (ret & (HDMI_PHY_TX_PHY_LOCK | HDMI_PHY_HPD))
if (ret & (HDMI_PHY_TX_PHY_LOCK | HDMI_PHY_HPD)) {
hdmi->mc_clkdis = hdmi_readb(hdmi, HDMI_MC_CLKDIS);
hdmi->disabled = false;
hdmi->bridge_is_on = true;
hdmi->phy.enabled = true;
}
init_hpd_work(hdmi);
initialize_hdmi_ih_mutes(hdmi);