summaryrefslogtreecommitdiff
path: root/driver/als_si114x.c
diff options
context:
space:
mode:
authorEdward Hill <ecgh@chromium.org>2018-02-02 12:30:09 -0700
committerchrome-bot <chrome-bot@chromium.org>2018-03-13 19:00:18 -0700
commite74d21f5bdf7f05f13a3b6d496fe37235cb4fdef (patch)
tree93083fe07ed3164f4df807bb8d7366c52ee6e6de /driver/als_si114x.c
parent70a258a192787766289a2804a012337ad0bccc17 (diff)
downloadchrome-ec-e74d21f5bdf7f05f13a3b6d496fe37235cb4fdef.tar.gz
power button: Wait for charger and battery initialization
For PWRBTN_STATE_INIT_ON, before attempting to power the system on, we need to wait for charger and battery to be ready to supply sufficient power. Check every 100 milliseconds, and give up after 1 second. This allows time for charger, battery and USB-C PD initialization. Previously, init-on would fail because it called set_pwrbtn_to_pch too soon (before charge current had been initialized, and before the USB-C 3A current was detected). BUG=b:72645441,b:74017044 BRANCH=none TEST=cold reset Grunt with ac/battery connected/disconnected Change-Id: I0413e7f2d7b19a99c994b51b22f28a2f993137de Signed-off-by: Edward Hill <ecgh@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/900049 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Duncan Laurie <dlaurie@google.com>
Diffstat (limited to 'driver/als_si114x.c')
0 files changed, 0 insertions, 0 deletions