We need to check hdmi connect status in probe hdmi. If hdmi is
enable in uboot, and is removed before kernel, we will power
down hdmi, and set it as disconnected.
if (!hdmi_drv->uboot_logo) {
rk3036_hdmi_reset_pclk();
rk3036_hdmi_reset(hdmi_drv);
+ } else {
+ hdmi_drv->hotplug = rk3036_hdmi_detect_hotplug(hdmi_drv);
+ if (hdmi_drv->hotplug == HDMI_HPD_REMOVED) {
+ rk3036_hdmi_removed(hdmi_drv);
+ hdmi_drv->state = HDMI_SLEEP;
+ hdmi_drv->lcdc->uboot_logo = 0;
+ hdmi_drv->uboot_logo = 0;
+ }
}
if (hdmi_drv->hdcp_power_on_cb)
rc = hdmi_drv->hdcp_power_on_cb();
int hdmi_sys_init(struct hdmi *hdmi)
{
- hdmi->uboot_logo = support_uboot_display();
- if ((uboot_vic > 0) && (hdmi->uboot_logo > 0)) {
+ if (uboot_vic > 0) {
+ hdmi->uboot_logo = support_uboot_display();
hdmi->hotplug = HDMI_HPD_ACTIVED;
hdmi->state = PLAY_BACK;
hdmi->enable = HDMI_ENABLE;