From: wanzongshun Date: Fri, 31 Jul 2009 01:29:45 +0000 (+0100) Subject: ARM: 5633/1: Add wdt resource for w90p910 platform X-Git-Tag: v2.6.32-rc1~691^2~2^7~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=897bd6a363770ced6b78f6ae8882325c7590ed8b;p=profile%2Fivi%2Fkernel-x86-ivi.git ARM: 5633/1: Add wdt resource for w90p910 platform Add wdt resource for w90p910 platform. Signed-off-by: Wan ZongShun Signed-off-by: Russell King --- diff --git a/arch/arm/mach-w90x900/mach-w90p910evb.c b/arch/arm/mach-w90x900/mach-w90p910evb.c index 3e3a267b2dd..117578aed68 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 = { }, }; +/* 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)