public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] Watchdog and u-boot command prompt
@ 2009-01-12 16:20 Sachin Rane
  2009-01-12 19:13 ` Wolfgang Denk
  0 siblings, 1 reply; 13+ messages in thread
From: Sachin Rane @ 2009-01-12 16:20 UTC (permalink / raw)
  To: u-boot

Hi,
 
I have enabled 'watchdog' in u-boot using flag 'CONFIG_WATCHDOG'.
I wonder how the 'watchdog' gets reset when the cursor is waiting for
user input.
 
As per my understanding the 'WATCHDOG_RESET()' gets called in
'readline()' prior calling 'getc()'.
In our case, the 'getc()' has been mapped to 'serial_getc_dev()'  of
'cpu/ppc4xx/serial.c'.
The code of 'serial_getc_dev()'  executes in continous loop till user
presses a key.
The good thing is that the boad doesn't get reboot even if user doesn't
enter any key.
In 'serial_getc_dev()', I don't see any call to reset the watchdog  .
 
Can you help me to find out the how Watchdog is taken care (gets reset)
whicle executing a infinite loop (if user doesn't press any key) ? 
( Note: I am not using 'CONFIG_HW_WATCHDOG' flag)
 
Regards,
Sachin Rane

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

end of thread, other threads:[~2009-01-23 10:37 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-12 16:20 [U-Boot] Watchdog and u-boot command prompt Sachin Rane
2009-01-12 19:13 ` Wolfgang Denk
2009-01-13  7:45   ` Sachin Rane
2009-01-13 21:31     ` Wolfgang Denk
2009-01-14  6:40       ` Sachin Rane
2009-01-14 11:39         ` Mike Frysinger
2009-01-14 16:01           ` Wolfgang Denk
2009-01-14 16:37             ` Mike Frysinger
2009-01-14 22:40               ` Wolfgang Denk
2009-01-15  2:27                 ` Mike Frysinger
2009-01-14 16:00         ` Wolfgang Denk
2009-01-15 13:14           ` Sachin Rane
2009-01-23 10:37           ` Sachin Rane

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox