summaryrefslogtreecommitdiff
path: root/driver/tcpm/ps8xxx.c
diff options
context:
space:
mode:
authorEric Yilun Lin <yllin@chromium.org>2022-07-28 10:22:07 +0800
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-08-22 03:59:21 +0000
commitc93dd8fc042768dac527c660b43445cb353cc130 (patch)
tree05b501d02bdde3ac2c0ff3aa355859b695702ab9 /driver/tcpm/ps8xxx.c
parent44a98389a9969e394e84f7c4218ed8b6d104390f (diff)
downloadchrome-ec-c93dd8fc042768dac527c660b43445cb353cc130.tar.gz
tcpm: add tcpc_get_bist_test_mode
Add tcpc_get_bist_test_mode which returns the BIST mode control status. BUG=b:229812911 TEST=ensure the BIST status is reported correctly BRANCH=none Change-Id: Idbec04e449c962ee1b3185aa91a324c1a5215960 Signed-off-by: Eric Yilun Lin <yllin@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3787827 Commit-Queue: Eric Yilun Lin <yllin@google.com> Reviewed-by: Abe Levkoy <alevkoy@chromium.org> Tested-by: Eric Yilun Lin <yllin@google.com>
Diffstat (limited to 'driver/tcpm/ps8xxx.c')
-rw-r--r--driver/tcpm/ps8xxx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/driver/tcpm/ps8xxx.c b/driver/tcpm/ps8xxx.c
index 9c51fbc910..a1557c5fc7 100644
--- a/driver/tcpm/ps8xxx.c
+++ b/driver/tcpm/ps8xxx.c
@@ -1037,6 +1037,7 @@ const struct tcpm_drv ps8xxx_tcpm_drv = {
.enter_low_power_mode = ps8xxx_enter_low_power_mode,
#endif
.set_bist_test_mode = tcpci_set_bist_test_mode,
+ .get_bist_test_mode = &tcpci_get_bist_test_mode,
#if defined(CONFIG_USB_PD_FRS) && (defined(CONFIG_USB_PD_TCPM_PS8815) || \
defined(CONFIG_USB_PD_TCPM_PS8745))
.set_frs_enable = ps8815_tcpc_fast_role_swap_enable,