summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorVijay Hiremath <vijay.p.hiremath@intel.com>2020-02-11 12:48:46 -0800
committerCommit Bot <commit-bot@chromium.org>2020-02-12 20:05:34 +0000
commit0c2d07061c82d718288dbc287ca56b17da2206f9 (patch)
tree51529bc2c06549f5c82037809c530fc1aac23d9d /include
parentb7f0b4cd0cd42319d204ac653224f3661a463237 (diff)
downloadchrome-ec-0c2d07061c82d718288dbc287ca56b17da2206f9.tar.gz
TCPMv1/v2: Move pd_process_source_cap() to common file
BUG=b:148528713 BRANCH=none TEST=make buildall -j Change-Id: I6bd6b5875a322ca4ba6d77a4cfc96a72630e5f5c Signed-off-by: Vijay Hiremath <vijay.p.hiremath@intel.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2051220 Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/usb_pd.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/usb_pd.h b/include/usb_pd.h
index 7e3ad705df..1d75abf638 100644
--- a/include/usb_pd.h
+++ b/include/usb_pd.h
@@ -2398,6 +2398,16 @@ const uint32_t * const pd_get_src_caps(int port);
uint8_t pd_get_src_cap_cnt(int port);
/**
+ * Set the source caps list & count
+ *
+ * @param port USB-C port number
+ * @param cnt Source caps count
+ * @param src_caps Pointer to source caps
+ *
+ */
+void pd_set_src_caps(int port, int cnt, uint32_t *src_caps);
+
+/**
* Return true if partner port is capable of communication over USB data
* lines.
*