CHROMIUM: i2c: wire the smart battery passthrough
authorVincent Palatin <vpalatin@chromium.org>
Wed, 20 Feb 2013 16:33:27 +0000 (08:33 -0800)
committerChromeBot <chrome-bot@google.com>
Sat, 23 Feb 2013 02:14:39 +0000 (18:14 -0800)
commit728a87f53691db799f77b565476caae64ee7fd5a
treed181c6b918094caf8be0868eea4d71bb6df84db3
parent48794365b9583dc649f9e0df20e291386123719b
CHROMIUM: i2c: wire the smart battery passthrough

On Spring, the smart battery is behind the EC.
We are connecting the regular SBS I2C driver and translating i2c
messages for the smart battery to the matching EC commands.

Signed-off-by: Vincent Palatin <vpalatin@chromium.org>
BUG=chrome-os-partner:17812
TEST=on Spring, read the battery status by using "power-supply-info"
command.

Change-Id: I4d1353d740201935e1bb9566a08f1a81b0262232
Reviewed-on: https://gerrit.chromium.org/gerrit/43610
Reviewed-by: Todd Broch <tbroch@chromium.org>
Commit-Queue: Vincent Palatin <vpalatin@chromium.org>
Tested-by: Vincent Palatin <vpalatin@chromium.org>
drivers/i2c/busses/i2c-chromeos_ec.c