aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-w90x900
diff options
context:
space:
mode:
authorwanzongshun <mcuos.com@gmail.com>2009-07-30 21:29:45 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2009-08-01 11:23:57 -0400
commit897bd6a363770ced6b78f6ae8882325c7590ed8b (patch)
tree6c1ee4ef92ad3c8cd0163ba34ead4586aa37f498 /arch/arm/mach-w90x900
parent3f3f1d9d8de10a5dad0d22046cdd26dfb93d05c9 (diff)
ARM: 5633/1: Add wdt resource for w90p910 platform
Add wdt resource for w90p910 platform. Signed-off-by: Wan ZongShun <mcuos.com@gmail.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-w90x900')
-rw-r--r--arch/arm/mach-w90x900/mach-w90p910evb.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/arch/arm/mach-w90x900/mach-w90p910evb.c b/arch/arm/mach-w90x900/mach-w90p910evb.c
index 3e3a267b2dde..117578aed681 100644
--- a/arch/arm/mach-w90x900/mach-w90p910evb.c
+++ b/arch/arm/mach-w90x900/mach-w90p910evb.c
@@ -340,6 +340,28 @@ static struct spi_board_info w90p910_spi_board_info[] __initdata = {
340 }, 340 },
341}; 341};
342 342
343/* WDT Device */
344
345static struct resource w90p910_wdt_resource[] = {
346 [0] = {
347 .start = W90X900_PA_TIMER,
348 .end = W90X900_PA_TIMER + W90X900_SZ_TIMER - 1,
349 .flags = IORESOURCE_MEM,
350 },
351 [1] = {
352 .start = IRQ_WDT,
353 .end = IRQ_WDT,
354 .flags = IORESOURCE_IRQ,
355 }
356};
357
358static struct platform_device w90p910_device_wdt = {
359 .name = "w90p910-wdt",
360 .id = -1,
361 .num_resources = ARRAY_SIZE(w90p910_wdt_resource),
362 .resource = w90p910_wdt_resource,
363};
364
343static struct map_desc w90p910_iodesc[] __initdata = { 365static struct map_desc w90p910_iodesc[] __initdata = {
344}; 366};
345 367
@@ -357,6 +379,7 @@ static struct platform_device *w90p910evb_dev[] __initdata = {
357 &w90p910_device_fmi, 379 &w90p910_device_fmi,
358 &w90p910_device_emc, 380 &w90p910_device_emc,
359 &w90p910_device_spi, 381 &w90p910_device_spi,
382 &w90p910_device_wdt,
360}; 383};
361 384
362static void __init w90p910evb_map_io(void) 385static void __init w90p910evb_map_io(void)