diff options
author | Alok Chauhan <alokc@nvidia.com> | 2011-08-16 14:39:42 +0530 |
---|---|---|
committer | Varun Wadekar <vwadekar@nvidia.com> | 2011-12-21 12:06:22 +0530 |
commit | c753b0b8ac4f344b938b9cb1de539e095371123b (patch) | |
tree | bfda1350d9de543d53e566d6740f76d055d9e599 /arch/arm/mach-tegra/board-ventana.c | |
parent | 71653d7720a77add116228c7e5717c5a74553f18 (diff) |
arm: tegra: Updated i2c platform data
Updated i2c platform data to add i2c arb lost recovery funtion
and corresponding gpio numbers to i2c pins
This is cherry pick of change http://git-master/r/#change,47290
Change-Id: I4098a512625c16598b8596d0e46d285ca9b92d2b
Signed-off-by: Shridhar Rasal <srasal@nvidia.com>
Reviewed-on: http://git-master/r/69717
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Vandana Salve <vsalve@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Alok Chauhan <alokc@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/board-ventana.c')
-rw-r--r-- | arch/arm/mach-tegra/board-ventana.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/board-ventana.c b/arch/arm/mach-tegra/board-ventana.c index 45333fb01206..5560e8457c65 100644 --- a/arch/arm/mach-tegra/board-ventana.c +++ b/arch/arm/mach-tegra/board-ventana.c @@ -181,6 +181,9 @@ static struct tegra_i2c_platform_data ventana_i2c1_platform_data = { .bus_count = 1, .bus_clk_rate = { 400000, 0 }, .slave_addr = 0x00FC, + .scl_gpio = {TEGRA_GPIO_PC4, 0}, + .sda_gpio = {TEGRA_GPIO_PC5, 0}, + .arb_recovery = arb_lost_recovery, }; static const struct tegra_pingroup_config i2c2_ddc = { @@ -200,6 +203,9 @@ static struct tegra_i2c_platform_data ventana_i2c2_platform_data = { .bus_mux = { &i2c2_ddc, &i2c2_gen2 }, .bus_mux_len = { 1, 1 }, .slave_addr = 0x00FC, + .scl_gpio = {0, TEGRA_GPIO_PT5}, + .sda_gpio = {0, TEGRA_GPIO_PT6}, + .arb_recovery = arb_lost_recovery, }; static struct tegra_i2c_platform_data ventana_i2c3_platform_data = { @@ -207,6 +213,9 @@ static struct tegra_i2c_platform_data ventana_i2c3_platform_data = { .bus_count = 1, .bus_clk_rate = { 400000, 0 }, .slave_addr = 0x00FC, + .scl_gpio = {TEGRA_GPIO_PBB2, 0}, + .sda_gpio = {TEGRA_GPIO_PBB3, 0}, + .arb_recovery = arb_lost_recovery, }; static struct tegra_i2c_platform_data ventana_dvc_platform_data = { @@ -214,6 +223,9 @@ static struct tegra_i2c_platform_data ventana_dvc_platform_data = { .bus_count = 1, .bus_clk_rate = { 400000, 0 }, .is_dvc = true, + .scl_gpio = {TEGRA_GPIO_PZ6, 0}, + .sda_gpio = {TEGRA_GPIO_PZ7, 0}, + .arb_recovery = arb_lost_recovery, }; static struct wm8903_platform_data ventana_wm8903_pdata = { |