diff options
author | Jett Rink <jettrink@chromium.org> | 2019-12-16 10:04:23 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-12-16 20:03:33 +0000 |
commit | ead3425b71a445ff3d327730eb89708c5df29100 (patch) | |
tree | 1aa035295753def644ac431e081a692fbae00cf0 | |
parent | f8d4a9440152b71599dcd76453fbb47baa13aa1b (diff) | |
download | chrome-ec-ead3425b71a445ff3d327730eb89708c5df29100.tar.gz |
cleanup: add prototype incorrectly removed
CL:1900058 accidentally removed this prototype that was initially added
in CL:1891255.
BRANCH=none
BUG=none
TEST=builds
Change-Id: Id871cd9981a9be36ed0e366c94a5500111a7d064
Signed-off-by: Jett Rink <jettrink@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1969253
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
-rw-r--r-- | include/usb_pd.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/usb_pd.h b/include/usb_pd.h index 77549cd595..08858f7935 100644 --- a/include/usb_pd.h +++ b/include/usb_pd.h @@ -2329,6 +2329,17 @@ void pd_notify_dp_alt_mode_entry(void); enum pd_cc_states pd_get_cc_state( enum tcpc_cc_voltage_status cc1, enum tcpc_cc_voltage_status cc2); +/* + * Optional, get the board-specific SRC DTS polarity. + * + * This function is used for SRC DTS mode. The polarity is predetermined as a + * board-specific setting, i.e. what Rp impedance the CC lines are pulled. + * + * @param port USB-C port number + * @return port polarity (0=CC1, 1=CC2) + */ +__override_proto uint8_t board_get_src_dts_polarity(int port); + /* ----- Logging ----- */ #ifdef CONFIG_USB_PD_LOGGING /** |