diff options
author | Wolfram Sang <w.sang@pengutronix.de> | 2010-05-17 06:33:42 -0400 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2010-05-18 02:32:33 -0400 |
commit | 5ab0a2758c887fc3094dac06d1838d8df709a09d (patch) | |
tree | c0509845ecdac5938bc567bfff2590041b9dada8 | |
parent | f13899da00e1b815211cf246c7d2704db3c18e37 (diff) |
arm/mx25: add watchdog device
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>
-rw-r--r-- | arch/arm/mach-mx25/devices.c | 15 | ||||
-rw-r--r-- | arch/arm/mach-mx25/devices.h | 1 |
2 files changed, 16 insertions, 0 deletions
diff --git a/arch/arm/mach-mx25/devices.c b/arch/arm/mach-mx25/devices.c index 3f4b8a0b5fac..3a405fa400eb 100644 --- a/arch/arm/mach-mx25/devices.c +++ b/arch/arm/mach-mx25/devices.c | |||
@@ -500,3 +500,18 @@ struct platform_device mx25_fb_device = { | |||
500 | .coherent_dma_mask = 0xFFFFFFFF, | 500 | .coherent_dma_mask = 0xFFFFFFFF, |
501 | }, | 501 | }, |
502 | }; | 502 | }; |
503 | |||
504 | static struct resource mxc_wdt_resources[] = { | ||
505 | { | ||
506 | .start = MX25_WDOG_BASE_ADDR, | ||
507 | .end = MX25_WDOG_BASE_ADDR + SZ_16K - 1, | ||
508 | .flags = IORESOURCE_MEM, | ||
509 | }, | ||
510 | }; | ||
511 | |||
512 | struct platform_device mxc_wdt = { | ||
513 | .name = "imx2-wdt", | ||
514 | .id = 0, | ||
515 | .num_resources = ARRAY_SIZE(mxc_wdt_resources), | ||
516 | .resource = mxc_wdt_resources, | ||
517 | }; | ||
diff --git a/arch/arm/mach-mx25/devices.h b/arch/arm/mach-mx25/devices.h index 39560e13bc0d..cee12c0a0be6 100644 --- a/arch/arm/mach-mx25/devices.h +++ b/arch/arm/mach-mx25/devices.h | |||
@@ -21,3 +21,4 @@ extern struct platform_device mx25_fec_device; | |||
21 | extern struct platform_device mxc_nand_device; | 21 | extern struct platform_device mxc_nand_device; |
22 | extern struct platform_device mx25_rtc_device; | 22 | extern struct platform_device mx25_rtc_device; |
23 | extern struct platform_device mx25_fb_device; | 23 | extern struct platform_device mx25_fb_device; |
24 | extern struct platform_device mxc_wdt; | ||