diff options
author | Ruibin Chang <ruibin.chang@ite.com.tw> | 2020-07-21 14:32:35 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-07-23 06:58:02 +0000 |
commit | 0f982a35e978febfc1bab45d1afc048e0c78968a (patch) | |
tree | 3c28abbc9e7b59360f5bb4136b59a07de9fd459e /include | |
parent | 45563a8fc966d6ba9d6788d8ab04dcfdf71a669d (diff) | |
download | chrome-ec-0f982a35e978febfc1bab45d1afc048e0c78968a.tar.gz |
chip/it8320, it81202: Implement fast role swap function
Implement fast role swap function from initial SNK to new SRC
for chip it8320 and it81202.
BUG=none
BRANCH=none
TEST=1.When we detect FRS cc low signal, we can output properly
GPIO signal.
2.FRS false-positives test: PD traffic(ex.power nego,
data and power swap, soft and hard reset) on the CC line
after FRS is enabled.
Change-Id: I3a7bc6a684e57fb19e50c41305751b2fca1ffe2d
Signed-off-by: Ruibin Chang <Ruibin.Chang@ite.com.tw>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1786462
Reviewed-by: Diana Z <dzigterman@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/usb_pd.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/usb_pd.h b/include/usb_pd.h index 45732cb4be..5abbda6136 100644 --- a/include/usb_pd.h +++ b/include/usb_pd.h @@ -2672,6 +2672,13 @@ int pd_set_frs_enable(int port, int enable); __override_proto int board_pd_set_frs_enable(int port, int enable); /** + * Optional board-level function called after TCPC detect FRS signal. + * + * @param port USB-C port number + */ +__overridable void board_frs_handler(int port); + +/** * Get current DisplayPort pin mode on the specified port. * * @param port USB-C port number |