summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlban Bedel <alban.bedel@avionic-design.de>2013-11-13 17:27:19 +0100
committerTom Warren <twarren@nvidia.com>2013-12-18 10:19:49 -0700
commitac2ff538cde458a100da71974bdca8c2142e9e19 (patch)
treea492a8544ba21b717d3fb40177095414fb686a08
parent3346cbb8e878bf5c774835ced7e3916da78e9b74 (diff)
downloadu-boot-imx-ac2ff538cde458a100da71974bdca8c2142e9e19.zip
u-boot-imx-ac2ff538cde458a100da71974bdca8c2142e9e19.tar.gz
u-boot-imx-ac2ff538cde458a100da71974bdca8c2142e9e19.tar.bz2
i2c: tegra: Add the fifth bus on SoC with more than 4 buses
Create the i2c adapter object for the fifth bus on SoC with more than 4 buses. This allow using all the bus available on T30. Signed-off-by: Alban Bedel <alban.bedel@avionic-design.de> Acked-by: Heiko Schocher <hs@denx.de> Signed-off-by: Tom Warren <twarren@nvidia.com>
-rw-r--r--drivers/i2c/tegra_i2c.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/i2c/tegra_i2c.c b/drivers/i2c/tegra_i2c.c
index 9847cf1..594e5dd 100644
--- a/drivers/i2c/tegra_i2c.c
+++ b/drivers/i2c/tegra_i2c.c
@@ -629,3 +629,8 @@ U_BOOT_I2C_ADAP_COMPLETE(tegra2, tegra_i2c_init, tegra_i2c_probe,
U_BOOT_I2C_ADAP_COMPLETE(tegra3, tegra_i2c_init, tegra_i2c_probe,
tegra_i2c_read, tegra_i2c_write,
tegra_i2c_set_bus_speed, 100000, 0, 3)
+#if TEGRA_I2C_NUM_CONTROLLERS > 4
+U_BOOT_I2C_ADAP_COMPLETE(tegra4, tegra_i2c_init, tegra_i2c_probe,
+ tegra_i2c_read, tegra_i2c_write,
+ tegra_i2c_set_bus_speed, 100000, 0, 4)
+#endif