commit | cabe992d2140753ae862a2d5d7b4c6f395b92516 | [log] [tgz] |
---|---|---|
author | Stefan Mavrodiev <stefan@olimex.com> | Tue Jan 08 12:04:30 2019 +0200 |
committer | Jagan Teki <jagan@amarulasolutions.com> | Fri Jan 18 22:19:08 2019 +0530 |
tree | 5b90f14e814a4e7cd57a27ed5db392658985d069 | |
parent | 6a1bbfa6d2c56ab2bb24cf43b42b069c39fbbfc8 [diff] |
sunxi: board: Add i2c initialization for sun50i 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 Mavrodiev <stefan@olimex.com> Acked-by: Maxime Ripard <maxime.ripard@bootlin.com> Reviewed-by: Jagan Teki <jagan@openedev.com>