ARM: tegra: whistler: Add slave address for i2c driver
Laxman Dewangan [Fri, 23 Mar 2012 09:00:33 +0000 (14:00 +0530)]
Configuring all i2c controller to have slave addresss to 0xFC
(unused slave address) to avoid responding the slave with general
call address.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/91951

Change-Id: Id1a45f46cfc5ffa3a48b01c0bae71c4ee9ab699b
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/100259
Reviewed-by: Automatic_Commit_Validation_User

arch/arm/mach-tegra/board-whistler.c

index 06f659c..9b08b64 100644 (file)
@@ -271,6 +271,7 @@ static struct tegra_i2c_platform_data whistler_i2c1_platform_data = {
        .scl_gpio               = {TEGRA_GPIO_PC4, 0},
        .sda_gpio               = {TEGRA_GPIO_PC5, 0},
        .arb_recovery = arb_lost_recovery,
+       .slave_addr = 0xFC,
 };
 
 static const struct tegra_pingroup_config i2c2_ddc = {
@@ -292,6 +293,7 @@ static struct tegra_i2c_platform_data whistler_i2c2_platform_data = {
        .scl_gpio               = {0, TEGRA_GPIO_PT5},
        .sda_gpio               = {0, TEGRA_GPIO_PT6},
        .arb_recovery = arb_lost_recovery,
+       .slave_addr = 0xFC,
 };
 
 static struct tegra_i2c_platform_data whistler_i2c3_platform_data = {
@@ -301,6 +303,7 @@ static struct tegra_i2c_platform_data whistler_i2c3_platform_data = {
        .scl_gpio               = {TEGRA_GPIO_PBB2, 0},
        .sda_gpio               = {TEGRA_GPIO_PBB3, 0},
        .arb_recovery = arb_lost_recovery,
+       .slave_addr = 0xFC,
 };
 
 static struct tegra_i2c_platform_data whistler_dvc_platform_data = {