aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mx5/devices.c
diff options
context:
space:
mode:
authorWolfram Sang <w.sang@pengutronix.de>2010-05-17 06:33:43 -0400
committerSascha Hauer <s.hauer@pengutronix.de>2010-05-18 02:32:33 -0400
commit4a870fc898db90033585cef35d89cf931e189fa4 (patch)
tree3f8bc41e575e738d8011ecb3e52e1f6fd9926e0a /arch/arm/mach-mx5/devices.c
parent5ab0a2758c887fc3094dac06d1838d8df709a09d (diff)
arm/mx51: add watchdog device
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>
Diffstat (limited to 'arch/arm/mach-mx5/devices.c')
-rw-r--r--arch/arm/mach-mx5/devices.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/arm/mach-mx5/devices.c b/arch/arm/mach-mx5/devices.c
index 23850e637dc3..7130449aacdc 100644
--- a/arch/arm/mach-mx5/devices.c
+++ b/arch/arm/mach-mx5/devices.c
@@ -153,6 +153,21 @@ struct platform_device mxc_usbh1_device = {
153 }, 153 },
154}; 154};
155 155
156static struct resource mxc_wdt_resources[] = {
157 {
158 .start = MX51_WDOG_BASE_ADDR,
159 .end = MX51_WDOG_BASE_ADDR + SZ_16K - 1,
160 .flags = IORESOURCE_MEM,
161 },
162};
163
164struct platform_device mxc_wdt = {
165 .name = "imx2-wdt",
166 .id = 0,
167 .num_resources = ARRAY_SIZE(mxc_wdt_resources),
168 .resource = mxc_wdt_resources,
169};
170
156static struct mxc_gpio_port mxc_gpio_ports[] = { 171static struct mxc_gpio_port mxc_gpio_ports[] = {
157 { 172 {
158 .chip.label = "gpio-0", 173 .chip.label = "gpio-0",