On 26 April 2017 at 16:03, Jernej Skrabec <jernej.skra...@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.skra...@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 <s...@chromium.org> _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot