From: Alan Cox Date: Sun, 27 Jan 2019 21:59:35 +0000 (+0000) Subject: rc2014: use and report rtc presence X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=d06baf6a6be9d7b3cdee788099f6080eeaa66ab8;p=FUZIX.git rc2014: use and report rtc presence --- diff --git a/Kernel/platform-rc2014-sbc64/discard.c b/Kernel/platform-rc2014-sbc64/discard.c index 2cfda54e..354c4c05 100644 --- a/Kernel/platform-rc2014-sbc64/discard.c +++ b/Kernel/platform-rc2014-sbc64/discard.c @@ -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 diff --git a/Kernel/platform-rc2014/discard.c b/Kernel/platform-rc2014/discard.c index 7245ea3f..9c4209be 100644 --- a/Kernel/platform-rc2014/discard.c +++ b/Kernel/platform-rc2014/discard.c @@ -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