hdmirx: add hpd recovery logic when input clk is unstable [1/1]

PD#SWPL-16961

Problem:
the old xbox of customer does not send tmds clk with
low probability after hdmi2.0 swithing.

Solution:
add hpd recovery logic when input clk unstable for a long time

Verify:
TL1

Change-Id: Id36a7a81596ffa08ef7fedd1bd2a21c206d921ce
Signed-off-by: Lei Yang <lei.yang@amlogic.com>
This commit is contained in:
Lei Yang
2019-11-18 15:48:57 +08:00
committed by Luke Go
parent fd95890881
commit 387fabdf23
2 changed files with 7 additions and 2 deletions

View File

@@ -34,7 +34,7 @@
#include "hdmi_rx_edid.h"
#define RX_VER0 "ver.2019/11/12"
#define RX_VER0 "ver.2019/11/18"
/*
*
*

View File

@@ -214,7 +214,7 @@ void hdmirx_init_params(void)
{
if (rx.chip_id >= CHIP_ID_TL1) {
clk_unstable_max = 10;
esd_phy_rst_max = 20;
esd_phy_rst_max = 80;
stable_check_lvl = 0x7df;
pll_lock_max = 5;
} else {
@@ -2194,6 +2194,11 @@ void rx_main_state_machine(void)
hdmirx_phy_init();
rx.phy.cable_clk = 0;
esd_phy_rst_cnt++;
} else {
rx.err_code = ERR_NONE;
rx.state = FSM_HPD_LOW;
esd_phy_rst_cnt = 0;
break;
}
rx.err_code = ERR_CLK_UNSTABLE;
}