summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEric Yilun Lin <yllin@chromium.org>2021-04-07 17:55:47 +0800
committerCommit Bot <commit-bot@chromium.org>2021-04-08 03:30:45 +0000
commit8d70ee4c035e949d5e59655d93c43ebd81060c87 (patch)
tree1944058e21741d47bee13b1a131abe1f09675234 /include
parentee5451a866ad69461ae08e9e7e9b0bf818621d34 (diff)
downloadchrome-ec-8d70ee4c035e949d5e59655d93c43ebd81060c87.tar.gz
pd commands: support PD console command srccaps
This allows servo querying DUT's srccap easier. BUG=b:140256624 TEST=on servo_v4 (TCPMv1) and Asurada (TCPMv2) tested that 1. plug adapter `pd 0 srccaps` show the PDOs 2. unplug adapter `pd 0 srccaps` show nothing sample output: > pd 1 srccaps 0: 5000mV/3000mA 1: 9000mV/2000mA 2: 12000mV/1500mA 3: 3300mV-5900mV/3000mA 4: 3300mV-11000mV/2000mA BRANCH=servo Change-Id: Iadf9f9d91359c96b188509a28b3dc42a7e7b2223 Signed-off-by: Eric Yilun Lin <yllin@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2804008 Reviewed-by: Wai-Hong Tam <waihong@google.com>
Diffstat (limited to 'include')
-rw-r--r--include/usb_common.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/usb_common.h b/include/usb_common.h
index 91418937df..57c2e1d870 100644
--- a/include/usb_common.h
+++ b/include/usb_common.h
@@ -254,4 +254,11 @@ int usb_retimer_fw_update_get_result(void);
* @param port USB-C port number
*/
void usb_retimer_fw_update_process_op_cb(int port);
+
+/**
+ * Dump SourceCap information.
+ *
+ * @param port USB-C port number
+ */
+void pd_srccaps_dump(int port);
#endif /* __CROS_EC_USB_COMMON_H */