diff options
author | Vincent Palatin <vpalatin@chromium.org> | 2014-07-09 20:18:57 -0700 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-07-29 02:20:11 +0000 |
commit | 63429076b3473ab261316a1136c02ab376256c20 (patch) | |
tree | 4602e12ca9f2b35389d6980d8ae5e2df3465c320 /common/power_button.c | |
parent | f4ebbb821ba20340f98c4602d5034be44f53de6c (diff) | |
download | chrome-ec-63429076b3473ab261316a1136c02ab376256c20.tar.gz |
battery: fix BQ27541/BQ27741 gas gauge driver
Update the code to be compatible with charge v2 expectations :
never return EC_ERROR_UNIMPLEMENTED for battery information else the
charge code continuously tries to read them again.
Fix the State Of Charge reading : on BQ27741 the gas gauge gets confused
if we do a 16-bit I2C read while a 8-bit read works perfectly.
Signed-off-by: Vincent Palatin <vpalatin@chromium.org>
BRANCH=none
BUG=none
TEST=run a Ryu connected to a Kirby battery and check the output of the
"battery" command.
Change-Id: Ic1d6128dc02efa47662fa5ca5b9e5de62420ebe8
Reviewed-on: https://chromium-review.googlesource.com/207273
Reviewed-by: Vic Yang <victoryang@chromium.org>
Tested-by: Vic Yang <victoryang@chromium.org>
Commit-Queue: Vic Yang <victoryang@chromium.org>
Diffstat (limited to 'common/power_button.c')
0 files changed, 0 insertions, 0 deletions