diff options
author | Elmo_Lan <elmo_lan@compal.corp-partner.google.com> | 2018-07-31 21:50:21 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-08-03 13:37:28 -0700 |
commit | 3184d2b0ce37da695142369c6b17fea96aff778d (patch) | |
tree | a27eb654b3a9ba0a8bad96f38ba2ec03bcb143f8 /cts/gpio/th.c | |
parent | 16c114ed04bda59b601c0a75dce3b23c29b45668 (diff) | |
download | chrome-ec-3184d2b0ce37da695142369c6b17fea96aff778d.tar.gz |
Nami: Delay and repeat gas gauge detection
Currently, battery gas gauges are detected only once at HOOK_INIT. This
is too early when a battery wakes up from cutoff.
This patch makes EC detect gas gauges when needed. On Nami this is
when the power button task checks power readiness. The power button
task then repeatedly performs this check until a gauge wakes up.
BUG=b:111990386
BRANCH=none
TEST=Verify the following on Sona, Vayne, Pantheon, Akali:
1. Write protect EC SPI flash
2. Unplug AC charger
3. Run 'ectool batterycutoff' on AP console
4. After system shuts down, plug in AC charger.
5. System boots automatically.
Change-Id: I50b295bdc7bb048de1d191e1c6964acc8b348b5b
Signed-off-by: Elmo_Lan <elmo_lan@compal.corp-partner.google.com>
Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1160869
(cherry picked from commit 586bf283695e6a9312016ca67e15febcdfd3572f)
Reviewed-on: https://chromium-review.googlesource.com/1156530
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Diffstat (limited to 'cts/gpio/th.c')
0 files changed, 0 insertions, 0 deletions