From 251827028c193eea50630ece1b22b4513e167cd2 Mon Sep 17 00:00:00 2001 From: Abe Levkoy Date: Tue, 17 Nov 2020 18:20:29 -0700 Subject: TCPMv2: Support BIST Test Mode After the first BIST Test Data packet, enable BIST Test Mode if the TCPC supports it (currently just TCPCI). While in BIST Test Mode, mask ALERT.ReceivedSOP*MessageStatus. Unmask it when the test ends, due to Hard Reset or to detach. BUG=b:173023378,b:169385081,b:172709198,b:173028832,b:173028791 BUG=b:173141941,b:173142113 TEST=Complete TDA.2.1.2.2 BMC PHY RX INT REJ on volteer without running out of Rx buffer space or watchdog timeout (still fail though) BRANCH=firmware-volteer-13521.B-master Signed-off-by: Abe Levkoy Change-Id: I03bbc4cfacceebd0334aa814e11a16e09177a322 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2545667 Reviewed-by: Diana Z --- driver/tcpm/anx74xx.c | 1 + 1 file changed, 1 insertion(+) (limited to 'driver/tcpm/anx74xx.c') diff --git a/driver/tcpm/anx74xx.c b/driver/tcpm/anx74xx.c index c6cd1b9d6e..f45f7cd25e 100644 --- a/driver/tcpm/anx74xx.c +++ b/driver/tcpm/anx74xx.c @@ -1186,6 +1186,7 @@ const struct tcpm_drv anx74xx_tcpm_drv = { .drp_toggle = &anx74xx_tcpc_drp_toggle, .enter_low_power_mode = &anx74xx_enter_low_power_mode, #endif + .set_bist_test_mode = &tcpci_set_bist_test_mode, }; #ifdef CONFIG_CMD_I2C_STRESS_TEST_TCPC -- cgit v1.2.1