diff options
author | Wolfram Sang <w.sang@pengutronix.de> | 2010-05-17 12:33:42 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2010-05-18 08:32:33 +0200 |
commit | 5ab0a2758c887fc3094dac06d1838d8df709a09d (patch) | |
tree | c0509845ecdac5938bc567bfff2590041b9dada8 /arch/arm/mach-mx25/devices.c | |
parent | f13899da00e1b815211cf246c7d2704db3c18e37 (diff) | |
download | kernel_samsung_crespo-5ab0a2758c887fc3094dac06d1838d8df709a09d.zip kernel_samsung_crespo-5ab0a2758c887fc3094dac06d1838d8df709a09d.tar.gz kernel_samsung_crespo-5ab0a2758c887fc3094dac06d1838d8df709a09d.tar.bz2 |
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>
Diffstat (limited to 'arch/arm/mach-mx25/devices.c')
-rw-r--r-- | arch/arm/mach-mx25/devices.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/arm/mach-mx25/devices.c b/arch/arm/mach-mx25/devices.c index 3f4b8a0..3a405fa 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 = { .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, +}; |