From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Wed, 14 Jan 2009 17:00:13 +0100 Subject: [U-Boot] Watchdog and u-boot command prompt In-Reply-To: <73FA539107892C4C8C7A5ACA10C161C85BE0E6@MX2.AlphionCorp.local> References: <73FA539107892C4C8C7A5ACA10C161C85BE0E3@MX2.AlphionCorp.local> <20090112191349.D2A2E832E425@gemini.denx.de> <73FA539107892C4C8C7A5ACA10C161C85BE0E4@MX2.AlphionCorp.local> <20090113213144.19628832E425@gemini.denx.de> <73FA539107892C4C8C7A5ACA10C161C85BE0E6@MX2.AlphionCorp.local> Message-ID: <20090114160013.85022832E425@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Sachin, In message <73FA539107892C4C8C7A5ACA10C161C85BE0E6@MX2.AlphionCorp.local> you wrote: > > In the file 'include/watchdog.h', it has been mentioned that: > 8<---------------------------------------------------------- > #if defined(CONFIG_HW_WATCHDOG) && defined(CONFIG_WATCHDOG) > #error "Configuration error: CONFIG_HW_WATCHDOG and CONFIG_WATCHDOG > can't be used together." > #endif > ---------------------------------------------------------->8 > > It means I can't enable flags CONFIG_HW_WATCHDOG & CONFIG_WATCHDOG > together. > Am I right? Yes, you are reading the C code correctly. > I want to use Software version of Watchdog (CONFIG_WATCHDOG). There is no such thing as a "Software version of Watchdog" in U-Boot. CONFIG_WATCHDOG is exlained in the README. It refers to a platform specific watchdog that is part of the processor itself. CONFIG_HW_WATCHDOG (I admit that the name is a bit misleading) refers to using an external watchdowg, i. e. implemented using (additional) hardware. > If yes then what make the Watchdog resets inside 'serial_getc_dev()' > while the code is being being executed in infinite loop. > (The loop appears infinite if user doesn't press any key) Nothing... Seems you spotted a potential problem. Potential, as so far no 4xx system uses CONFIG_WATCHDOG. I suggest you submit a patch? 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 It is common sense to take a method and try it. If it fails, admit it frankly and try another. But above all, try something. - Franklin D. Roosevelt