
28 Aug
2006
28 Aug
'06
12:30 p.m.
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 about something like this:
#if (defined(CONFIG_RTC_DS1374)) &&
#if (CONFIG_COMMANDS & CFG_CMD_DATE) existing stuff #endif
#if (CONFIG_WATCHDOG) new stuff #endif
#endif
If it is not acceptable, where should I put the new stuff?
I remember the u-boot of git support DS1374 RTC function.
-DAve