video: rockchip: hdmi: contrast uboot and kernel resolution
authorShen Zhenyi <szy@rock-chips.com>
Fri, 22 Jul 2016 08:04:02 +0000 (16:04 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Wed, 15 Feb 2017 08:55:49 +0000 (16:55 +0800)
When box is starting, if kernel resolution is different from uboot,
need to clear hdmi->uboot

Change-Id: Iec56862fe20dcaccc12fefae21de55b56ab2fe54
Signed-off-by: Shen Zhenyi <szy@rock-chips.com>
(cherry picked from commit 899bf65ac08492fc5aec36a1b23509baa008d409)

drivers/video/rockchip/hdmi/rockchip-hdmi-core.c

index f3e75177a9fc3bb9ab9af667b899d0c00ec1e32c..2e148e23758d8383335da5c9a1ae94cff4a5dbe5 100644 (file)
@@ -144,6 +144,12 @@ static void hdmi_wq_set_video(struct hdmi *hdmi)
        } else {
                video->vic = hdmi->vic & HDMI_VIC_MASK;
        }
+
+       if (hdmi->uboot) {
+               if ((uboot_vic & HDMI_UBOOT_VIC_MASK) != hdmi->vic)
+                       hdmi->uboot = 0;
+       }
+
        hdmi_set_lcdc(hdmi);
        if (hdmi->ops->setvideo)
                hdmi->ops->setvideo(hdmi, video);