[U-Boot] [PATCH] cros_ec: i2c: Add support for version 3 of the EC protocol

Simon Glass sjg at chromium.org
Thu Jan 26 15:23:22 CET 2017


Hi,

On 12 January 2017 at 14:59, Moritz Fischer <moritz.fischer at ettus.com> wrote:
> 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 at ettus.com>
> Cc: Simon Glass <sjg at chromium.org>
> Cc: u-boot at lists.denx.de
> ---
> Hi Simon,
>
> I tested this on a v3 EC, but again as for the previous patch,
> I do not have a v2 EC to test with. I'm not perfectly happy with the memmove
> back and forth, so if you have a better solution for that I'm all ears.
>
> Thanks,
> Moritz
>
> ---
>  drivers/misc/cros_ec_i2c.c | 84 ++++++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 84 insertions(+)

Unfortunately due to travel I'm not going to be able to try this
out/review it for two more weeks.

Regards,
Simon


More information about the U-Boot mailing list