[U-Boot] u-boot and watchdogs

Our hardware has a watchdog which has a maximum period of 1 second.
Once I've got Linux up and going I can handle that.
I'd love to have a watchdog so that if Linux doesn't take over, the board will reset and try again.
Is there any experience/example of u-boot driving a short-period watchdog throughout the boot process I can try to copy?
David Collier
www.dexdyne.com

Dexdyne Postmaster wrote:
Is there any experience/example of u-boot driving a short-period watchdog throughout the boot process I can try to copy?
Hi,
have a look at include/watchdog.h http://git.denx.de/?p=u-boot.git;a=blob;f=include/watchdog.h;h=9265be9737245...
and, for example, cpu/mpc8xx/cpu.c the function watchdog_reset().
Greetings, rhabarber1848

Dear "Dexdyne Postmaster",
In message <memo.20090811100117.12188C@postmaster+dexdyne.com.cix.co.uk> you wrote:
Our hardware has a watchdog which has a maximum period of 1 second.
Once I've got Linux up and going I can handle that.
I'd love to have a watchdog so that if Linux doesn't take over, the board will reset and try again.
Is there any experience/example of u-boot driving a short-period watchdog throughout the boot process I can try to copy?
Yes, that's a standard feature used by many boards. Worst case is a 80 millisecond timeout with a tolerance of +/- 20 millisec.
Best regards,
Wolfgang Denk
participants (3)
-
Dexdyne Postmaster
-
rhabarber1848
-
Wolfgang Denk