diff options
author | Tom Cherry <tcherry@nvidia.com> | 2011-01-31 17:10:51 -0800 |
---|---|---|
committer | Varun Colbert <vcolbert@nvidia.com> | 2011-02-02 17:20:00 -0800 |
commit | cea34b2178fb828afefbddc8183b82c841dc3752 (patch) | |
tree | 45754ea6990005c036125251a0705a74363ec448 | |
parent | c412dee2dce46db58ba2c9c58faa3a19f5cdba2e (diff) |
[mach-tegra/whistler] Mux i2c bus i2c2
Mux i2c bus i2c2 into dcc bus and gen2 bus
Bug 786162
Change-Id: Id163459afa8d9f27564a051f6bf239c13d3cd8b6
Reviewed-on: http://git-master/r/17806
Tested-by: Thomas Cherry <tcherry@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
-rw-r--r-- | arch/arm/mach-tegra/board-whistler.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/arch/arm/mach-tegra/board-whistler.c b/arch/arm/mach-tegra/board-whistler.c index bacc939c5057..87445a41779e 100644 --- a/arch/arm/mach-tegra/board-whistler.c +++ b/arch/arm/mach-tegra/board-whistler.c @@ -192,10 +192,22 @@ static struct tegra_i2c_platform_data whistler_i2c1_platform_data = { .bus_clk_rate = { 400000, 0 }, }; +static const struct tegra_pingroup_config i2c2_ddc = { + .pingroup = TEGRA_PINGROUP_DDC, + .func = TEGRA_MUX_I2C2, +}; + +static const struct tegra_pingroup_config i2c2_gen2 = { + .pingroup = TEGRA_PINGROUP_PTA, + .func = TEGRA_MUX_I2C2, +}; + static struct tegra_i2c_platform_data whistler_i2c2_platform_data = { .adapter_nr = 1, - .bus_count = 1, - .bus_clk_rate = { 400000, 0 }, + .bus_count = 2, + .bus_clk_rate = { 400000, 100000 }, + .bus_mux = { &i2c2_ddc, &i2c2_gen2 }, + .bus_mux_len = { 1, 1 }, }; static struct tegra_i2c_platform_data whistler_i2c3_platform_data = { |