From e88a8902a30fb9ef8412aad11bbf36f1ff1cbb49 Mon Sep 17 00:00:00 2001 From: yao liu Date: Mon, 19 Aug 2019 07:41:13 -0400 Subject: [PATCH] dolby: enable DV output in uboot [4/6] PD#SWPL-392 Problem: black screen 1s during kernel boot at 4k30hz. The reason is vic is 0. Solution: Init vic when hdmi init. Verify: G12A Change-Id: I0e055ddb1fcd9ee4c7bc009c9160176a0c101d8b Signed-off-by: yao liu --- drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hw/hdmi_tx_hw.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hw/hdmi_tx_hw.c b/drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hw/hdmi_tx_hw.c index eb39ea6..d139bfb 100644 --- a/drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hw/hdmi_tx_hw.c +++ b/drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hw/hdmi_tx_hw.c @@ -89,6 +89,7 @@ static int hdmitx_cntl_config(struct hdmitx_dev *hdev, unsigned int cmd, unsigned int argv); static int hdmitx_cntl_misc(struct hdmitx_dev *hdev, unsigned int cmd, unsigned int argv); +static enum hdmi_vic get_vic_from_pkt(void); #define EDID_RAM_ADDR_SIZE (8) @@ -482,6 +483,7 @@ static void hdmi_hwp_init(struct hdmitx_dev *hdev) /* enable CLK_TO_DIG */ hd_set_reg_bits(P_HHI_HDMI_PHY_CNTL3, 0x3, 0, 2); if (hdmitx_uboot_already_display()) { + hdev->cur_VIC = get_vic_from_pkt(); hdev->ready = 1; /* Get uboot output color space from AVI */ switch (hdmitx_rd_reg(HDMITX_DWC_FC_AVICONF0) & 0x3) { -- 2.7.4