diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/usb_pd_protocol.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/usb_pd_protocol.c b/common/usb_pd_protocol.c index ff9d710e64..90ca779d8d 100644 --- a/common/usb_pd_protocol.c +++ b/common/usb_pd_protocol.c @@ -2514,7 +2514,8 @@ static typec_current_t get_typec_current_limit(int polarity, int cc1, int cc2) else if (cc == TYPEC_CC_VOLT_RP_1_5) charge = 1500; else if (cc == TYPEC_CC_VOLT_RP_DEF) - charge = 500; + charge = IS_ENABLED(CONFIG_USBC_DISABLE_CHARGE_FROM_RP_DEF) ? + 0 : 500; else charge = 0; |