arm/mx25: add watchdog device
authorWolfram Sang <w.sang@pengutronix.de>
Mon, 17 May 2010 10:33:42 +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>
Tested-by: Juergen Beisert <jbe@pengutronix.de>
Cc: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
arch/arm/mach-mx25/devices.c
arch/arm/mach-mx25/devices.h

index 3f4b8a0b5facf9d1c7200ce7f21d1b85890f37b6..3a405fa400eb064a6a8e612027709b7601cb4d34 100644 (file)
@@ -500,3 +500,18 @@ struct platform_device mx25_fb_device = {
                .coherent_dma_mask = 0xFFFFFFFF,
        },
 };
+
+static struct resource mxc_wdt_resources[] = {
+       {
+               .start = MX25_WDOG_BASE_ADDR,
+               .end = MX25_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,
+};
index 39560e13bc0d5c93cdf6d7d0da2ba9c41e6734dd..cee12c0a0be68e5988fcc8f914c94705dfe92beb 100644 (file)
@@ -21,3 +21,4 @@ extern struct platform_device mx25_fec_device;
 extern struct platform_device mxc_nand_device;
 extern struct platform_device mx25_rtc_device;
 extern struct platform_device mx25_fb_device;
+extern struct platform_device mxc_wdt;