diff options
-rw-r--r-- | driver/tcpm/rt1718s.c | 2 | ||||
-rw-r--r-- | driver/tcpm/rt1718s.h | 8 |
2 files changed, 9 insertions, 1 deletions
diff --git a/driver/tcpm/rt1718s.c b/driver/tcpm/rt1718s.c index 6e7499cbb9..8d36d3e0b3 100644 --- a/driver/tcpm/rt1718s.c +++ b/driver/tcpm/rt1718s.c @@ -88,7 +88,7 @@ int rt1718s_read16(int port, int reg, int *val) } -static int rt1718s_sw_reset(int port) +int rt1718s_sw_reset(int port) { int rv; diff --git a/driver/tcpm/rt1718s.h b/driver/tcpm/rt1718s.h index c2847cea9b..4b8ea5972e 100644 --- a/driver/tcpm/rt1718s.h +++ b/driver/tcpm/rt1718s.h @@ -260,4 +260,12 @@ int rt1718s_set_frs_enable(int port, int enable); */ int rt1718s_frs_init(int port); + +/** + * Software reset RT1718S + * + * @param port USB-C port + * @return EC_SUCCESS if success, EC_ERROR_UNKNOWN otherwise. + */ +int rt1718s_sw_reset(int port); #endif /* __CROS_EC_USB_PD_TCPM_MT6370_H */ |