]> git.baikalelectronics.ru Git - uboot.git/commit
cros_ec: i2c: Add support for version 3 of the EC protocol
authorMoritz Fischer <moritz.fischer@ettus.com>
Fri, 20 Jan 2017 20:35:03 +0000 (12:35 -0800)
committerSimon Glass <sjg@chromium.org>
Wed, 8 Feb 2017 13:12:16 +0000 (06:12 -0700)
commit283c5cfa0ceb1e3a0e11f604646a991d9932c3b8
tree872b5d78d5b196760210762d25fc651a25c676ae
parent0d7cb4d1e4558fe2a2ffeb20e6f6be8a3bfca126
cros_ec: i2c: Add support for version 3 of the EC protocol

Add support for version 3 of the ec protocol. It basically works by
stitching some additional header in front (special command code),
and having a result and packet_length stitched on for the reply.

Signed-off-by: Moritz Fischer <moritz.fischer@ettus.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: u-boot@lists.denx.de
Acked-by: Simon Glass <sjg@chromium.org>
Tested on snow:
Tested-by: Simon Glass <sjg@chromium.org>
drivers/misc/cros_ec_i2c.c