[PATCH 11/22] cros_ec: Allow reading the battery-charge state

Simon Glass sjg at chromium.org
Sat Jul 17 22:39:18 CEST 2021


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 at chromium.org>
---

 drivers/misc/cros_ec.c | 17 +++++++++++++++++
 include/cros_ec.h      |  8 ++++++++
 2 files changed, 25 insertions(+)

Applied to u-boot-dm, thanks!


More information about the U-Boot mailing list