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)
commit147f785f6737a900d82acd0297a82399f9cba006
tree872b5d78d5b196760210762d25fc651a25c676ae
parent6943ee14e5c8a0b531910e673125dd960992c89d
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