rc2014: use and report rtc presence
authorAlan Cox <alan@linux.intel.com>
Sun, 27 Jan 2019 21:59:35 +0000 (21:59 +0000)
committerAlan Cox <alan@linux.intel.com>
Sun, 27 Jan 2019 21:59:35 +0000 (21:59 +0000)
Kernel/platform-rc2014-sbc64/discard.c
Kernel/platform-rc2014/discard.c

index 2cfda54..354c4c0 100644 (file)
@@ -18,12 +18,16 @@ void pagemap_init(void)
   pagemap_add(0x12);
   pagemap_add(0x10);
 
+  ds1302_init();
+
   if (sio_present)
     kputs("Z80 SIO detected at 0x80.\n");
   if (sio1_present)
     kputs("Z80 SIO detected at 0x84.\n");
   if (ctc_present)
     kputs("Z80 CTC detected at 0x88.\n");
+  if (ds1302_present)
+    kputs("DS1302 detected at 0xC0.\n");
 }
 
 /*
@@ -49,7 +53,6 @@ void platform_swap_found(uint8_t letter, uint8_t m)
 
 void device_init(void)
 {
-       ds1302_init();
 #ifdef CONFIG_IDE
        devide_init();
 #endif
index 7245ea3..9c4209b 100644 (file)
@@ -37,6 +37,8 @@ void pagemap_init(void)
        /* finally add the common area */
        pagemap_add(32 + 3);
 
+       ds1302_init();
+
        if (acia_present)
                kputs("6850 ACIA detected at 0x80.\n");
        if (sio_present)
@@ -45,6 +47,8 @@ void pagemap_init(void)
                kputs("Z80 SIO detected at 0x84.\n");
        if (ctc_present)
                kputs("Z80 CTC detected at 0x88.\n");
+       if (ds1302_present)
+               kputs("DS1302 detected at 0xC0.\n");
 }
 
 void map_init(void)
@@ -85,7 +89,6 @@ void platform_swap_found(uint8_t letter, uint8_t m)
 
 void device_init(void)
 {
-       ds1302_init();
 #ifdef CONFIG_IDE
        devide_init();
 #ifdef CONFIG_PPIDE