Merge remote-tracking branch 'moduleh/module.h-split'
[linux-2.6/next.git] / arch / arm / plat-samsung / dev-wdt.c
blobb599aaf9a10fd280fb1aacde1159806421945b97
1 /* linux/arch/arm/plat-samsung/dev-wdt.c
3 * Copyright (c) 2004 Simtec Electronics
4 * Ben Dooks <ben@simtec.co.uk>
6 * S3C series device definition for the watchdog timer
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
13 #include <linux/kernel.h>
14 #include <linux/platform_device.h>
15 #include <linux/export.h>
17 #include <mach/irqs.h>
18 #include <mach/map.h>
20 #include <asm/sizes.h>
22 #include <plat/devs.h>
24 static struct resource s3c_wdt_resource[] = {
25 [0] = {
26 .start = S3C_PA_WDT,
27 .end = S3C_PA_WDT + SZ_1K,
28 .flags = IORESOURCE_MEM,
30 [1] = {
31 .start = IRQ_WDT,
32 .end = IRQ_WDT,
33 .flags = IORESOURCE_IRQ,
37 struct platform_device s3c_device_wdt = {
38 .name = "s3c2410-wdt",
39 .id = -1,
40 .num_resources = ARRAY_SIZE(s3c_wdt_resource),
41 .resource = s3c_wdt_resource,
43 EXPORT_SYMBOL(s3c_device_wdt);