summaryrefslogtreecommitdiff
path: root/driver/tcpm/rt1718s.h
diff options
context:
space:
mode:
authorEric Yilun Lin <yllin@chromium.org>2023-05-11 14:43:39 +0800
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-05-12 09:46:40 +0000
commit71411640b887ca37c80783bef8ab4ec1d5a15c28 (patch)
tree254575bc7ac6c5491cfe9a00af055ae6207395b5 /driver/tcpm/rt1718s.h
parent940d056342f76d940074a4ab889cca1504c9f305 (diff)
downloadchrome-ec-71411640b887ca37c80783bef8ab4ec1d5a15c28.tar.gz
rt1718s: integrate board src enable functions
Integrate the source enable functions into the driver. Also, reorder the TCPCI call and the board hook call to ensure the board hook is called later in case that the GPIO config auto-reload clobbers the GPIO values. BUG=b:276661970 TEST=test voltorb C1 source/sink Change-Id: Ifff3ae116c088f13ee5e7eec3418810a35ead884 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4522688 Reviewed-by: Ting Shen <phoenixshen@chromium.org> Auto-Submit: Eric Yilun Lin <yllin@google.com> Tested-by: Eric Yilun Lin <yllin@google.com> Commit-Queue: Ting Shen <phoenixshen@chromium.org>
Diffstat (limited to 'driver/tcpm/rt1718s.h')
-rw-r--r--driver/tcpm/rt1718s.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/driver/tcpm/rt1718s.h b/driver/tcpm/rt1718s.h
index d14e2bd498..d036c6901a 100644
--- a/driver/tcpm/rt1718s.h
+++ b/driver/tcpm/rt1718s.h
@@ -274,4 +274,13 @@ int rt1718s_sw_reset(int port);
* @return EC_SUCCESS if success, EC_ERROR_UNKNOWN otherwise.
*/
__override_proto int board_rt1718s_set_snk_enable(int port, int enable);
+
+/**
+ * Board hook for rt1718s_set_src_enable
+ *
+ * @param port USB-C port
+ * @param enable enable/disable source
+ * @return EC_SUCCESS if success, EC_ERROR_UNKNOWN otherwise.
+ */
+__override_proto int board_rt1718s_set_src_enable(int port, int enable);
#endif /* __CROS_EC_USB_PD_TCPM_MT6370_H */