summaryrefslogtreecommitdiff
path: root/common/usbc/usb_tc_drp_acc_trysrc_sm.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/usbc/usb_tc_drp_acc_trysrc_sm.c')
-rw-r--r--common/usbc/usb_tc_drp_acc_trysrc_sm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/usbc/usb_tc_drp_acc_trysrc_sm.c b/common/usbc/usb_tc_drp_acc_trysrc_sm.c
index c2e47f7906..b73b8ecf25 100644
--- a/common/usbc/usb_tc_drp_acc_trysrc_sm.c
+++ b/common/usbc/usb_tc_drp_acc_trysrc_sm.c
@@ -3011,6 +3011,10 @@ static void tc_attached_src_entry(const int port)
/* Inform PPC and OCP module that a sink is connected. */
tc_set_partner_role(port, PPC_DEV_SNK);
+ /* Initialize type-C supplier to seed the charge manger */
+ if (IS_ENABLED(CONFIG_CHARGE_MANAGER))
+ typec_set_input_current_limit(port, 0, 0);
+
/*
* Only notify if we're not performing a power role swap. During a
* power role swap, the port partner is not disconnecting/connecting.