summaryrefslogtreecommitdiff
path: root/power/rk3288.c
diff options
context:
space:
mode:
authorWai-Hong Tam <waihong@google.com>2020-11-12 17:02:48 -0800
committerCommit Bot <commit-bot@chromium.org>2020-11-14 02:51:41 +0000
commit27c170587fdcc368f461f87fbc7d62d3d738fa12 (patch)
tree44dc7de6d4edf394424d720aadf8bf8fb90bbc09 /power/rk3288.c
parenta7bc367e9af458ab8c5fa8f091ee451be55ea770 (diff)
downloadchrome-ec-27c170587fdcc368f461f87fbc7d62d3d738fa12.tar.gz
sc7180: Fix forever loop if not enough power to boot AP
When the power supply is not enough (<10W adapter and no battery) to boot AP, should clear the boot_from_off flag and go back to S5; otherwise, the boot_from_off flag will trigger the power-on again. Also do the same on power_on() sequence failed. Increase the delay of checking power, such that the messages are not too noisy. BRANCH=None BUG=b:167155164 TEST=Unplugged the battery, plugged a <10W adapter, checked the "Not enough power to boot (-1 %, 7500 mW)" message just showed 10x. Change-Id: Id7c5e66dab62bc71d3e2e00b3be172e13a146ed5 Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2536554 Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Diffstat (limited to 'power/rk3288.c')
0 files changed, 0 insertions, 0 deletions