From: Ben Dooks <ben@fluff.org>
To: Marc Pignat <marc.pignat@hevs.ch>
Cc: wim@iguana.be, linux-kernel@vger.kernel.org
Subject: Re: [RFC, PATCH] watchdog on gpio
Date: Thu, 10 Jan 2008 17:14:22 +0000 [thread overview]
Message-ID: <20080110171422.GA27399@fluff.org.uk> (raw)
In-Reply-To: <200801101611.08867.marc.pignat@hevs.ch>
On Thu, Jan 10, 2008 at 04:11:08PM +0100, Marc Pignat wrote:
> watchdog driver for embedded systems with a supervisor watchdog (MAX823 or so)
> connected to a gpio. This is the platform_driver and needs platform_data for
> defining the gpio pin and the watchdog timeout.
>
> Signed-off-by: Marc Pignat <marc.pignat@hevs.ch>
> ---
>
> Hi!
>
> If you've got a max823, 824 or any cpu supervisor like this connected to your
> cpu by a gpio pin, you can use this watchdog driver.
>
> Simply add this to your board specific setup file:
>
> #include <linux/gpio_wdt.h>
>
> static struct gpio_wdt_pdata my_wdt = {
> /* WDI input connected to this gpio */
> .pin = AT91_PIN_PD27,
> /* The *min* timeout */
> .timeout_ms = 1140
> };
>
> static struct platform_device my_watchdog_device =
> {
> .name = GPIO_WDT_DRIVER_NAME,
> .id = 0,
> .dev = {
> .platform_data=&my_wdt,
minor style problem here, ".platform_data = &my_wdt"
[snip]
--
Ben (ben@fluff.org, http://www.fluff.org/)
'a smiley only costs 4 bytes'
next prev parent reply other threads:[~2008-01-10 17:14 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-10 15:11 [RFC, PATCH] watchdog on gpio Marc Pignat
2008-01-10 17:14 ` Ben Dooks [this message]
2008-01-11 16:40 ` Florian Fainelli
2008-01-14 7:34 ` Marc Pignat
2008-01-14 8:08 ` Mike Frysinger
2008-01-14 8:04 ` Mike Frysinger
2008-01-14 9:03 ` Alan Cox
2008-01-14 9:28 ` Mike Frysinger
2008-01-14 9:29 ` Alan Cox
2008-01-14 9:45 ` Mike Frysinger
2008-01-14 12:14 ` Haavard Skinnemoen
2008-01-14 12:22 ` Mike Frysinger
2008-01-14 13:30 ` Haavard Skinnemoen
2008-01-14 12:49 ` Johannes Weiner
2008-01-14 13:03 ` Mike Frysinger
2008-01-14 13:56 ` printk-wrapper with sectionized string constants [was: Re: [RFC, PATCH] watchdog on gpio] Johannes Weiner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080110171422.GA27399@fluff.org.uk \
--to=ben@fluff.org \
--cc=linux-kernel@vger.kernel.org \
--cc=marc.pignat@hevs.ch \
--cc=wim@iguana.be \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.