Skip to contentSkip to conversation

Add watchdog resource support for w90p910

PATCH In review Wan ZongShun 2 participants 2 messages Jul 24, 2009 – Jul 27, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add watchdog resource support for w90p910

Dear Russell,

This is a watchdog resource define patch, for my w90p910 platform.

Add watchdog resource define for w90p910 wdt driver.

---
 arch/arm/mach-w90x900/mach-w90p910evb.c |   23 +++++++++++++++++++++++
 1 files changed, 23 insertions(+), 0 deletions(-)
arch/arm/mach-w90x900/mach-w90p910evb.c +23 -0
index 3e3a267..117578a 100644
@@ -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)
Signature · 1 line
1.5.6.3
#1 lore raw
Quoted 3 lines · Wan ZongShun

Dear Russell,

This is a watchdog resource define patch, for my w90p910 platform.

Ok.