summaryrefslogtreecommitdiff
path: root/rtc/mk48t59.c
diff options
context:
space:
mode:
Diffstat (limited to 'rtc/mk48t59.c')
-rw-r--r--rtc/mk48t59.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/rtc/mk48t59.c b/rtc/mk48t59.c
index 2d3c278..664d310 100644
--- a/rtc/mk48t59.c
+++ b/rtc/mk48t59.c
@@ -65,6 +65,24 @@ static void rtc_write (short reg, uchar val)
out8(RTC(reg),val);
}
+#elif defined(CONFIG_AMIGAONEG3SE)
+
+#include "../board/MAI/AmigaOneG3SE/via686.h"
+#include "../board/MAI/AmigaOneG3SE/memio.h"
+
+
+static uchar rtc_read (short reg)
+{
+ out_byte(CMOS_ADDR, (uint8)reg);
+ return in_byte(CMOS_DATA);
+}
+
+static void rtc_write (short reg, uchar val)
+{
+ out_byte(CMOS_ADDR, (uint8)reg);
+ out_byte(CMOS_DATA, (uint8)val);
+}
+
#else
# error Board specific rtc access functions should be supplied
#endif