Skip to content
Commit da1ae590 authored by Stefan Mavrodiev's avatar Stefan Mavrodiev Committed by Jagan Teki
Browse files

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: default avatarStefan Mavrodiev <stefan@olimex.com>
Acked-by: Maxime Ripard's avatarMaxime Ripard <maxime.ripard@bootlin.com>
Reviewed-by: default avatarJagan Teki <jagan@openedev.com>
parent f83ef0da
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment