diff options
author | Simon Glass <sjg@chromium.org> | 2014-11-14 18:18:26 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2014-11-25 06:33:59 -0700 |
commit | c6577f7219489725924c646a360dc2d50cc5402b (patch) | |
tree | 7a97241801bc02a20b21a3ce96e6ba18fd4cacb7 /include/rtc.h | |
parent | a6a957849a0ad20323156ef2439b490306bd5e35 (diff) | |
download | u-boot-c6577f7219489725924c646a360dc2d50cc5402b.tar.gz u-boot-c6577f7219489725924c646a360dc2d50cc5402b.tar.bz2 u-boot-c6577f7219489725924c646a360dc2d50cc5402b.zip |
rtc: mc146818: Set up RTC at start of day
Provide a function to set up the RTC ready for use.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'include/rtc.h')
-rw-r--r-- | include/rtc.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/rtc.h b/include/rtc.h index c0349668bc..d11aa8baf9 100644 --- a/include/rtc.h +++ b/include/rtc.h @@ -50,4 +50,9 @@ void to_tm (int, struct rtc_time *); unsigned long mktime (unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int); +/** + * rtc_init() - Set up the real time clock ready for use + */ +void rtc_init(void); + #endif /* _RTC_H_ */ |