On 26 April 2017 at 16:03, Jernej Skrabec <[email protected]> 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 <[email protected]> > --- > > 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 <[email protected]> -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
