hdmitx: fix dv funciton of hdmitx doesn't work when initing system
authorYi Zhou <yi.zhou@amlogic.com>
Tue, 20 Mar 2018 05:58:00 +0000 (13:58 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Tue, 20 Mar 2018 10:08:31 +0000 (02:08 -0800)
PD#162091: hdmitx: fix dv funciton of hdmitx doesn't work

When the mode is set in uboot, the ready flag must be 1.

Change-Id: Ibb23efc6687246a417dda74bd731a25e5fcf0ae7
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hw/hdmi_tx_hw.c

index b6966b4..af73e98 100644 (file)
@@ -478,6 +478,7 @@ static void hdmi_hwp_init(struct hdmitx_dev *hdev)
        /* Bring HDMITX MEM output of power down */
        hd_set_reg_bits(P_HHI_MEM_PD_REG0, 0, 8, 8);
        if (hdmitx_uboot_already_display()) {
+               hdev->ready = 1;
                /* Get uboot output color space from AVI */
                switch (hdmitx_rd_reg(HDMITX_DWC_FC_AVICONF0) & 0x3) {
                case 0: