[PATCH u-boot v2 6/6] aspeed: I2C driver

Simon Glass sjg at chromium.org
Mon Nov 28 04:02:07 AEDT 2016


On 23 November 2016 at 17:28, Maxim Sloyko <maxims at google.com> wrote:
> The driver is very limited: only single master mode is supported
> and only byte-by-byte synchronous reads and writes are supported,
> no Pool Buffers or DMA.
>
> Signed-off-by: Maxim Sloyko <maxims at google.com>
> ---
> Changes for v1:
>         - Style fixes: blank lines, line formatting, dropped inline from definitions
>         - More documentation for CONFIG_SYS_I2C_AST
>         - Use standard ETIMEOUT error
>         - Documented struct ast_i2c
>         - Documented get_clk_reg_val function
>         - Rewritten get_clk_reg_val to use register masks and shifts defined in ast_i2c.h
>         - Dropped AST_ prefix from AST_I2CD_ defines
> Changes for v2:
>         - More style fixes for things missed in v1
>         - Return error from ast_i2c_xfer on deblock failure
> ---
>  drivers/i2c/Kconfig   |   9 ++
>  drivers/i2c/Makefile  |   1 +
>  drivers/i2c/ast_i2c.c | 335 ++++++++++++++++++++++++++++++++++++++++++++++++++
>  drivers/i2c/ast_i2c.h | 130 ++++++++++++++++++++
>  4 files changed, 475 insertions(+)
>  create mode 100644 drivers/i2c/ast_i2c.c
>  create mode 100644 drivers/i2c/ast_i2c.h

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the openbmc mailing list