]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - include/rtc.h
Merge branch 'master' of git://git.denx.de/u-boot-blackfin
[karo-tx-uboot.git] / include / rtc.h
index 019c2ebb5181b4c67ac9276a89a596738527ff51..772a54884197d47b55af5dddc0374d94d43dcc39 100644 (file)
 #ifndef _RTC_H_
 #define _RTC_H_
 
+/* bcd<->bin functions are needed by almost all the RTC drivers, let's include
+ * it there instead of in evey single driver */
+
+#include <bcd.h>
+
 /*
  * The struct used to pass data from the generic interface code to
  * the hardware dependend low-level code ande vice versa. Identical
@@ -61,8 +66,4 @@ void to_tm (int, struct rtc_time *);
 unsigned long mktime (unsigned int, unsigned int, unsigned int,
                      unsigned int, unsigned int, unsigned int);
 
-uchar rtc_read(uchar reg) __attribute__((weak));
-void  rtc_write(uchar reg, uchar val) __attribute__((weak));
-
-
 #endif /* _RTC_H_ */