summaryrefslogtreecommitdiff
path: root/rtc
diff options
context:
space:
mode:
Diffstat (limited to 'rtc')
-rw-r--r--rtc/mk48t59.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/rtc/mk48t59.c b/rtc/mk48t59.c
index 664d310..64f751f 100644
--- a/rtc/mk48t59.c
+++ b/rtc/mk48t59.c
@@ -83,6 +83,18 @@ static void rtc_write (short reg, uchar val)
out_byte(CMOS_DATA, (uint8)val);
}
+#elif defined(CONFIG_EVAL5200)
+
+static uchar rtc_read (short reg)
+{
+ return in8(RTC(reg));
+}
+
+static void rtc_write (short reg, uchar val)
+{
+ out8(RTC(reg),val);
+}
+
#else
# error Board specific rtc access functions should be supplied
#endif