Re: [PATCH] Add watchdog driver for w90p910

From: Wan ZongShun
Date: Wed Aug 05 2009 - 07:37:19 EST


Dear Wim,


>> +static irqreturn_t w90p910_wdt_irq(int irq, void *dev_id)
>> +{
>> + Â Â w90p910_wdt_keepalive();
>> + Â Â return IRQ_HANDLED;
>> +}
>
> How does the interrupt work? what does the watchdog do when it times out?
> (Is there a datasheet available somewhere?)
>

Here is the w90p910 datasheet link, now the ic was renames nuc910.
Maybe you can give me a good idea,
hmm, regarding the timer as your mentioned (at91sam9_wdt.c), I am
studying it and will resubmit a updated patch to you. thanks a lot for
your help !

http://www.nuvoton-usa.com/hq/enu/ProductAndSales/ProductLines/ConsumerElectronicsIC/ARMMicrocontroller/ARMMicrocontroller/NUC910A.htm


>
>> +static int w90p910_wdt_settimeout(int new_time_level)
>> +{
>> + Â Â unsigned int val;
>> +
>> + Â Â if ((new_time_level < 0) || (new_time_level > WDT_MAX_TIME_LEVEL))
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/