diff options
Diffstat (limited to 'common/charge_manager.c')
-rw-r--r-- | common/charge_manager.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/common/charge_manager.c b/common/charge_manager.c index 388e74fc1c..22ef0e9532 100644 --- a/common/charge_manager.c +++ b/common/charge_manager.c @@ -1246,7 +1246,10 @@ void charge_manager_source_port(int port, int enable) #endif typec_set_source_current_limit(p, rp); - tcpm_select_rp_value(p, rp); + if (IS_ENABLED(CONFIG_USB_PD_TCPMV2)) + typec_select_src_current_limit_rp(p, rp); + else + tcpm_select_rp_value(p, rp); pd_update_contract(p); } } |