diff options
Diffstat (limited to 'driver/tcpm/anx7447.c')
-rw-r--r-- | driver/tcpm/anx7447.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/driver/tcpm/anx7447.c b/driver/tcpm/anx7447.c index 37e1342afa..de19f008eb 100644 --- a/driver/tcpm/anx7447.c +++ b/driver/tcpm/anx7447.c @@ -340,9 +340,17 @@ static int anx7447_init(int port) if (rv) return rv; reg &= ~ANX7447_REG_VCONN_OCP_MASK; - reg |= ANX7447_REG_VCONN_OCP_370mA; + reg |= ANX7447_REG_VCONN_OCP_440mA; rv = tcpc_write(port, ANX7447_REG_ANALOG_CTRL_8, reg); + /* Vconn SW protection time of inrush current */ + rv = tcpc_read(port, ANX7447_REG_ANALOG_CTRL_10, ®); + if (rv) + return rv; + reg &= ~ANX7447_REG_R_VCONN_PWR_PRT_INRUSH_TIME_MASK; + reg |= ANX7447_REG_R_VCONN_PWR_PRT_INRUSH_TIME_2430US; + rv = tcpc_write(port, ANX7447_REG_ANALOG_CTRL_10, reg); + /* init hpd status */ anx7447_hpd_mode_en(port); anx7447_set_hpd_level(port, 0); |