diff options
author | Alec Berg <alecaberg@chromium.org> | 2015-07-30 14:19:46 -0700 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-08-02 08:17:09 +0000 |
commit | 37b65d5c8c9400049d17a9349ad0b55f42b8203b (patch) | |
tree | 9106a145b182f171d188b4246522097c4ef0a2db /include/config.h | |
parent | 64bbfe253c7ec2d0fd34cf309d4685448a2fa13d (diff) | |
download | chrome-ec-37b65d5c8c9400049d17a9349ad0b55f42b8203b.tar.gz |
pd: don't enable try.src when battery is not present or too low
Don't enable try.src when battery is not present or <1% because
try.src will temporarily cut off power to system.
BUG=chrome-os-partner:43413
BRANCH=samus
TEST=tested on samus using "battfake" ec command. when battery
<1%, verified that try.src is disabled and when battery >=1% and
the AP is on (dual-role toggling is on), then try.src is enabled.
verified boot without battery succeeds on samus and glados.
Change-Id: I64816bb7c9669bfeca61687bcd9a48da32e67945
Signed-off-by: Alec Berg <alecaberg@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/289854
Reviewed-by: Scott Collyer <scollyer@chromium.org>
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'include/config.h')
-rw-r--r-- | include/config.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h index 293d86eb7c..2b1152468d 100644 --- a/include/config.h +++ b/include/config.h @@ -1616,6 +1616,9 @@ /* Use this option to enable Try.SRC mode for Dual Role devices */ #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 + /* Alternative configuration keeping only the TX part of PHY */ #undef CONFIG_USB_PD_TX_PHY_ONLY |