z80pack: turn on RTC support
authorAlan Cox <alan@linux.intel.com>
Mon, 22 Dec 2014 14:54:59 +0000 (14:54 +0000)
committerAlan Cox <alan@linux.intel.com>
Mon, 22 Dec 2014 14:54:59 +0000 (14:54 +0000)
Kernel/platform-z80pack/Makefile
Kernel/platform-z80pack/config.h
Kernel/platform-z80pack/devices.c
Kernel/platform-z80pack/uzi.lnk

index 2b14553..d890c0a 100644 (file)
@@ -1,5 +1,5 @@
 
-DSRCS = ../dev/z80pack/devlpr.c ../dev/z80pack/devtty.c ../dev/z80pack/devfd.c
+DSRCS = ../dev/z80pack/devlpr.c ../dev/z80pack/devtty.c ../dev/z80pack/devfd.c ../dev/z80pack/devrtc.c
 CSRCS += devices.c main.c
 
 ASRCS = crt0.s z80pack.s
index 7d5edd6..4bb0a5f 100644 (file)
@@ -1,3 +1,5 @@
+/* We have an RTC */
+#define CONFIG_RTC
 /* Enable to make ^Z dump the inode table for debug */
 #undef CONFIG_IDUMP
 /* Enable to make ^A drop back into the monitor */
index c60640f..fdd4ff7 100644 (file)
@@ -6,6 +6,7 @@
 #include <devsys.h>
 #include <devlpr.h>
 #include <devtty.h>
+#include <devrtc.h>
 
 struct devsw dev_tab[] =  /* The device driver switch table */
 {
@@ -37,6 +38,7 @@ bool validdev(uint16_t dev)
 void device_init(void)
 {
   int i;
+  zrtc_init();
   /* Add 64 swaps (4MB) to use the entire J drive */
   for (i = 0; i < MAX_SWAPS; i++)
     swapmap_add(i);
index 0a727ec..672ff64 100644 (file)
@@ -34,4 +34,5 @@ swap.rel
 devsys.rel
 platform-z80pack/devlpr.rel
 platform-z80pack/devtty.rel
+platform-z80pack/devrtc.rel
 -e