]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[ARM] MX2: Add W1 device/resources
authorSascha Hauer <s.hauer@pengutronix.de>
Mon, 1 Dec 2008 22:15:38 +0000 (14:15 -0800)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 14 Dec 2008 12:05:01 +0000 (12:05 +0000)
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Evgeniy Polyakov <zbr@ioremap.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-mx2/devices.c
arch/arm/mach-mx2/devices.h

index bd0559d5933e1a03e4000050becf460252792e5f..092e09baeefa1490fada92c6a3f6b8a01b52a772 100644 (file)
@@ -190,6 +190,21 @@ struct platform_device mxc_wdt = {
        .resource = mxc_wdt_resources,
 };
 
+static struct resource mxc_w1_master_resources[] = {
+       {
+               .start = OWIRE_BASE_ADDR,
+               .end   = OWIRE_BASE_ADDR + SZ_4K - 1,
+               .flags = IORESOURCE_MEM,
+       },
+};
+
+struct platform_device mxc_w1_master_device = {
+       .name = "mxc_w1",
+       .id = 0,
+       .num_resources = ARRAY_SIZE(mxc_w1_master_resources),
+       .resource = mxc_w1_master_resources,
+};
+
 /* GPIO port description */
 static struct mxc_gpio_port imx_gpio_ports[] = {
        [0] = {
index c77a4b8f73b4708593fdda6e7aa959918e1ccf88..5683c45743255a885242bf4fcc0b51c1f8106b83 100644 (file)
@@ -12,4 +12,4 @@ extern struct platform_device mxc_uart_device2;
 extern struct platform_device mxc_uart_device3;
 extern struct platform_device mxc_uart_device4;
 extern struct platform_device mxc_uart_device5;
-
+extern struct platform_device mxc_w1_master_device;