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 <[EMAIL PROTECTED]> > --- > > 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 ([EMAIL PROTECTED], 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 [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/