},
};
-
/* board files should fill in platform_data register the devices themselvs.
* See board-harmony.c for an example
*/
.resource = sdhci_resource4,
.num_resources = ARRAY_SIZE(sdhci_resource4),
};
+
+static struct resource w1_resources[] = {
+ [0] = {
+ .start = INT_OWR,
+ .end = INT_OWR,
+ .flags = IORESOURCE_IRQ
+ },
+ [1] = {
+ .start = TEGRA_OWR_BASE,
+ .end = TEGRA_OWR_BASE + TEGRA_OWR_SIZE - 1,
+ .flags = IORESOURCE_MEM
+ }
+};
+
+struct platform_device tegra_w1_device = {
+ .name = "tegra_w1",
+ .id = -1,
+ .resource = w1_resources,
+ .num_resources = ARRAY_SIZE(w1_resources),
+};
/*
- * arch/arm/mach-tegra/devices.c
+ * arch/arm/mach-tegra/devices.h
*
* Copyright (C) 2010 Google, Inc.
*
extern struct platform_device tegra_spi_device2;
extern struct platform_device tegra_spi_device3;
extern struct platform_device tegra_spi_device4;
+extern struct platform_device tegra_w1_device;
#endif