From c6577f7219489725924c646a360dc2d50cc5402b Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Fri, 14 Nov 2014 18:18:26 -0700 Subject: 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 Reviewed-by: Bin Meng --- include/rtc.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/rtc.h') 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_ */ -- cgit v1.2.3