Some code cleanup
[oweals/u-boot.git] / rtc / mk48t59.c
index 664d310d43d382f8c0e6dbf58f2559674c2798b3..64f751f75f385e903ae81d2f82eb967122392822 100644 (file)
@@ -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