]> git.dujemihanovic.xyz Git - u-boot.git/commit
cros_ec: Allow reading the battery-charge state
authorSimon Glass <sjg@chromium.org>
Mon, 5 Jul 2021 22:32:49 +0000 (16:32 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 21 Jul 2021 16:27:34 +0000 (10:27 -0600)
commit201efb2bb0f7c4ae5f08f51b6f6b7cdfdba5b4f4
tree6026b80c95198250f84aa76701c47770f552948b
parentecc1ed912e4400b19783d4bd384914597c4a3679
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>
drivers/misc/cros_ec.c
include/cros_ec.h