Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 260578
b: refs/heads/master
c: dda9cd2
h: refs/heads/master
v: v3
  • Loading branch information
Marc Dietrich authored and Colin Cross committed Jul 13, 2011
1 parent d8a9189 commit d2f9b19
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4592de7da8ec8d7d8d84da72aa517c145826dcc3
refs/heads/master: dda9cd289ca781593354cf9ad9c091aa5a1260a8
27 changes: 27 additions & 0 deletions trunk/arch/arm/mach-tegra/board-paz00.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
#include <linux/dma-mapping.h>
#include <linux/pda_power.h>
#include <linux/io.h>
#include <linux/i2c.h>
#include <linux/i2c-tegra.h>

#include <asm/mach-types.h>
#include <asm/mach/arch.h>
Expand Down Expand Up @@ -70,6 +72,29 @@ static struct platform_device *paz00_devices[] __initdata = {
&tegra_sdhci_device4,
};

static struct tegra_i2c_platform_data paz00_i2c1_platform_data = {
.bus_clk_rate = 400000,
};

static struct tegra_i2c_platform_data paz00_i2c2_platform_data = {
.bus_clk_rate = 400000,
};

static struct tegra_i2c_platform_data paz00_dvc_platform_data = {
.bus_clk_rate = 400000,
};

static void paz00_i2c_init(void)
{
tegra_i2c_device1.dev.platform_data = &paz00_i2c1_platform_data;
tegra_i2c_device2.dev.platform_data = &paz00_i2c2_platform_data;
tegra_i2c_device4.dev.platform_data = &paz00_dvc_platform_data;

platform_device_register(&tegra_i2c_device1);
platform_device_register(&tegra_i2c_device2);
platform_device_register(&tegra_i2c_device4);
}

static void __init tegra_paz00_fixup(struct machine_desc *desc,
struct tag *tags, char **cmdline, struct meminfo *mi)
{
Expand Down Expand Up @@ -115,6 +140,8 @@ static void __init tegra_paz00_init(void)
tegra_sdhci_device4.dev.platform_data = &sdhci_pdata4;

platform_add_devices(paz00_devices, ARRAY_SIZE(paz00_devices));

paz00_i2c_init();
}

MACHINE_START(PAZ00, "paz00")
Expand Down

0 comments on commit d2f9b19

Please sign in to comment.