Dear Sachin, In message <73fa539107892c4c8c7a5aca10c161c85be...@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: w...@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 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot