summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWai-Hong Tam <waihong@google.com>2020-08-17 14:09:48 -0700
committerCommit Bot <commit-bot@chromium.org>2020-08-18 18:07:21 +0000
commit5cf6b55666bd59f5d2af5b261c4cfb11b754a5c0 (patch)
treeba94ff032a3dc48e738e57ecd65721cc024d0d10
parentb2c401063dcb61031eaf127d36ed97b31bdd0fc7 (diff)
downloadchrome-ec-5cf6b55666bd59f5d2af5b261c4cfb11b754a5c0.tar.gz
sc7180: Increase the timeout of waiting enough power
In a device without battery plugged, EC has to wait PD to negotiate to at least 7.5W. Some charger takes a bit longer to negotiate a PD contract and misses the timeout. AP won't autoboot. This CL increases the timeout. BRANCH=None BUG=b:165027088, b:150240129 TEST=Unplugged the battery, plugged a PD charger, and AP booted up. Change-Id: I775f87c2a7c25a3c160bd97d09bbbc1d617095b4 Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2360435 Reviewed-by: Alexandru M Stan <amstan@chromium.org>
-rw-r--r--power/sc7180.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/power/sc7180.c b/power/sc7180.c
index bff904f9c8..71ada2754a 100644
--- a/power/sc7180.c
+++ b/power/sc7180.c
@@ -74,7 +74,7 @@
#define PMIC_RESIN_PULSE_LENGTH (20 * MSEC)
/* The timeout of the check if the system can boot AP */
-#define CAN_BOOT_AP_CHECK_TIMEOUT (500 * MSEC)
+#define CAN_BOOT_AP_CHECK_TIMEOUT (1500 * MSEC)
/* Wait for polling if the system can boot AP */
#define CAN_BOOT_AP_CHECK_WAIT (100 * MSEC)