summaryrefslogtreecommitdiff
path: root/include/usb_pd_tcpm.h
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 /include/usb_pd_tcpm.h
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 'include/usb_pd_tcpm.h')
-rw-r--r--include/usb_pd_tcpm.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/usb_pd_tcpm.h b/include/usb_pd_tcpm.h
index b0338f6962..1de8c5121b 100644
--- a/include/usb_pd_tcpm.h
+++ b/include/usb_pd_tcpm.h
@@ -515,6 +515,16 @@ struct tcpm_drv {
*/
enum ec_error_list (*set_bist_test_mode)(int port, bool enable);
+ /**
+ * Get control of BIST Test Mode (or analogous functionality) in the
+ * TCPC.
+ *
+ * @param port USB-C port number
+ * @param enable true for BIST Test Mode enabled; false for error
+ * occurred or BIST Test Mode disabled.
+ * @return EC_SUCCESS or error code
+ */
+ enum ec_error_list (*get_bist_test_mode)(int port, bool *enable);
#ifdef CONFIG_CMD_TCPC_DUMP
/**
* Dump TCPC registers