diff options
author | Paul Kocialkowski <contact@paulk.fr> | 2015-04-10 21:09:52 (GMT) |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2015-04-15 14:33:17 (GMT) |
commit | 6c739c5d8a3466f8ef2f8543636484957bcca6ee (patch) | |
tree | 0433603560e2badfc29601d6225c6577bc543b07 /include/configs | |
parent | dd82242b4dd7d251ef9ba43563cf9a0017d6f98e (diff) | |
download | u-boot-6c739c5d8a3466f8ef2f8543636484957bcca6ee.tar.xz |
sunxi: Complete i2c support for each supported platform
Sunxi platforms come with at least 3 TWI (I2C) controllers and some platforms
even have up to 5. This adds support for every controller on each supported
platform, which is especially useful when using expansion ports on single-board-
computers.
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Acked-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'include/configs')
-rw-r--r-- | include/configs/sunxi-common.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/configs/sunxi-common.h b/include/configs/sunxi-common.h index 1f7a1cb..438272c 100644 --- a/include/configs/sunxi-common.h +++ b/include/configs/sunxi-common.h @@ -196,7 +196,11 @@ #endif #define CONFIG_SYS_I2C +#if defined CONFIG_I2C0_ENABLE || defined CONFIG_I2C1_ENABLE || \ + defined CONFIG_I2C2_ENABLE || defined CONFIG_I2C3_ENABLE || \ + defined CONFIG_I2C4_ENABLE #define CONFIG_SYS_I2C_MVTWSI +#endif #define CONFIG_SYS_I2C_SPEED 400000 #define CONFIG_SYS_I2C_SLAVE 0x7f |