hdmirx: update config for TM2 [1/1]

PD#SWPL-5616

Problem:
bring up hdmirx for TM2

Solution:
hdmirx: add hdmirx TM2 support

Verify:
Verfied on TM2 skt board

Change-Id: I82fd66afc7f26f1bdfd7a4f1fc4cc0d9d7ed3974
Signed-off-by: Lei Yang <lei.yang@amlogic.com>

Conflicts:
	arch/arm/boot/dts/amlogic/tm2_pxp.dts
	arch/arm/boot/dts/amlogic/tm2_t962e2_ab311.dts
	arch/arm/boot/dts/amlogic/tm2_t962e2_ab319.dts
	arch/arm/boot/dts/amlogic/tm2_t962x3_ab301.dts
	arch/arm/boot/dts/amlogic/tm2_t962x3_ab309.dts
	arch/arm64/boot/dts/amlogic/tm2_pxp.dts
	arch/arm64/boot/dts/amlogic/tm2_t962e2_ab311.dts
	arch/arm64/boot/dts/amlogic/tm2_t962e2_ab319.dts
	arch/arm64/boot/dts/amlogic/tm2_t962x3_ab301.dts
	arch/arm64/boot/dts/amlogic/tm2_t962x3_ab309.dts
	drivers/amlogic/media/vin/tvin/hdmirx/hdmi_rx_wrapper.c
This commit is contained in:
Lei Yang
2019-04-02 14:36:33 +08:00
committed by Luke Go
parent e53c716b6f
commit 7e55d52beb
16 changed files with 17284 additions and 57 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -158,6 +158,11 @@ static struct notifier_block aml_hdcp22_pm_notifier = {
.notifier_call = aml_hdcp22_pm_notify,
};
static struct meson_hdmirx_data rx_tm2_data = {
.chip_id = CHIP_ID_TM2,
.phy_ver = PHY_VER_TL1,
};
static struct meson_hdmirx_data rx_tl1_data = {
.chip_id = CHIP_ID_TL1,
.phy_ver = PHY_VER_TL1,
@@ -184,6 +189,10 @@ static struct meson_hdmirx_data rx_gxtvbb_data = {
};
static const struct of_device_id hdmirx_dt_match[] = {
{
.compatible = "amlogic, hdmirx_tm2",
.data = &rx_tm2_data
},
{
.compatible = "amlogic, hdmirx_tl1",
.data = &rx_tl1_data
@@ -1749,7 +1758,7 @@ static void rx_phy_resume(void)
void rx_emp_resource_allocate(struct device *dev)
{
if (rx.chip_id == CHIP_ID_TL1) {
if (rx.chip_id >= CHIP_ID_TL1) {
/* allocate buffer */
if (!rx.empbuff.storeA)
rx.empbuff.storeA =
@@ -1794,7 +1803,7 @@ void rx_tmds_resource_allocate(struct device *dev)
/*phys_addr_t p_addr;*/
/*struct page *pg_addr;*/
if (rx.chip_id == CHIP_ID_TL1) {
if (rx.chip_id >= CHIP_ID_TL1) {
if (rx.empbuff.dump_mode == DUMP_MODE_EMP) {
if (rx.empbuff.pg_addr) {
dma_release_from_contiguous(dev,
@@ -2265,7 +2274,7 @@ static int hdmirx_probe(struct platform_device *pdev)
clk_rate/1000000);
}
#endif
if (rx.chip_id == CHIP_ID_TL1) {
if (rx.chip_id >= CHIP_ID_TL1) {
/*for audio clk measure*/
hdevp->meter_clk = clk_get(&pdev->dev, "cts_hdmirx_meter_clk");
if (IS_ERR(hdevp->meter_clk))

View File

@@ -46,7 +46,7 @@
*
*
*/
#define RX_VER2 "ver.2019/03/19"
#define RX_VER2 "ver.2019/04/02"
/*print type*/
#define LOG_EN 0x01

View File

@@ -181,7 +181,7 @@ void eq_dwork_handler(struct work_struct *work)
cancel_delayed_work(&eq_dwork);
/* for tl1 no SW eq */
if (rx.chip_id == CHIP_ID_TL1)
if (rx.chip_id >= CHIP_ID_TL1)
return;
for (i = 0; i < NTRYS; i++) {

View File

@@ -120,7 +120,7 @@ ulong flags;
int data;
unsigned long dev_offset = 0x10;
if (rx.chip_id == CHIP_ID_TL1) {
if (rx.chip_id >= CHIP_ID_TL1) {
spin_lock_irqsave(&reg_rw_lock, flags);
data = rd_reg(MAP_ADDR_MODULE_TOP,
addr + reg_maps[MAP_ADDR_MODULE_TOP].phy_addr);
@@ -158,7 +158,7 @@ void hdmirx_wr_dwc(unsigned int addr, unsigned int data)
ulong flags;
unsigned int dev_offset = 0x10;
if (rx.chip_id == CHIP_ID_TL1) {
if (rx.chip_id >= CHIP_ID_TL1) {
spin_lock_irqsave(&reg_rw_lock, flags);
wr_reg(MAP_ADDR_MODULE_TOP,
addr + reg_maps[MAP_ADDR_MODULE_TOP].phy_addr, data);
@@ -292,7 +292,7 @@ unsigned int hdmirx_rd_top(unsigned int addr)
unsigned int dev_offset = 0;
unsigned int tempaddr = 0;
if (rx.chip_id == CHIP_ID_TL1) {
if (rx.chip_id >= CHIP_ID_TL1) {
spin_lock_irqsave(&reg_rw_lock, flags);
dev_offset = TOP_DWC_BASE_OFFSET +
reg_maps[MAP_ADDR_MODULE_TOP].phy_addr;
@@ -341,7 +341,7 @@ void hdmirx_wr_top(unsigned int addr, unsigned int data)
unsigned long dev_offset = 0;
unsigned int tempaddr = 0;
if (rx.chip_id == CHIP_ID_TL1) {
if (rx.chip_id >= CHIP_ID_TL1) {
spin_lock_irqsave(&reg_rw_lock, flags);
dev_offset = TOP_DWC_BASE_OFFSET +
reg_maps[MAP_ADDR_MODULE_TOP].phy_addr;
@@ -708,7 +708,7 @@ void hdmirx_phy_pddq(unsigned int enable)
uint32_t term_value =
hdmirx_rd_top(TOP_HPD_PWR5V) & 0x7;
if (rx.chip_id == CHIP_ID_TL1) {
if (rx.chip_id >= CHIP_ID_TL1) {
wr_reg_hhi_bits(HHI_HDMIRX_PHY_MISC_CNTL2, _BIT(1), enable);
/* set rxsense */
if (enable)
@@ -744,7 +744,7 @@ void hdmirx_top_sw_reset(void)
ulong flags;
unsigned long dev_offset = 0;
spin_lock_irqsave(&reg_rw_lock, flags);
if (rx.chip_id == CHIP_ID_TL1) {
if (rx.chip_id >= CHIP_ID_TL1) {
dev_offset = TOP_DWC_BASE_OFFSET +
reg_maps[MAP_ADDR_MODULE_TOP].phy_addr;
wr_reg(MAP_ADDR_MODULE_TOP,
@@ -775,7 +775,7 @@ void rx_irq_en(bool enable)
unsigned int data32 = 0;
if (enable) {
if (rx.chip_id == CHIP_ID_TL1) {
if (rx.chip_id >= CHIP_ID_TL1) {
data32 |= 1 << 31; /* DRC_CKS_CHG */
data32 |= 1 << 30; /* DRC_RCV */
data32 |= 0 << 29; /* AUD_TYPE_CHG */
@@ -1082,7 +1082,7 @@ bool is_clk_stable(void)
{
int clk = false;
if (rx.chip_id == CHIP_ID_TL1) {
if (rx.chip_id >= CHIP_ID_TL1) {
/* sqofclk */
clk = hdmirx_rd_top(TOP_MISC_STAT0) & 0x1;
} else {
@@ -1278,7 +1278,7 @@ hdmirx_wr_top(TOP_INFILTER_I2C3, data32);
hdmirx_wr_top(TOP_VID_CNTL2, data32);
}
data32 = 0;
if (rx.chip_id == CHIP_ID_TL1) {
if (rx.chip_id >= CHIP_ID_TL1) {
/* n_cts_auto_mode: */
/* 0-every ACR packet */
/* 1-on N or CTS value change */
@@ -1286,12 +1286,12 @@ hdmirx_wr_top(TOP_INFILTER_I2C3, data32);
}
/* delay cycles before n/cts update pulse */
data32 |= 7 << 0;
if (rx.chip_id == CHIP_ID_TL1)
if (rx.chip_id >= CHIP_ID_TL1)
hdmirx_wr_top(TOP_TL1_ACR_CNTL2, data32);
else
hdmirx_wr_top(TOP_ACR_CNTL2, data32);
if (rx.chip_id == CHIP_ID_TL1) {
if (rx.chip_id >= CHIP_ID_TL1) {
data32 = hdmirx_rd_dwc(DWC_HDCP_CTRL);
/* 0: Original behaviour */
/* 1: Balance path delay between non-HDCP and HDCP */
@@ -1528,7 +1528,7 @@ hdmirx_wr_bits_dwc(DWC_HDCP_CTRL, ENCRIPTION_ENABLE, 1);
#if 0
void rx_set_term_enable(bool enable)
{
if (rx.chip_id == CHIP_ID_TL1) {
if (rx.chip_id >= CHIP_ID_TL1) {
/* need to do : for tl1 */
} else
hdmirx_wr_bits_phy(PHY_MAIN_FSM_OVERRIDE1,
@@ -1540,7 +1540,7 @@ void rx_set_term_value(unsigned char port, bool value)
{
unsigned int data32;
if (rx.chip_id == CHIP_ID_TL1) {
if (rx.chip_id >= CHIP_ID_TL1) {
/* need to do : for tl1 */
data32 = rd_reg_hhi(HHI_HDMIRX_PHY_MISC_CNTL0);
if (port < E_PORT3) {
@@ -1638,7 +1638,7 @@ void rx_force_rxsense_cfg(uint8_t level)
unsigned int term_ovr_value;
unsigned int data32;
if (rx.chip_id == CHIP_ID_TL1) {
if (rx.chip_id >= CHIP_ID_TL1) {
/* enable terminal connect */
data32 = rd_reg_hhi(HHI_HDMIRX_PHY_MISC_CNTL0);
if (level) {
@@ -1743,7 +1743,7 @@ if (en) {
((0 << 25) |
(1 << 24) | /* [ 24] Enable gated clock */
(0 << 16)));
if (rx.chip_id == CHIP_ID_TL1)
if (rx.chip_id >= CHIP_ID_TL1)
/* TL1:esm related clk bit9-11 */
hdmirx_wr_bits_top(TOP_CLK_CNTL, MSK(3, 9), 0x7);
else
@@ -1768,7 +1768,7 @@ if (en) {
void hdmirx_hdcp22_esm_rst(void)
{
/* For TL1,the sw_reset_hdcp22 bit is top reg 0x0,bit'12 */
if (rx.chip_id == CHIP_ID_TL1)
if (rx.chip_id >= CHIP_ID_TL1)
hdmirx_wr_top(TOP_SW_RESET, 0x1000);
else
/* For txlx and previous chips,the sw_reset_hdcp22 is bit'8 */
@@ -1905,7 +1905,7 @@ void clk_init(void)
#endif
if ((rx.chip_id == CHIP_ID_TXLX) ||
(rx.chip_id == CHIP_ID_TXHD) ||
(rx.chip_id == CHIP_ID_TL1)) {
(rx.chip_id >= CHIP_ID_TL1)) {
/* [15] hdmirx_aud_pll4x_en override enable */
/* [14] hdmirx_aud_pll4x_en override value */
/* [6:5] clk_sel for cts_hdmirx_aud_pll_clk: */
@@ -1927,7 +1927,7 @@ void clk_init(void)
data32 |= 0 << 31; /* [31] disable clkgating */
data32 |= 1 << 17; /* [17] audfifo_rd_en */
data32 |= 1 << 16; /* [16] pktfifo_rd_en */
if (rx.chip_id == CHIP_ID_TL1) {
if (rx.chip_id >= CHIP_ID_TL1) {
data32 |= 0 << 8; /* [8] tmds_ch2_clk_inv */
data32 |= 0 << 7; /* [7] tmds_ch1_clk_inv */
data32 |= 0 << 6; /* [6] tmds_ch0_clk_inv */
@@ -2275,7 +2275,7 @@ void hdmirx_phy_init(void)
{
/* uint32_t data32; */
/* uint32_t cur_cable_clk; */
if (rx.chip_id == CHIP_ID_TL1)
if (rx.chip_id >= CHIP_ID_TL1)
aml_phy_bw_switch();
else
snps_phyg3_init();
@@ -2312,7 +2312,7 @@ bool rx_clkrate_monitor(void)
if (clk_rate != rx.phy.clk_rate) {
changed = true;
if (rx.chip_id != CHIP_ID_TL1) {
if (rx.chip_id < CHIP_ID_TL1) {
for (i = 0; i < 3; i++) {
error = hdmirx_wr_bits_phy(PHY_CDR_CTRL_CNT,
CLK_RATE_BIT, clk_rate);
@@ -2438,7 +2438,7 @@ void hdmirx_hw_config(void)
hdmirx_20_init();
DWC_init();
hdmirx_irq_hdcp_enable(true);
if (rx.chip_id == CHIP_ID_TL1)
if (rx.chip_id >= CHIP_ID_TL1)
aml_phy_switch_port();
hdmirx_phy_init();
hdmirx_top_irq_en(true);
@@ -2470,7 +2470,7 @@ void hdmirx_hw_probe(void)
packet_init();
if (rx.chip_id != CHIP_ID_TXHD)
hdmirx_20_init();
if (rx.chip_id == CHIP_ID_TL1)
if (rx.chip_id >= CHIP_ID_TL1)
aml_phy_switch_port();
hdmirx_phy_init();
hdmirx_wr_top(TOP_PORT_SEL, 0x10);
@@ -2556,7 +2556,7 @@ void rx_aud_pll_ctl(bool en)
int tmp = 0;
/*unsigned int od, od2;*/
if (rx.chip_id == CHIP_ID_TL1) {
if (rx.chip_id >= CHIP_ID_TL1) {
if (en) {
/* AUD_CLK=N/CTS*TMDS_CLK */
/* bandgap enable */
@@ -2817,10 +2817,10 @@ int rx_get_clock(enum measure_clk_top_e clk_src)
if (clk_src == TOP_HDMI_TMDSCLK)
tmp_data = hdmirx_rd_top(TOP_METER_HDMI_STAT);
else if (clk_src == TOP_HDMI_CABLECLK) {
if (rx.chip_id == CHIP_ID_TL1)
if (rx.chip_id >= CHIP_ID_TL1)
tmp_data = hdmirx_rd_top(TOP_METER_CABLE_STAT);
} else if (clk_src == TOP_HDMI_AUDIOCLK) {
if (rx.chip_id == CHIP_ID_TL1) {
if (rx.chip_id >= CHIP_ID_TL1) {
/*get audio clk*/
tmp_data = hdmirx_rd_top(TOP_AUDMEAS_REF_CYCLES_STAT0);
tmp_data2 = hdmirx_rd_top(TOP_AUDMEAS_REF_CYCLES_STAT1);
@@ -2942,12 +2942,12 @@ unsigned int rx_measure_clock(enum measure_clk_src_e clksrc)
*/
if (clksrc == MEASURE_CLK_CABLE) {
if (rx.chip_id == CHIP_ID_TL1) {
if (rx.chip_id >= CHIP_ID_TL1) {
clock = meson_clk_measure(30);
/*clock = rx_get_clock(TOP_HDMI_CABLECLK);*/
}
} else if (clksrc == MEASURE_CLK_TMDS) {
if (rx.chip_id == CHIP_ID_TL1)
if (rx.chip_id >= CHIP_ID_TL1)
clock = meson_clk_measure(63);
else {
clock = meson_clk_measure(25);
@@ -2960,18 +2960,18 @@ unsigned int rx_measure_clock(enum measure_clk_src_e clksrc)
} else if (clksrc == MEASURE_CLK_PIXEL) {
clock = meson_clk_measure(29);
} else if (clksrc == MEASURE_CLK_AUD_PLL) {
if (rx.chip_id == CHIP_ID_TL1)
if (rx.chip_id >= CHIP_ID_TL1)
clock = meson_clk_measure(74);/*audio vid out*/
else
clock = meson_clk_measure(24);
} else if (clksrc == MEASURE_CLK_AUD_DIV) {
if (rx.chip_id == CHIP_ID_TL1)
if (rx.chip_id >= CHIP_ID_TL1)
clock = meson_clk_measure(67);/*apll_clk_audio*/
else
clock = meson_clk_measure(98);
} else if (clksrc == MEASURE_CLK_MPLL) {
if (rx.chip_id == CHIP_ID_TL1)
if (rx.chip_id >= CHIP_ID_TL1)
clock = meson_clk_measure(29);/*apll_clk_out_div*/
else
clock = meson_clk_measure(27);
@@ -3101,7 +3101,7 @@ void dump_reg(void)
i = i + 4;
}
if (rx.chip_id == CHIP_ID_TL1) {
if (rx.chip_id >= CHIP_ID_TL1) {
for (i = 0x25; i <= 0x84;) {
rx_pr("[0x%-3x]", i);
rx_pr("0x%-8x", hdmirx_rd_top(i));
@@ -3128,7 +3128,7 @@ void dump_reg(void)
i = i + 4;
}
} else if (rx.chip_id == CHIP_ID_TL1) {
} else if (rx.chip_id >= CHIP_ID_TL1) {
/* dump phy register */
rx_pr("\n***AML PHY registers***\n");
for (i = HHI_HDMIRX_APLL_CNTL0;
@@ -3280,7 +3280,7 @@ int rx_get_aud_pll_err_sts(void)
uint32_t phy_pll_rate = (hdmirx_rd_phy(PHY_MAINFSM_STATUS1)>>9)&0x3;
uint32_t aud_pll_cntl = (rd_reg_hhi(HHI_AUD_PLL_CNTL6)>>28)&0x3;
if (rx.chip_id == CHIP_ID_TL1) {
if (rx.chip_id >= CHIP_ID_TL1) {
/* need to do something ...*/
} else {
if (req_clk > PHY_REQUEST_CLK_MAX ||
@@ -3308,7 +3308,7 @@ uint32_t aml_cable_clk_band(uint32_t cableclk,
uint32_t bw;
uint32_t cab_clk = cableclk;
if (rx.chip_id != CHIP_ID_TL1)
if (rx.chip_id < CHIP_ID_TL1)
return phy_frq_band_2;
/* rx_pr("cable clk=%d, clkrate=%d\n", cableclk, clkrate); */
@@ -3676,7 +3676,7 @@ void rx_get_best_eq_setting(void)
static uint32_t time_cnt;
static uint32_t array_cnt;
if ((rx.chip_id != CHIP_ID_TL1) ||
if ((rx.chip_id < CHIP_ID_TL1) ||
(!find_best_eq))
return;
if ((find_best_eq >= 0x7777) ||
@@ -3916,7 +3916,7 @@ bool is_tmds_valid(void)
if (force_vic)
return true;
if (rx.chip_id == CHIP_ID_TL1)
if (rx.chip_id >= CHIP_ID_TL1)
return (aml_phy_tmds_valid() == 1) ? true : false;
else
return (rx_get_pll_lock_sts() == 1) ? true : false;
@@ -3966,7 +3966,7 @@ void rx_phy_power_on(unsigned int onoff)
hdmirx_phy_pddq(0);
else
hdmirx_phy_pddq(1);
if (rx.chip_id == CHIP_ID_TL1) {
if (rx.chip_id >= CHIP_ID_TL1) {
/*the enable of these regs are in phy init*/
if (onoff == 0) {
wr_reg_hhi_bits(HHI_HDMIRX_APLL_CNTL0, _BIT(28), onoff);
@@ -3981,7 +3981,7 @@ void rx_emp_to_ddr_init(void)
{
unsigned int data;
if (rx.chip_id != CHIP_ID_TL1)
if (rx.chip_id < CHIP_ID_TL1)
return;
if (rx.empbuff.pg_addr) {
@@ -4144,7 +4144,7 @@ void rx_tmds_to_ddr_init(void)
unsigned int data, data2;
unsigned int i = 0;
if (rx.chip_id != CHIP_ID_TL1)
if (rx.chip_id < CHIP_ID_TL1)
return;
if (rx.empbuff.pg_addr) {

View File

@@ -185,7 +185,7 @@ void rx_pkt_debug(void)
data32 |= (rx_pkt_type_mapping(PKT_TYPE_ISRC1));
data32 |= (rx_pkt_type_mapping(PKT_TYPE_ISRC2));
data32 |= (rx_pkt_type_mapping(PKT_TYPE_GAMUT_META));
if (rx.chip_id == CHIP_ID_TL1)
if (rx.chip_id >= CHIP_ID_TL1)
data32 |= (rx_pkt_type_mapping(PKT_TYPE_EMP));
hdmirx_wr_dwc(DWC_PDEC_CTRL, data32);
@@ -351,7 +351,7 @@ void rx_debug_pktinfo(char input[][20])
enable |= _BIT(30);/* DRC_RCV*/
else
enable |= _BIT(9);/* DRC_RCV*/
if (rx.chip_id == CHIP_ID_TL1)
if (rx.chip_id >= CHIP_ID_TL1)
enable |= _BIT(9);/* EMP_RCV*/
enable |= _BIT(20);/* GMD_RCV */
enable |= _BIT(19);/* AIF_RCV */
@@ -394,7 +394,7 @@ void rx_debug_pktinfo(char input[][20])
else if (strncmp(input[2], "amp", 3) == 0)
sts = _BIT(14);
else if (strncmp(input[2], "emp", 3) == 0) {
if (rx.chip_id == CHIP_ID_TL1)
if (rx.chip_id >= CHIP_ID_TL1)
sts = _BIT(9);
else
rx_pr("no emp function\n");
@@ -428,7 +428,7 @@ void rx_debug_pktinfo(char input[][20])
else if (strncmp(input[2], "amp", 3) == 0)
enable |= _BIT(14);
else if (strncmp(input[2], "emp", 3) == 0) {
if (rx.chip_id == CHIP_ID_TL1)
if (rx.chip_id >= CHIP_ID_TL1)
enable |= _BIT(9);
else
rx_pr("no emp function\n");

View File

@@ -211,7 +211,7 @@ struct rx_s rx;
void hdmirx_init_params(void)
{
if (rx.chip_id == CHIP_ID_TL1) {
if (rx.chip_id >= CHIP_ID_TL1) {
clk_unstable_max = 10;
esd_phy_rst_max = 20;
stable_check_lvl = 0x7df;
@@ -359,7 +359,7 @@ static int hdmi_rx_ctrl_irq_handler(void)
}
}
if (rx.chip_id != CHIP_ID_TL1) {
if (rx.chip_id < CHIP_ID_TL1) {
rx_top_intr_stat = hdmirx_rd_top(TOP_INTR_STAT);
if (rx_top_intr_stat & _BIT(31))
irq_need_clr = 1;
@@ -419,7 +419,7 @@ static int hdmi_rx_ctrl_irq_handler(void)
rx_pr("[irq] FIFO MIN\n");
}
if (rx.chip_id == CHIP_ID_TL1) {
if (rx.chip_id >= CHIP_ID_TL1) {
if (rx_get_bits(intr_pedc,
_BIT(9)) != 0) {
if (log_level & 0x400)
@@ -561,7 +561,7 @@ reisr:hdmirx_top_intr_stat = hdmirx_rd_top(TOP_INTR_STAT);
rx_pr("[isr] enc fall\n");
/* must clear ip interrupt quickly */
if (rx.chip_id == CHIP_ID_TL1) {
if (rx.chip_id >= CHIP_ID_TL1) {
hdmirx_top_intr_stat &= 0x1;
} else {
hdmirx_top_intr_stat &= (~(1 << 30));
@@ -578,7 +578,7 @@ reisr:hdmirx_top_intr_stat = hdmirx_rd_top(TOP_INTR_STAT);
}
}
if (rx.chip_id != CHIP_ID_TL1) {
if (rx.chip_id < CHIP_ID_TL1) {
if (error == 1)
goto reisr;
} else {
@@ -2012,7 +2012,7 @@ void rx_monitor_error_counter(void)
ulong timestap;
uint32_t ch0, ch1, ch2;
if (rx.chip_id != CHIP_ID_TL1)
if (rx.chip_id < CHIP_ID_TL1)
return;
timestap = get_seconds();
@@ -2051,7 +2051,7 @@ void rx_err_monitor(void)
break;
case ERR_PHY_UNLOCK:
if (err_dbg_cnt == 0) {
if (rx.chip_id != CHIP_ID_TL1)
if (rx.chip_id < CHIP_ID_TL1)
rx_pr("EQ = %d-%d-%d\n",
eq_ch0.bestsetting,
eq_ch1.bestsetting,
@@ -2543,7 +2543,7 @@ static void dump_phy_status(void)
uint32_t val0, val1, val2, data32;
rx_pr("[PHY info]\n");
if (rx.chip_id == CHIP_ID_TL1) {
if (rx.chip_id >= CHIP_ID_TL1) {
rx_get_error_cnt(&val0, &val1, &val2);
rx_pr("err cnt- ch0: %d,ch1:%d ch2:%d\n", val0, val1, val2);
rx_pr("PLL_LCK_STS(tmds valid) = 0x%x\n",
@@ -2678,7 +2678,7 @@ static void dump_audio_status(void)
rx_pr(" CA=%u\n", a.auds_ch_alloc);
rx_pr("CTS=%d, N=%d,", a.cts, a.n);
rx_pr("acr clk=%d\n", a.arc);
if (rx.chip_id == CHIP_ID_TL1) {
if (rx.chip_id >= CHIP_ID_TL1) {
rx_get_audio_N_CTS(&val0, &val1);
rx_pr("top CTS:%d, N:%d\n", val1, val0);
}