Re: [U-Boot] [PATCH 1/1] sunxi: board: Add i2c initialization for sun50i

2019-01-10 Thread Jagan Teki
On Tue, Jan 8, 2019 at 3:47 PM Maxime Ripard wrote: > > On Tue, Jan 08, 2019 at 12:04:30PM +0200, Stefan Mavrodiev wrote: > > To use TWI0/1/2 the user can select CONFIG_I2C#_ENABLE. > > However even the controller is enabled, the mux for the pins > > are not set. > > > > This patch follows the exi

Re: [U-Boot] [PATCH 1/1] sunxi: board: Add i2c initialization for sun50i

2019-01-08 Thread Maxime Ripard
On Tue, Jan 08, 2019 at 12:04:30PM +0200, Stefan Mavrodiev wrote: > To use TWI0/1/2 the user can select CONFIG_I2C#_ENABLE. > However even the controller is enabled, the mux for the pins > are not set. > > This patch follows the existing mux method. Since the pads are > different, separate check i

[U-Boot] [PATCH 1/1] sunxi: board: Add i2c initialization for sun50i

2019-01-08 Thread Stefan Mavrodiev
To use TWI0/1/2 the user can select CONFIG_I2C#_ENABLE. However even the controller is enabled, the mux for the pins are not set. This patch follows the existing mux method. Since the pads are different, separate check is added for each i2c. Tested with A64-SOM204 board. Signed-off-by: Stefan Ma