diff options
Diffstat (limited to 'include/usbc_ppc.h')
-rw-r--r-- | include/usbc_ppc.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/usbc_ppc.h b/include/usbc_ppc.h index efbfbe4b6c..b794792d31 100644 --- a/include/usbc_ppc.h +++ b/include/usbc_ppc.h @@ -114,6 +114,16 @@ struct ppc_drv { int (*set_vconn)(int port, int enable); #endif +#ifdef CONFIG_USB_PD_FRS_PPC + /** + * Turn on/off the FRS trigger + * + * @param port: The Type-C port number. + * @return EC_SUCCESS on success, error otherwise + */ + int (*set_frs_enable)(int port, int enable); +#endif + #ifdef CONFIG_CMD_PPC_DUMP /** * Perform a register dump of the PPC. @@ -148,6 +158,7 @@ struct ppc_config_t { int i2c_port; uint16_t i2c_addr_flags; const struct ppc_drv *drv; + int frs_en; }; extern struct ppc_config_t ppc_chips[]; @@ -301,4 +312,12 @@ int ppc_enter_low_power_mode(int port); */ int ppc_get_alert_status(int port); +/** + * Turn on/off the FRS trigger + * + * @param port: The Type-C port number. + * @return EC_SUCCESS on success, error otherwise + */ +int ppc_set_frs_enable(int port, int enable); + #endif /* !defined(__CROS_EC_USBC_PPC_H) */ |