From: Wolfgang Denk Date: Mon, 28 Aug 2006 13:02:01 +0200 Subject: [U-Boot-Users] DS1374 watchdog capabilities In-Reply-To: Your message of "Mon, 28 Aug 2006 12:24:51 +0200." <44F2C473.5030000@dave-tech.it> Message-ID: <20060828110201.4F3CC3525AB@atlas.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 In message <44F2C473.5030000@dave-tech.it> you wrote: > > I'd like to use DS1374 watchdog capabilities. Is it correct to put the > new stuff in the existing RTC driver (rtc/ds1374.c)? I was thinking I don't like this idea. Nobody will search there when looking for watchdog code. > #if (CONFIG_WATCHDOG) > new stuff > #endif How much of such "new stuff" code will be needed? I guess it's just some intialization, and eventually the trigger routine? > If it is not acceptable, where should I put the new stuff? drivers/watchdog/ds1374.c ? Best regards, Wolfgang Denk -- Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de A meeting is an event at which the minutes are kept and the hours are lost.