summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorWolfram Sang <w.sang@pengutronix.de>2010-05-17 12:33:43 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2010-05-18 08:32:33 +0200
commit4a870fc898db90033585cef35d89cf931e189fa4 (patch)
tree3f8bc41e575e738d8011ecb3e52e1f6fd9926e0a /arch
parentarm/mx25: add watchdog device (diff)
downloadlinux-4a870fc898db90033585cef35d89cf931e189fa4.tar.xz
linux-4a870fc898db90033585cef35d89cf931e189fa4.zip
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')
-rw-r--r--arch/arm/mach-mx5/devices.c15
-rw-r--r--arch/arm/mach-mx5/devices.h1
2 files changed, 16 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 = {
},
};
+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",
diff --git a/arch/arm/mach-mx5/devices.h b/arch/arm/mach-mx5/devices.h
index 0494d6bbcc5f..c879ae71cd5b 100644
--- a/arch/arm/mach-mx5/devices.h
+++ b/arch/arm/mach-mx5/devices.h
@@ -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;