From 4fd03d47f9fa4f630ccbb362113632e445be6df0 Mon Sep 17 00:00:00 2001 From: wanzongshun Date: Fri, 31 Jul 2009 02:29:45 +0100 Subject: [PATCH] --- yaml --- r: 160794 b: refs/heads/master c: 897bd6a363770ced6b78f6ae8882325c7590ed8b h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/arch/arm/mach-w90x900/mach-w90p910evb.c | 23 +++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index b947298cd682..72d095460e53 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 3f3f1d9d8de10a5dad0d22046cdd26dfb93d05c9 +refs/heads/master: 897bd6a363770ced6b78f6ae8882325c7590ed8b diff --git a/trunk/arch/arm/mach-w90x900/mach-w90p910evb.c b/trunk/arch/arm/mach-w90x900/mach-w90p910evb.c index 3e3a267b2dde..117578aed681 100644 --- a/trunk/arch/arm/mach-w90x900/mach-w90p910evb.c +++ b/trunk/arch/arm/mach-w90x900/mach-w90p910evb.c @@ -340,6 +340,28 @@ static struct spi_board_info w90p910_spi_board_info[] __initdata = { }, }; +/* WDT Device */ + +static struct resource w90p910_wdt_resource[] = { + [0] = { + .start = W90X900_PA_TIMER, + .end = W90X900_PA_TIMER + W90X900_SZ_TIMER - 1, + .flags = IORESOURCE_MEM, + }, + [1] = { + .start = IRQ_WDT, + .end = IRQ_WDT, + .flags = IORESOURCE_IRQ, + } +}; + +static struct platform_device w90p910_device_wdt = { + .name = "w90p910-wdt", + .id = -1, + .num_resources = ARRAY_SIZE(w90p910_wdt_resource), + .resource = w90p910_wdt_resource, +}; + static struct map_desc w90p910_iodesc[] __initdata = { }; @@ -357,6 +379,7 @@ static struct platform_device *w90p910evb_dev[] __initdata = { &w90p910_device_fmi, &w90p910_device_emc, &w90p910_device_spi, + &w90p910_device_wdt, }; static void __init w90p910evb_map_io(void)