#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>
&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)
{
tegra_sdhci_device4.dev.platform_data = &sdhci_pdata4;
platform_add_devices(paz00_devices, ARRAY_SIZE(paz00_devices));
+
+ paz00_i2c_init();
}
MACHINE_START(PAZ00, "paz00")