summaryrefslogtreecommitdiff
path: root/driver/tcpm/rt1718s.h
diff options
context:
space:
mode:
authorEric Yilun Lin <yllin@chromium.org>2022-01-14 14:22:12 +0800
committerCommit Bot <commit-bot@chromium.org>2022-01-19 06:38:17 +0000
commitfd8210fd57184db0f496a89ea83e4525dabbc644 (patch)
treeb2ad840facfc95ba22fbf53c7cf15112659821c5 /driver/tcpm/rt1718s.h
parentc836b762e935c9a531a8ff2059489d9a92c79242 (diff)
downloadchrome-ec-fd8210fd57184db0f496a89ea83e4525dabbc644.tar.gz
tcpm/rt1718s: add board hook for set_snk_ctrl()
RT1718S provides 3 GPIO for universal uses, and one of the use is making one of the GPIO a SNK enable pin. For such case, we add a board hook for board customization, so the board can control the pin as their needs. BUG=b:214146359 TEST=ensure the board hook is called BRANCH=none Change-Id: I15955e07bfcd192ea79ab891da58021a2ec153c6 Signed-off-by: Eric Yilun Lin <yllin@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3386981 Reviewed-by: Ting Shen <phoenixshen@chromium.org> Commit-Queue: Eric Yilun Lin <yllin@google.com> Tested-by: Eric Yilun Lin <yllin@google.com>
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 2e74132847..791398db5c 100644
--- a/driver/tcpm/rt1718s.h
+++ b/driver/tcpm/rt1718s.h
@@ -269,4 +269,13 @@ int rt1718s_frs_init(int port);
* @return EC_SUCCESS if success, EC_ERROR_UNKNOWN otherwise.
*/
int rt1718s_sw_reset(int port);
+
+/**
+ * Board hook for rt1718s_set_snk_enable
+ *
+ * @param port USB-C port
+ * @param enable enable/disable sink
+ * @return EC_SUCCESS if success, EC_ERROR_UNKNOWN otherwise.
+ */
+__override_proto int board_rt1718s_set_snk_enable(int port, int enable);
#endif /* __CROS_EC_USB_PD_TCPM_MT6370_H */