diff options
author | Vincent Palatin <vpalatin@chromium.org> | 2013-02-05 13:05:42 -0800 |
---|---|---|
committer | ChromeBot <chrome-bot@google.com> | 2013-02-05 20:16:22 -0800 |
commit | 231319c08c29676ee1f35994d443c3dccf2098f5 (patch) | |
tree | 784ea3eb4290cda288380b8d31818f307039cc85 /.gitignore | |
parent | f4a9ffdee34f2d59b120eded5688efa3491d5ab1 (diff) | |
download | chrome-ec-231319c08c29676ee1f35994d443c3dccf2098f5.tar.gz |
stm32: implement SMBUS-style read block/string
Add support in the I2C driver for SMBUS-style read block operations.
As defined by the SMBUS standard, a "read block" returns at most 32
bytes of data plus the size of response as the first byte.
It's used to read smart battery strings such as manufacturer or model.
Signed-off-by: Vincent Palatin <vpalatin@chromium.org>
BRANCH=none
BUG=chrome-os-partner:14314
TEST=On Spring, read the battery manufacturer and model from a kernel
patched for the smart-battery passthrough.
Change-Id: I069ce7f64414817e94516e913643d3847a29d176
Reviewed-on: https://gerrit.chromium.org/gerrit/42647
Reviewed-by: Vic Yang <victoryang@chromium.org>
Commit-Queue: Vincent Palatin <vpalatin@chromium.org>
Tested-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions