[U-Boot] CONFIG_WATCHDOG on MPC85XX and QorIQ P1/P2
Felix Radensky
felix at embedded-sol.com
Thu Mar 3 14:08:28 CET 2011
Hi Timur,
On 03/03/2011 02:33 PM, Tabi Timur-B04825 wrote:
> Felix Radensky wrote:
>> Correct. It works fine in linux. I've even tried to port linux code that
>> enables watchdog (booke_wdt.c/__booke_wdt_enable()) to u-boot,
>> but was not successful. Watchdog never triggered, although I did
>> not refresh it.
>>
>> I'd appreciate some advice on what may be different in u-boot
>> vs. linux.
> I don't know what to tell you. I would need to try to make it myself in order to see what's going on. Maybe you really didn't program TCR correctly. Or maybe it is working, but the default behavior of U-Boot is to handle everything silently.
Thanks. I suspect u-boot WDT behaviour should be different from Linux.
Linux sets TCR_WIE bit to enable watchdog interrupt, u-boot should not
do this and just reset the CPU on first time-out. The TCR values are
identical
in u-boot and linux, except for TCR_WIE and TCR_DIE bits that are set
in linux.
Except not setting TCI_WIE bit and setting WRC to 10b, is there
anything else
that should be done to cause reset of first time-out ?
Felix.
More information about the U-Boot
mailing list