arm/mx51: add watchdog device
authorWolfram Sang <w.sang@pengutronix.de>
Mon, 17 May 2010 10:33:43 +0000 (12:33 +0200)
committerSascha Hauer <s.hauer@pengutronix.de>
Tue, 18 May 2010 06:32:33 +0000 (08:32 +0200)
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Cc: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
arch/arm/mach-mx5/devices.c
arch/arm/mach-mx5/devices.h

index 23850e6..7130449 100644 (file)
@@ -153,6 +153,21 @@ struct platform_device mxc_usbh1_device = {
        },
 };
 
+static struct resource mxc_wdt_resources[] = {
+       {
+               .start = MX51_WDOG_BASE_ADDR,
+               .end = MX51_WDOG_BASE_ADDR + SZ_16K - 1,
+               .flags = IORESOURCE_MEM,
+       },
+};
+
+struct platform_device mxc_wdt = {
+       .name = "imx2-wdt",
+       .id = 0,
+       .num_resources = ARRAY_SIZE(mxc_wdt_resources),
+       .resource = mxc_wdt_resources,
+};
+
 static struct mxc_gpio_port mxc_gpio_ports[] = {
        {
                .chip.label = "gpio-0",
index 0494d6b..c879ae7 100644 (file)
@@ -5,3 +5,4 @@ extern struct platform_device mxc_fec_device;
 extern struct platform_device mxc_usbdr_host_device;
 extern struct platform_device mxc_usbh1_device;
 extern struct platform_device mxc_usbdr_udc_device;
+extern struct platform_device mxc_wdt;