summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPaul Kocialkowski <contact@paulk.fr>2015-04-10 23:09:52 +0200
committerHans de Goede <hdegoede@redhat.com>2015-04-15 16:33:17 +0200
commit6c739c5d8a3466f8ef2f8543636484957bcca6ee (patch)
tree0433603560e2badfc29601d6225c6577bc543b07 /include
parentdd82242b4dd7d251ef9ba43563cf9a0017d6f98e (diff)
downloadu-boot-imx-6c739c5d8a3466f8ef2f8543636484957bcca6ee.zip
u-boot-imx-6c739c5d8a3466f8ef2f8543636484957bcca6ee.tar.gz
u-boot-imx-6c739c5d8a3466f8ef2f8543636484957bcca6ee.tar.bz2
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')
-rw-r--r--include/configs/sunxi-common.h4
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