From: Alban Bedel Date: Wed, 13 Nov 2013 16:27:19 +0000 (+0100) Subject: i2c: tegra: Add the fifth bus on SoC with more than 4 buses X-Git-Tag: v2014.01-rc3~9^2~64^2~2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ac2ff538cde458a100da71974bdca8c2142e9e19;p=u-boot 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 Acked-by: Heiko Schocher Signed-off-by: Tom Warren --- diff --git a/drivers/i2c/tegra_i2c.c b/drivers/i2c/tegra_i2c.c index 9847cf126b..594e5ddeb4 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