diff options
-rw-r--r-- | baseboard/dedede/baseboard.h | 8 | ||||
-rw-r--r-- | common/usb_pd_dual_role.c | 2 | ||||
-rw-r--r-- | include/config.h | 2 |
3 files changed, 2 insertions, 10 deletions
diff --git a/baseboard/dedede/baseboard.h b/baseboard/dedede/baseboard.h index ce2aafd76c..98e864467f 100644 --- a/baseboard/dedede/baseboard.h +++ b/baseboard/dedede/baseboard.h @@ -174,14 +174,6 @@ #define CONFIG_USB_PD_TCPM_MUX #define CONFIG_USB_PD_TCPM_TCPCI #define CONFIG_USB_PD_TRY_SRC -/* - * Don't attempt Try.Src if the battery is too low. Even batteries which report - * 1% state of charge can sometimes disable their discharge FET if the load is - * too much. Therefore, set this threshold a bit higher. 5% should leave - * plenty of margin. - */ -#undef CONFIG_USB_PD_TRY_SRC_MIN_BATT_SOC -#define CONFIG_USB_PD_TRY_SRC_MIN_BATT_SOC 5 /* #define CONFIG_USB_PD_VBUS_DETECT_CHARGER */ #define CONFIG_USB_PD_VBUS_MEASURE_CHARGER #define CONFIG_USB_PD_DECODE_SOP diff --git a/common/usb_pd_dual_role.c b/common/usb_pd_dual_role.c index daa6f6dc86..eff8954622 100644 --- a/common/usb_pd_dual_role.c +++ b/common/usb_pd_dual_role.c @@ -360,7 +360,7 @@ bool pd_is_try_source_capable(void) * and at some minimum percentage. */ new_try_src = (try_src && - usb_get_battery_soc() >= CONFIG_USB_PD_TRY_SRC_MIN_BATT_SOC); + usb_get_battery_soc() > CONFIG_USB_PD_TRY_SRC_MIN_BATT_SOC); #ifdef CONFIG_BATTERY_REVIVE_DISCONNECT /* diff --git a/include/config.h b/include/config.h index cd1976ff33..18c377faf1 100644 --- a/include/config.h +++ b/include/config.h @@ -4198,7 +4198,7 @@ #undef CONFIG_USB_PD_TRY_SRC /* Set the default minimum battery percentage for Try.Src to be enabled */ -#define CONFIG_USB_PD_TRY_SRC_MIN_BATT_SOC 1 +#define CONFIG_USB_PD_TRY_SRC_MIN_BATT_SOC 5 /* * Set the minimum battery percentage to allow a PD port to send resets as a |