All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] u-boot and watchdogs
@ 2009-08-11  9:01 Dexdyne Postmaster
  2009-08-11  9:33 ` rhabarber1848
  2009-08-11  9:51 ` Wolfgang Denk
  0 siblings, 2 replies; 3+ messages in thread
From: Dexdyne Postmaster @ 2009-08-11  9:01 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot] u-boot and watchdogs
  2009-08-11  9:01 [U-Boot] u-boot and watchdogs Dexdyne Postmaster
@ 2009-08-11  9:33 ` rhabarber1848
  2009-08-11  9:51 ` Wolfgang Denk
  1 sibling, 0 replies; 3+ messages in thread
From: rhabarber1848 @ 2009-08-11  9:33 UTC (permalink / raw)
  To: u-boot

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=9265be9737245d7a1e8468c398aef12d07945bad;hb=HEAD

and, for example, cpu/mpc8xx/cpu.c the function watchdog_reset().

Greetings, rhabarber1848

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot] u-boot and watchdogs
  2009-08-11  9:01 [U-Boot] u-boot and watchdogs Dexdyne Postmaster
  2009-08-11  9:33 ` rhabarber1848
@ 2009-08-11  9:51 ` Wolfgang Denk
  1 sibling, 0 replies; 3+ messages in thread
From: Wolfgang Denk @ 2009-08-11  9:51 UTC (permalink / raw)
  To: u-boot

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

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Above all else -- sky.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-08-11  9:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-11  9:01 [U-Boot] u-boot and watchdogs Dexdyne Postmaster
2009-08-11  9:33 ` rhabarber1848
2009-08-11  9:51 ` Wolfgang Denk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.