diff options
Diffstat (limited to 'driver/tcpm/mt6370.h')
-rw-r--r-- | driver/tcpm/mt6370.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/driver/tcpm/mt6370.h b/driver/tcpm/mt6370.h index ff9ac569ee..5fdcffbdca 100644 --- a/driver/tcpm/mt6370.h +++ b/driver/tcpm/mt6370.h @@ -102,6 +102,16 @@ #define MT6370_REG_BMCIO_BG_EN (1 << 2) #define MT6370_REG_VBUS_DET_EN (1 << 1) #define MT6370_REG_BMCIO_OSC_EN (1 << 0) +#define MT6370_REG_BMC_CTRL_DEFAULT \ + (MT6370_REG_BMCIO_BG_EN | MT6370_REG_VBUS_DET_EN | \ + MT6370_REG_BMCIO_OSC_EN) + +/* + * MT6370_REG_OVP_FLAG_SEL + */ + +#define MT6370_MASK_DISCHARGE_LVL 0x03 +#define MT6370_REG_DISCHARGE_LVL (1 << 0) /* * MT6370_REG_RT_STATUS 0x97 @@ -176,4 +186,7 @@ extern const struct tcpm_drv mt6370_tcpm_drv; +/* Enable VCONN discharge. */ +int mt6370_vconn_discharge(int port); + #endif /* __CROS_EC_USB_PD_TCPM_MT6370_H */ |