* [PATCH] Add watchdog resource support for w90p910
@ 2009-07-24 15:01 Wan ZongShun
2009-07-27 8:45 ` Russell King - ARM Linux
0 siblings, 1 reply; 2+ messages in thread
From: Wan ZongShun @ 2009-07-24 15:01 UTC (permalink / raw)
To: Wim Van Sebroeck, Russell King; +Cc: linux-kernel, linux-arm-kernel
Dear Russell,
This is a watchdog resource define patch, for my w90p910 platform.
Add watchdog resource define for w90p910 wdt driver.
Signed-off-by: Wan ZongShun <mcuos.com@gmail.com>
---
arch/arm/mach-w90x900/mach-w90p910evb.c | 23 +++++++++++++++++++++++
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 3e3a267..117578a 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)
--
1.5.6.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Add watchdog resource support for w90p910
2009-07-24 15:01 [PATCH] Add watchdog resource support for w90p910 Wan ZongShun
@ 2009-07-27 8:45 ` Russell King - ARM Linux
0 siblings, 0 replies; 2+ messages in thread
From: Russell King - ARM Linux @ 2009-07-27 8:45 UTC (permalink / raw)
To: Wan ZongShun; +Cc: Wim Van Sebroeck, linux-kernel, linux-arm-kernel
On Fri, Jul 24, 2009 at 11:01:07PM +0800, Wan ZongShun wrote:
> Dear Russell,
>
> This is a watchdog resource define patch, for my w90p910 platform.
Ok.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-07-27 8:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-24 15:01 [PATCH] Add watchdog resource support for w90p910 Wan ZongShun
2009-07-27 8:45 ` Russell King - ARM Linux
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).