lkml.org 
[lkml]   [2008]   [Jan]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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@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'


\
 
 \ /
  Last update: 2008-01-10 18:17    [W:0.066 / U:1.220 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site