]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[ARM] MX31: add w1 platform_device and resources
authorSascha Hauer <s.hauer@pengutronix.de>
Mon, 1 Dec 2008 22:15:39 +0000 (14:15 -0800)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 14 Dec 2008 12:05:02 +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-mx3/devices.c
arch/arm/mach-mx3/devices.h

index a6bdcc07f3c964ea7ed3437fefbe39bb20994262..12b3e3c00460b00745756b47d376db2a85dcb329 100644 (file)
@@ -145,3 +145,18 @@ int __init mxc_register_gpios(void)
 {
        return mxc_gpio_init(imx_gpio_ports, ARRAY_SIZE(imx_gpio_ports));
 }
+
+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,
+};
index 4dc03f9e6001144fe47c77c7b8a1e894d21751bb..cb1459c7c960d2c4ce5c151c5565f2cc8e116b76 100644 (file)
@@ -4,3 +4,4 @@ extern struct platform_device mxc_uart_device1;
 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_w1_master_device;