diff options
author | Keith Short <keithshort@chromium.org> | 2020-12-06 11:42:54 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-12-11 23:53:17 +0000 |
commit | ac4f512e60af42efe693e6955c110a7908090e56 (patch) | |
tree | 22077ab466f9084c2ccce81e8ab281e3b11af7c1 /power | |
parent | d421419f1a2c095857d846d6107fe575a3b3571c (diff) | |
download | chrome-ec-ac4f512e60af42efe693e6955c110a7908090e56.tar.gz |
zephyr: Add battery and smart battery options
Shim in battery and smart battery support.
BUG=b:175248556
BRANCH=none
TEST=boot on volteer, run 'battery' command.
TEST=run 'ninja menuconfig' and check KConfig help text.
20-12-10 20:08:12.778 battery
20-12-10 20:08:13.509 Status: 0x02c0 DCHG INIT RC
20-12-10 20:08:13.529 Param flags:00000003
20-12-10 20:08:13.541 Temp: 0x0b63 = %.1d K (%.1d C)
20-12-10 20:08:13.541 V: 0x2a1e = 10782 mV
20-12-10 20:08:13.541 V-desired: 0x3390 = 13200 mV
20-12-10 20:08:13.541 I: 0x0000 = 0 mA
20-12-10 20:08:13.550 I-desired: 0x0a19 = 2585 mA
20-12-10 20:08:13.550 Charging: Allowed
20-12-10 20:08:13.550 Charge: 0 %
20-12-10 20:08:13.550 Manuf: LG
20-12-10 20:08:13.555 Device: AC17A8
20-12-10 20:08:13.573 Chem: LIO
20-12-10 20:08:13.573 Serial: 0xb754
20-12-10 20:08:13.573 V-design: 0x2d1e = 11550 mV
20-12-10 20:08:13.573 Mode: 0x6001
20-12-10 20:08:13.573 Abs charge:0 %
20-12-10 20:08:13.573 Remaining: 0 mAh
20-12-10 20:08:13.577 Cap-full: 4932 mAh (4833 mAh with 98 % compensation)
20-12-10 20:08:13.585 Design: 5360 mAh
20-12-10 20:08:13.594 Time-full: 0h:0
20-12-10 20:08:13.594 Empty: 0h:0
Change-Id: Ie782e75ee4027ab2a5c6a0ae7f4ad81e9c360711
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2575199
Diffstat (limited to 'power')
-rw-r--r-- | power/common.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/power/common.c b/power/common.c index ea6190d523..6f14e69989 100644 --- a/power/common.c +++ b/power/common.c @@ -663,6 +663,8 @@ void chipset_task(void *u) static uint32_t last_in_signals; while (1) { + msleep(100); + continue; /* * In order to prevent repeated console spam, only print the * current power state if something has actually changed. It's |