summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-11-14 18:18:26 -0700
committerSimon Glass <sjg@chromium.org>2014-11-25 06:33:59 -0700
commitc6577f7219489725924c646a360dc2d50cc5402b (patch)
tree7a97241801bc02a20b21a3ce96e6ba18fd4cacb7 /include
parenta6a957849a0ad20323156ef2439b490306bd5e35 (diff)
downloadtalos-obmc-uboot-c6577f7219489725924c646a360dc2d50cc5402b.tar.gz
talos-obmc-uboot-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')
-rw-r--r--include/rtc.h5
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_ */
OpenPOWER on IntegriCloud