commit | cbb191bcfe686e1e4ab5f8189f4d7a05a3ff831c | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Mon Jul 05 16:32:49 2021 -0600 |
committer | Simon Glass <sjg@chromium.org> | Wed Jul 21 10:27:34 2021 -0600 |
tree | 6026b80c95198250f84aa76701c47770f552948b | |
parent | 1e198a686d40f444e1a28b7fea80f5fc12591633 [diff] |
cros_ec: Allow reading the battery-charge state Add a function to read this information from the EC. It is useful for determining whether the battery has enough charge to boot. Signed-off-by: Simon Glass <sjg@chromium.org>