[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080110171422.GA27399@fluff.org.uk>
Date: Thu, 10 Jan 2008 17:14:22 +0000
From: Ben Dooks <ben@...ff.org>
To: Marc Pignat <marc.pignat@...s.ch>
Cc: wim@...ana.be, linux-kernel@...r.kernel.org
Subject: Re: [RFC, PATCH] watchdog on gpio
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@...s.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@...ff.org, http://www.fluff.org/)
'a smiley only costs 4 bytes'
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists