summaryrefslogtreecommitdiff
path: root/include/rtc.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-11-15 01:18:26 (GMT)
committerSimon Glass <sjg@chromium.org>2014-11-25 13:33:59 (GMT)
commitc6577f7219489725924c646a360dc2d50cc5402b (patch)
tree7a97241801bc02a20b21a3ce96e6ba18fd4cacb7 /include/rtc.h
parenta6a957849a0ad20323156ef2439b490306bd5e35 (diff)
downloadu-boot-c6577f7219489725924c646a360dc2d50cc5402b.tar.xz
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.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/rtc.h b/include/rtc.h
index c034966..d11aa8b 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_ */