[U-Boot] [PATCH 3/4] sunxi: i2c: Add support for DM I2C

Simon Glass sjg at chromium.org
Sat Apr 29 00:28:30 UTC 2017


On 26 April 2017 at 16:03, Jernej Skrabec <jernej.skrabec at siol.net> wrote:
> This commit adds support for DM I2C on sunxi platform. It can coexist
> with old style sunxi I2C driver, because it is still used in SPL and
> by some SoCs.
>
> Because sunxi platform doesn't yet support DM clk, reset and pinctrl
> driver, workaround is needed to enable clocks and set resets and
> pinctrls. This is done by calling i2c_init_board() in board_init().
> This means that CONFIG_I2Cx_ENABLE options needs to be correctly set
> in order to use needed I2C controller.
>
> Commit is based on the previous patch made by Philipp Tomsich
>
> Signed-off-by: Jernej Skrabec <jernej.skrabec at siol.net>
> ---
>
>  arch/arm/mach-sunxi/board.c    | 2 ++
>  board/sunxi/board.c            | 8 ++++++++
>  drivers/i2c/mvtwsi.c           | 9 +++++++++
>  include/configs/sunxi-common.h | 4 +++-
>  4 files changed, 22 insertions(+), 1 deletion(-)

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


More information about the U-Boot mailing list