summaryrefslogtreecommitdiffstats
path: root/include/rtc.h
diff options
context:
space:
mode:
authorAntony Pavlov <antonynpavlov@gmail.com>2014-07-30 00:10:18 +0400
committerSascha Hauer <s.hauer@pengutronix.de>2014-07-31 07:30:51 +0200
commited98f1522d2157a0266095b00ab1481da6085337 (patch)
treec84e29e556e102fe2548688123da19cba8a23c38 /include/rtc.h
parent6d3fc76b7720c6eeb5f38cce32290cbbe28ae146 (diff)
downloadbarebox-ed98f1522d2157a0266095b00ab1481da6085337.tar.gz
barebox-ed98f1522d2157a0266095b00ab1481da6085337.tar.xz
Add a simple rtc framework
This patch adds a simple rtc framework for reading and setting board's RTC time. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/rtc.h')
-rw-r--r--include/rtc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/rtc.h b/include/rtc.h
index c2d8bcefed..e2414fb7b1 100644
--- a/include/rtc.h
+++ b/include/rtc.h
@@ -53,4 +53,6 @@ void to_tm (int, struct rtc_time *);
unsigned long mktime (unsigned int, unsigned int, unsigned int,
unsigned int, unsigned int, unsigned int);
+extern struct rtc_device *rtc_lookup(const char *name);
+
#endif /* _RTC_H_ */